mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-12 17:51:20 +00:00
fix: Make button not appearing in delivery note
This commit is contained in:
@@ -94,7 +94,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
|
|||||||
var me = this;
|
var me = this;
|
||||||
this._super();
|
this._super();
|
||||||
|
|
||||||
if((!doc.is_return) && (doc.status=="Closed" || doc.is_new())) {
|
if((!doc.is_return) && (doc.status!="Closed" || this.frm.is_new())) {
|
||||||
if (this.frm.doc.docstatus===0) {
|
if (this.frm.doc.docstatus===0) {
|
||||||
this.frm.add_custom_button(__('Sales Order'),
|
this.frm.add_custom_button(__('Sales Order'),
|
||||||
function() {
|
function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user