mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-26 10:08:30 +00:00
fix: hide sales invoice creation for fully returned delivery notes
(cherry picked from commit 1f831d8783)
This commit is contained in:
@@ -334,6 +334,7 @@ erpnext.stock.DeliveryNoteController = class DeliveryNoteController extends (
|
|||||||
if (
|
if (
|
||||||
doc.docstatus == 1 &&
|
doc.docstatus == 1 &&
|
||||||
!doc.is_return &&
|
!doc.is_return &&
|
||||||
|
doc.per_returned != 100 &&
|
||||||
doc.status != "Closed" &&
|
doc.status != "Closed" &&
|
||||||
flt(doc.per_billed) < 100 &&
|
flt(doc.per_billed) < 100 &&
|
||||||
frappe.model.can_create("Sales Invoice")
|
frappe.model.can_create("Sales Invoice")
|
||||||
|
|||||||
Reference in New Issue
Block a user