mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
call calc_adjustment_amount function only if docstatus is zero
This commit is contained in:
@@ -33,6 +33,7 @@ cur_frm.cscript.refresh = function(doc) {
|
||||
}
|
||||
|
||||
cur_frm.fields_dict.voucher_no.get_query = function(doc) {
|
||||
// TO-do: check for pos, it should not come
|
||||
if (!doc.account) msgprint("Please select Account first");
|
||||
else {
|
||||
return repl("select gle.voucher_no, gle.posting_date, gle.%(account_type)s \
|
||||
|
||||
Reference in New Issue
Block a user