fix: reset the incoming rate on changing of the warehouse (#38909)
This commit is contained in:
@@ -200,6 +200,10 @@ erpnext.selling.SellingController = class SellingController extends erpnext.Tran
|
||||
item.serial_no = null;
|
||||
}
|
||||
|
||||
if (doc.docstatus === 0 && doc.is_return && !doc.return_against) {
|
||||
item.incoming_rate = 0.0;
|
||||
}
|
||||
|
||||
var has_batch_no;
|
||||
frappe.db.get_value('Item', {'item_code': item.item_code}, 'has_batch_no', (r) => {
|
||||
has_batch_no = r && r.has_batch_no;
|
||||
|
||||
Reference in New Issue
Block a user