addons14/account_financial_report/report/aged_partner_balance_xlsx.py
def write_account_footer_from_dict(
        self,
        report,
        account,
        label,
        field_name,
        string_format,
        amount_format,
        amount_is_percent,
    ):
        """
        Specific function to write account footer for Aged Partner Balance
        """
        col_pos_footer_label = self._get_col_pos_footer_label(report)
        for col_pos, column in self.columns.items():
            if col_pos == col_pos_footer_label or column.get(field_name):
                if col_pos == col_pos_footer_label:
                    value = label
                else:
                    value = account.get(column[field_name], False)
                cell_type = column.get("type", "string")
                if cell_type == "string" or col_pos == col_pos_footer_label:
                    self.sheet.write_string(
                        self.row_pos, col_pos, value or "", string_format
                    )
                elif cell_type == "amount":
                    number = float(value)
                    if amount_is_percent:
                        number /= 100
                    self.sheet.write_number(
                        self.row_pos, col_pos, number, amount_format
                    )
            else:
                self.sheet.write_string(self.row_pos, col_pos, "", string_format)

        self.row_pos += 1

        Specific function to write account footer for Aged Partner Balance
        
Specific function to write account footer for Aged Partner Balance
Specific function to write account footer for Aged Partner Balance
def write_account_footer_from_dict(
        self,
        report,
        account,
        label,
        field_name,
        string_format,
        amount_format,
        amount_is_percent,
    ):
        col_pos_footer_label = self._get_col_pos_footer_label(report)
        for col_pos, column in self.columns.items():
            if col_pos == col_pos_footer_label or column.get(field_name):
                if col_pos == col_pos_footer_label:
                    value = label
                else:
                    value = account.get(column[field_name], False)
                cell_type = column.get("type", "string")
                if cell_type == "string" or col_pos == col_pos_footer_label:
                    self.sheet.write_string(
                        self.row_pos, col_pos, value or "", string_format
                    )
                elif cell_type == "amount":
                    number = float(value)
                    if amount_is_percent:
                        number /= 100
                    self.sheet.write_number(
                        self.row_pos, col_pos, number, amount_format
                    )
            else:
                self.sheet.write_string(self.row_pos, col_pos, "", string_format)
        self.row_pos += 1
def write_account_footer_from_dict ( self , report , account , label , field_name , string_format , amount_format , amount_is_percent , ) : col_pos_footer_label = self . _get_col_pos_footer_label ( report ) for col_pos , column in self . columns . items ( ) : if col_pos == col_pos_footer_label or column . get ( field_name ) : if col_pos == col_pos_footer_label : value = label else : value = account . get ( column [ field_name ] , False ) cell_type = column . get ( "type" , "string" ) if cell_type == "string" or col_pos == col_pos_footer_label : self . sheet . write_string ( self . row_pos , col_pos , value or "" , string_format ) elif cell_type == "amount" : number = float ( value ) if amount_is_percent : number /= 100 self . sheet . write_number ( self . row_pos , col_pos , number , amount_format ) else : self . sheet . write_string ( self . row_pos , col_pos , "" , string_format ) self . row_pos += 1
Specific function to write account footer for Aged Partner Balance
Specific function to write account footer for Aged Partner Balance
"""
        Specific function to write account footer for Aged Partner Balance
        """
self
report
account
label
field_name
string_format
amount_format
amount_is_percent