[hot] make_stock_entry button in purchase order
This commit is contained in:
parent
4451db2db4
commit
c8a5a2cc4a
@ -32,7 +32,8 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
|||||||
cur_frm.add_custom_button(__('Receive'), this.make_purchase_receipt).addClass("btn-primary");
|
cur_frm.add_custom_button(__('Receive'), this.make_purchase_receipt).addClass("btn-primary");
|
||||||
|
|
||||||
if(doc.is_subcontracted==="Yes") {
|
if(doc.is_subcontracted==="Yes") {
|
||||||
cur_frm.add_custom_button(__('Transfer Material to Supplier'), this.make_stock_entry);
|
cur_frm.add_custom_button(__('Transfer Material to Supplier'),
|
||||||
|
function() { me.make_stock_entry(); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user