fix: not able to make PR against stand alone Debit Note

This commit is contained in:
Rohit Waghchaure
2025-03-18 21:20:40 +05:30
parent 57d7ac4954
commit 6a52c30591

View File

@@ -194,7 +194,7 @@ erpnext.buying = {
}
qty(doc, cdt, cdn) {
if ((doc.doctype == "Purchase Receipt") || (doc.doctype == "Purchase Invoice" && (doc.update_stock || doc.is_return))) {
if ((doc.doctype == "Purchase Receipt") || (doc.doctype == "Purchase Invoice" && doc.update_stock)) {
this.calculate_received_qty(doc, cdt, cdn)
}
super.qty(doc, cdt, cdn);