Merge pull request #46610 from frappe/mergify/bp/version-14-hotfix/pr-46595

fix: not able to make PR against stand alone Debit Note (backport #46595)
This commit is contained in:
rohitwaghchaure
2025-03-19 15:36:15 +05:30
committed by GitHub

View File

@@ -174,7 +174,7 @@ erpnext.buying.BuyingController = class BuyingController extends erpnext.Transac
}
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);