fix: hide sales invoice creation for fully returned delivery notes

(cherry picked from commit 1f831d8783)
This commit is contained in:
l0gesh29
2025-10-10 13:31:57 +05:30
committed by Mergify
parent 6682a25532
commit b426b8c07f

View File

@@ -334,6 +334,7 @@ erpnext.stock.DeliveryNoteController = class DeliveryNoteController extends (
if (
doc.docstatus == 1 &&
!doc.is_return &&
doc.per_returned != 100 &&
doc.status != "Closed" &&
flt(doc.per_billed) < 100 &&
frappe.model.can_create("Sales Invoice")