diff --git a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py index 68d3cf492b..ce7f7fc71b 100644 --- a/erpnext/accounts/report/accounts_receivable/accounts_receivable.py +++ b/erpnext/accounts/report/accounts_receivable/accounts_receivable.py @@ -94,9 +94,10 @@ class ReceivablePayableReport(object): data = [] for gle in self.get_entries_till(self.filters.report_date, args.get("party_type")): if self.is_receivable_or_payable(gle, dr_or_cr, future_vouchers): - outstanding_amount = self.get_outstanding_amount(gle, self.filters.report_date, dr_or_cr) + outstanding_amount = flt(self.get_outstanding_amount(gle, + self.filters.report_date, dr_or_cr), currency_precision) + if abs(outstanding_amount) > 0.1/10**currency_precision: - row = [gle.posting_date, gle.party] # customer / supplier name @@ -228,7 +229,7 @@ class ReceivablePayableReport(object): account_currency, remarks, {0} from `tabGL Entry` where docstatus < 2 and party_type=%s and (party is not null and party != '') {1} - group by voucher_type, voucher_no, against_voucher_type, against_voucher + group by voucher_type, voucher_no, against_voucher_type, against_voucher, party order by posting_date, party""" .format(select_fields, conditions), values, as_dict=True)