Merge pull request #25086 from deepeshgarg007/advance_amount_precision

fix: Precision issues while allocating advance amount
This commit is contained in:
Deepesh Garg
2021-04-09 21:39:02 +05:30
committed by GitHub
3 changed files with 4 additions and 10 deletions

View File

@@ -659,6 +659,7 @@ class AccountsController(TransactionBase):
'dr_or_cr': dr_or_cr,
'unadjusted_amount': flt(d.advance_amount),
'allocated_amount': flt(d.allocated_amount),
'precision': d.precision('advance_amount'),
'exchange_rate': (self.conversion_rate
if self.party_account_currency != self.company_currency else 1),
'grand_total': (self.base_grand_total