Merge pull request #17345 from deepeshgarg007/delivery_note_v10

fix: Make button not appearing in delivery note
This commit is contained in:
Nabin Hait
2019-04-23 18:41:33 +05:30
committed by GitHub

View File

@@ -94,7 +94,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
var me = this;
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) {
this.frm.add_custom_button(__('Sales Order'),
function() {