odoo10_addons

Check-in [9ae465ef78]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:trial_balance_co: se adiciona sumatorio en balance_total
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | enterprise
Files: files | file ages | folders
SHA3-256: 9ae465ef78abb57d23988c955c8eb7ea0871f76526f5dace75b5763901eb5517
User & Date: bit4bit 2019-03-14 20:42:43
Context
2019-04-02
15:16
trial_balance_co: adiciona atributo account_code_prev_balance_ignore, como entra de texto donde espera separador por coma, a las cuentas cuyo codigo se omite balance previo check-in: 731a3190f8 user: bit4bit tags: enterprise
2019-03-14
20:42
trial_balance_co: se adiciona sumatorio en balance_total check-in: 9ae465ef78 user: bit4bit tags: enterprise
2019-03-10
01:20
trial_balance_co: se fuerza limpieza de campo account.code check-in: df7b79db23 user: bit4bit tags: enterprise
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to trial_balance_co/report/balance.py.

132
133
134
135
136
137
138


139
140
141
142
143
144
145
            result['balance_prev'] = 0.0
            result['balance_total'] = 0.0

            if code in account_result_previous:
                result['balance_prev'] = account_result_previous[code]['balance']
                result['code'] = account_result_previous[code]['code']
                result['name'] = account_result_previous[code]['name']


            res.append(result)

        return res

    #tomado de: account/report/account_balance.py
    def _get_accounts(self, used_context, accounts, display_account, default_partner_id):
        """ compute the balance, debit and credit for the provided accounts







>
>







132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
            result['balance_prev'] = 0.0
            result['balance_total'] = 0.0

            if code in account_result_previous:
                result['balance_prev'] = account_result_previous[code]['balance']
                result['code'] = account_result_previous[code]['code']
                result['name'] = account_result_previous[code]['name']

            result['balance_total'] = result.get('balance_prev', 0.0) + result.get('balance', 0.0)
            res.append(result)

        return res

    #tomado de: account/report/account_balance.py
    def _get_accounts(self, used_context, accounts, display_account, default_partner_id):
        """ compute the balance, debit and credit for the provided accounts