Allow advance JV payments in Accounts Receivable/Payable

This commit is contained in:
ankitjavalkarwork 2014-10-10 13:13:39 +05:30
parent b7e5ad0a31
commit ff231b5e62
2 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,8 @@ def execute(filters=None):
data = []
for gle in entries:
if cstr(gle.against_voucher) == gle.voucher_no or not gle.against_voucher \
or [gle.against_voucher_type, gle.against_voucher] in entries_after_report_date:
or [gle.against_voucher_type, gle.against_voucher] in entries_after_report_date \
or (gle.against_voucher_type == "Purchase Order"):
voucher_details = voucher_detail_map.get(gle.voucher_type, {}).get(gle.voucher_no, {})
invoiced_amount = gle.credit > 0 and gle.credit or 0

View File

@ -79,6 +79,9 @@ class AccountsReceivableReport(object):
return (
# advance
(not gle.against_voucher) or
# against sales order
(gle.against_voucher_type == "Sales Order") or
# sales invoice
(gle.against_voucher==gle.voucher_no and gle.debit > 0) or