Skip to content

Commit

Permalink
Merge pull request #17345 from deepeshgarg007/delivery_note_v10
Browse files Browse the repository at this point in the history
fix: Make button not appearing in delivery note
  • Loading branch information
nabinhait committed Apr 23, 2019
2 parents 60b6f79 + d21f1c0 commit fb12805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/delivery_note/delivery_note.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fb12805

Please sign in to comment.