fix: wrong paid and cn amount on pos invoice
(cherry picked from commit 5cb5e09dbbac878906023c07423d5d8233279790)
This commit is contained in:
parent
02ceee6669
commit
cff9e47162
@ -242,8 +242,12 @@ class ReceivablePayableReport(object):
|
|||||||
row.invoiced_in_account_currency += amount_in_account_currency
|
row.invoiced_in_account_currency += amount_in_account_currency
|
||||||
else:
|
else:
|
||||||
if self.is_invoice(ple):
|
if self.is_invoice(ple):
|
||||||
row.credit_note -= amount
|
if row.voucher_no == ple.voucher_no == ple.against_voucher_no:
|
||||||
row.credit_note_in_account_currency -= amount_in_account_currency
|
row.paid -= amount
|
||||||
|
row.paid_in_account_currency -= amount_in_account_currency
|
||||||
|
else:
|
||||||
|
row.credit_note -= amount
|
||||||
|
row.credit_note_in_account_currency -= amount_in_account_currency
|
||||||
else:
|
else:
|
||||||
row.paid -= amount
|
row.paid -= amount
|
||||||
row.paid_in_account_currency -= amount_in_account_currency
|
row.paid_in_account_currency -= amount_in_account_currency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user