mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
fix: let user delete the elements of items
This commit is contained in:
@@ -95,8 +95,6 @@ erpnext.stock.DeliveryNoteController = erpnext.selling.SellingController.extend(
|
|||||||
this._super();
|
this._super();
|
||||||
|
|
||||||
if((!doc.is_return) && (doc.status=="Closed" || doc.is_new())) {
|
if((!doc.is_return) && (doc.status=="Closed" || doc.is_new())) {
|
||||||
this.frm.items = [];
|
|
||||||
this.frm.refresh();
|
|
||||||
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