Ignore paid credit note in outstanding invoices in Payment Entry (#11534)
This commit is contained in:
parent
0f86d86e27
commit
deeb1380b1
@ -252,7 +252,6 @@ frappe.ui.form.on('Payment Entry', {
|
|||||||
date: frm.doc.posting_date
|
date: frm.doc.posting_date
|
||||||
},
|
},
|
||||||
callback: function(r, rt) {
|
callback: function(r, rt) {
|
||||||
console.log(r, rt);
|
|
||||||
if(r.message) {
|
if(r.message) {
|
||||||
if(frm.doc.payment_type == "Receive") {
|
if(frm.doc.payment_type == "Receive") {
|
||||||
frm.set_value("paid_from", r.message.party_account);
|
frm.set_value("paid_from", r.message.party_account);
|
||||||
|
@ -593,7 +593,7 @@ def get_outstanding_invoices(party_type, party, account, condition=None):
|
|||||||
select ifnull(sum({payment_dr_or_cr}), 0)
|
select ifnull(sum({payment_dr_or_cr}), 0)
|
||||||
from `tabGL Entry` payment_gl_entry
|
from `tabGL Entry` payment_gl_entry
|
||||||
where payment_gl_entry.against_voucher_type = invoice_gl_entry.voucher_type
|
where payment_gl_entry.against_voucher_type = invoice_gl_entry.voucher_type
|
||||||
and payment_gl_entry.against_voucher = invoice_gl_entry.voucher_no
|
and payment_gl_entry.against_voucher = invoice_gl_entry.against_voucher
|
||||||
and payment_gl_entry.party_type = invoice_gl_entry.party_type
|
and payment_gl_entry.party_type = invoice_gl_entry.party_type
|
||||||
and payment_gl_entry.party = invoice_gl_entry.party
|
and payment_gl_entry.party = invoice_gl_entry.party
|
||||||
and payment_gl_entry.account = invoice_gl_entry.account
|
and payment_gl_entry.account = invoice_gl_entry.account
|
||||||
|
Loading…
Reference in New Issue
Block a user