fix: Cr/Dr notes with POS Payments

(cherry picked from commit 68a23730f3)
This commit is contained in:
ruthra kumar
2024-02-20 21:49:28 +05:30
committed by Mergify
parent 9630dc7b88
commit e5098c521b

View File

@@ -1293,9 +1293,7 @@ class SalesInvoice(SellingController):
"credit_in_account_currency": payment_mode.base_amount
if self.party_account_currency == self.company_currency
else payment_mode.amount,
"against_voucher": self.return_against
if cint(self.is_return) and self.return_against
else self.name,
"against_voucher": self.name,
"against_voucher_type": self.doctype,
"cost_center": self.cost_center,
},