Update accounts_receivable.py
This commit is contained in:
parent
423549e084
commit
a5a926967b
@ -453,7 +453,7 @@ def get_pdc_details(party_type, report_date):
|
|||||||
on
|
on
|
||||||
(pref.parent = pent.name)
|
(pref.parent = pent.name)
|
||||||
where
|
where
|
||||||
pent.docstatus=1 and pent.posting_date > %s
|
pent.docstatus < 2 and pent.posting_date > %s
|
||||||
and pent.party_type = %s
|
and pent.party_type = %s
|
||||||
group by pent.party, pref.reference_name""", (report_date, party_type), as_dict=1):
|
group by pent.party, pref.reference_name""", (report_date, party_type), as_dict=1):
|
||||||
pdc_details.setdefault((pdc.invoice_no, pdc.party), pdc)
|
pdc_details.setdefault((pdc.invoice_no, pdc.party), pdc)
|
||||||
@ -474,7 +474,7 @@ def get_pdc_details(party_type, report_date):
|
|||||||
on
|
on
|
||||||
(jea.parent = je.name)
|
(jea.parent = je.name)
|
||||||
where
|
where
|
||||||
je.docstatus=1 and je.posting_date > %s
|
je.docstatus < 2 and je.posting_date > %s
|
||||||
and jea.party_type = %s
|
and jea.party_type = %s
|
||||||
group by jea.party, jea.reference_name""".format(amount_field), (report_date, party_type), as_dict=1):
|
group by jea.party, jea.reference_name""".format(amount_field), (report_date, party_type), as_dict=1):
|
||||||
if (pdc.invoice_no, pdc.party) in pdc_details:
|
if (pdc.invoice_no, pdc.party) in pdc_details:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user