mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-28 02:58:30 +00:00
fix: Reopen button does not appear in delivery note (#17295)
This commit is contained in:
committed by
Deepesh Garg
parent
b6fda118b9
commit
4f2fa173c9
@@ -101,8 +101,7 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
|
||||
refresh: function(doc, dt, dn) {
|
||||
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() {
|
||||
|
||||
Reference in New Issue
Block a user