def calculate_footer_values group, source
            @footers[group.to_sym].each do |field, value|
                footer_rule = source[field]
                symbolize! footer_rule[1]
                unless footer_rule[1][:behavior].nil?
                    @footers[group.to_sym][field] = JunoReport::Pdf::Behaviors.send footer_rule[1][:behavior].to_sym, value, (@record.respond_to?(field) ? @record.send(field) : nil)
                else
                    if footer_rule[1][:value].blank?
                        value = !@record.class.reflect_on_association(group.to_sym).nil? ? @record.send(group.to_sym).send(field.to_sym) : @record.send(field)
                    else
                        value = footer_rule[1][:value]
                    end
                    @footers[group.to_sym][field] = footer_rule[1][:label].to_s + value
                end unless @footers[group.to_sym].nil? || footer_rule[1].nil?
            end
        end
def calculate_footer_values group, source
            @footers[group.to_sym].each do |field, value|
                footer_rule = source[field]
                symbolize! footer_rule[1]
                unless footer_rule[1][:behavior].nil?
                    @footers[group.to_sym][field] = JunoReport::Pdf::Behaviors.send footer_rule[1][:behavior].to_sym, value, (@record.respond_to?(field) ? @record.send(field) : nil)
                else
                    if footer_rule[1][:value].blank?
                        value = !@record.class.reflect_on_association(group.to_sym).nil? ? @record.send(group.to_sym).send(field.to_sym) : @record.send(field)
                    else
                        value = footer_rule[1][:value]
                    end
                    @footers[group.to_sym][field] = footer_rule[1][:label].to_s + value
                end unless @footers[group.to_sym].nil? || footer_rule[1].nil?
            end
        end
Returns the values to the group passed as parameter. If :behavior setting is used, so a
function in [lib/pdf/behaviors.rb] calculates the value of current field, else the report
method is called