mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fixes in payment reconciliation
This commit is contained in:
@@ -30,23 +30,6 @@ cur_frm.cscript.refresh = function(doc) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cur_frm.fields_dict.voucher_no.get_query = function(doc) {
|
|
||||||
// if (!doc.account) msgprint("Please select Account first");
|
|
||||||
// else {
|
|
||||||
// return repl("select gle.voucher_no, gle.posting_date \
|
|
||||||
// from `tabGL Entry` gle where gle.account = '%(acc)s' \
|
|
||||||
// and gle.voucher_type = '%(dt)s' \
|
|
||||||
// and gle.voucher_no LIKE '%s' \
|
|
||||||
// and ifnull(gle.is_cancelled, 'No') = 'No'\
|
|
||||||
// and (ifnull(against_voucher_type, '') = '' or \
|
|
||||||
// (select sum(debit) - sum(credit) from `tabGL Entry` \
|
|
||||||
// where against_voucher_type = '%(dt)s' and against_voucher = gle.voucher_no \
|
|
||||||
// and ifnull(is_cancelled, 'No') = 'No') != 0 )\
|
|
||||||
// ORDER BY gle.posting_date DESC, gle.voucher_no DESC LIMIT 50 \
|
|
||||||
// ", {dt:doc.voucher_type, acc:doc.account});
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
cur_frm.fields_dict.voucher_no.get_query = function(doc) {
|
cur_frm.fields_dict.voucher_no.get_query = function(doc) {
|
||||||
if (!doc.account) msgprint("Please select Account first");
|
if (!doc.account) msgprint("Please select Account first");
|
||||||
else {
|
else {
|
||||||
|
|||||||
Reference in New Issue
Block a user