mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-19 23:12:13 +00:00
fix: move condition for shipment
This commit is contained in:
@@ -188,8 +188,8 @@ erpnext.stock.DeliveryNoteController = class DeliveryNoteController extends (
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!doc.is_return && doc.status != "Closed" && frappe.model.can_create("Shipment")) {
|
if (!doc.is_return && doc.status != "Closed") {
|
||||||
if (doc.docstatus == 1) {
|
if (doc.docstatus == 1 && frappe.model.can_create("Shipment")) {
|
||||||
this.frm.add_custom_button(
|
this.frm.add_custom_button(
|
||||||
__("Shipment"),
|
__("Shipment"),
|
||||||
function () {
|
function () {
|
||||||
|
|||||||
Reference in New Issue
Block a user