mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 15:09:20 +00:00
some fix in batch related cleanup
This commit is contained in:
@@ -505,7 +505,7 @@ erpnext.selling.SellingController = erpnext.TransactionController.extend({
|
|||||||
var me = this;
|
var me = this;
|
||||||
var item = frappe.get_doc(cdt, cdn);
|
var item = frappe.get_doc(cdt, cdn);
|
||||||
|
|
||||||
if(doc.warehouse && doc.item_code && doc.batch_no) {
|
if(item.warehouse && item.item_code && item.batch_no) {
|
||||||
return this.frm.call({
|
return this.frm.call({
|
||||||
method: "erpnext.stock.get_item_details.get_batch_qty",
|
method: "erpnext.stock.get_item_details.get_batch_qty",
|
||||||
child: item,
|
child: item,
|
||||||
|
|||||||
Reference in New Issue
Block a user