Browse Source
Merge pull request #28748 from deepeshgarg007/accounts_receivable_jv_due_date
fix: Ageing in AR/AP report for advances
develop
Deepesh Garg
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
erpnext/accounts/report/accounts_receivable/accounts_receivable.py
|
@ -545,7 +545,9 @@ class ReceivablePayableReport(object): |
|
|
|
|
|
|
|
|
def set_ageing(self, row): |
|
|
def set_ageing(self, row): |
|
|
if self.filters.ageing_based_on == "Due Date": |
|
|
if self.filters.ageing_based_on == "Due Date": |
|
|
entry_date = row.due_date |
|
|
# use posting date as a fallback for advances posted via journal and payment entry |
|
|
|
|
|
# when ageing viewed by due date |
|
|
|
|
|
entry_date = row.due_date or row.posting_date |
|
|
elif self.filters.ageing_based_on == "Supplier Invoice Date": |
|
|
elif self.filters.ageing_based_on == "Supplier Invoice Date": |
|
|
entry_date = row.bill_date |
|
|
entry_date = row.bill_date |
|
|
else: |
|
|
else: |
|
|