mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
remove Foreign Currency Registered Balance, fix formula for registered difference in currency
This commit is contained in:
committed by
Sandy Carter
parent
08d14419cf
commit
1e6e7e0af6
@@ -454,7 +454,7 @@ class bank_acc_rec_statement(orm.Model):
|
||||
account_precision)
|
||||
sres['difference_in_currency'] = round(
|
||||
(statement.ending_balance_in_currency
|
||||
+ sres['cleared_balance_in_currency']
|
||||
- sres['cleared_balance_in_currency']
|
||||
- statement.starting_balance),
|
||||
account_precision)
|
||||
sres['general_ledger_balance'] = self._get_gl_balance(
|
||||
@@ -464,11 +464,6 @@ class bank_acc_rec_statement(orm.Model):
|
||||
+ sres['cleared_balance']
|
||||
+ sres['uncleared_balance']),
|
||||
account_precision)
|
||||
sres['registered_balance_in_currency'] = round(
|
||||
(statement.starting_balance_in_currency
|
||||
+ sres['cleared_balance_in_currency']
|
||||
+ sres['uncleared_balance_in_currency']),
|
||||
account_precision)
|
||||
|
||||
return res
|
||||
|
||||
@@ -1056,17 +1051,7 @@ class bank_acc_rec_statement(orm.Model):
|
||||
string='Registered Balance',
|
||||
digits_compute=dp.get_precision('Account'),
|
||||
help="Initial balance + Cleared Balance + Uncleared Balance",
|
||||
multi="balance"
|
||||
),
|
||||
'registered_balance_in_currency': fields.function(
|
||||
_get_balance,
|
||||
method=True,
|
||||
type='float',
|
||||
string='Registered Balance',
|
||||
digits_compute=dp.get_precision('Account'),
|
||||
help="Initial balance + Cleared Balance + Uncleared Balance",
|
||||
multi="balance"
|
||||
),
|
||||
multi="balance"),
|
||||
'adjustment_move_id': fields.many2one(
|
||||
'account.move',
|
||||
'Adjustement Move',
|
||||
|
||||
@@ -193,10 +193,6 @@
|
||||
<group name="gen_ledger" col="2" colspan="2">
|
||||
<field name="general_ledger_balance" colspan="2"/>
|
||||
<field name="registered_balance" />
|
||||
<field name="registered_balance_in_currency"
|
||||
string="Foreign Currency Registered Balance"
|
||||
attrs="{'invisible':[('multi_currency', '=', False)]}"
|
||||
/>
|
||||
<field name="adjustment_move_id" readonly="1"
|
||||
attrs="{'invisible':[('multi_currency', '=', False)]}"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user