Merge pull request #40011 from ruthra-kumar/cr_dr_note_with_payments

fix: Ledger entries for Cr/Dr notes with POS Payments
This commit is contained in:
ruthra kumar
2024-02-23 06:01:37 +05:30
committed by GitHub
3 changed files with 41 additions and 4 deletions

View File

@@ -216,7 +216,8 @@ class AccountsController(TransactionBase):
)
)
if self.get("is_return") and self.get("return_against"):
if self.get("is_return") and self.get("return_against") and not self.get("is_pos"):
# if self.get("is_return") and self.get("return_against"):
document_type = "Credit Note" if self.doctype == "Sales Invoice" else "Debit Note"
frappe.msgprint(
_(