mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
bom fixes: item selection before server call
This commit is contained in:
@@ -162,7 +162,7 @@ cur_frm.cscript.update_stock = function(doc, dt, dn) {
|
||||
|
||||
cur_frm.cscript.warehouse = function(doc, cdt , cdn) {
|
||||
var d = locals[cdt][cdn];
|
||||
if (!d.item_code) {alert("please enter item code first"); return};
|
||||
if (!d.item_code) { msgprint("please enter item code first"); return };
|
||||
if (d.warehouse) {
|
||||
arg = "{'item_code':'" + d.item_code + "','warehouse':'" + d.warehouse +"'}";
|
||||
get_server_fields('get_actual_qty',arg,'entries',doc,cdt,cdn,1);
|
||||
|
||||
@@ -902,7 +902,7 @@ def assign_task_to_owner(inv, msg, users):
|
||||
def get_bank_cash_account(mode_of_payment):
|
||||
val = webnotes.conn.get_value("Mode of Payment", mode_of_payment, "default_account")
|
||||
if not val:
|
||||
webnotes.msgprint("Default Account not set in Mode of Payment: ")
|
||||
webnotes.msgprint("Default Account not set in Mode of Payment: %s" % mode_of_payment)
|
||||
return {
|
||||
"cash_bank_account": val
|
||||
}
|
||||
Reference in New Issue
Block a user