fix: return date

This commit is contained in:
Saqib Ansari
2020-10-26 12:41:13 +05:30
committed by Saurabh
parent 7015609f7f
commit e7ea94ae6f

View File

@@ -418,7 +418,7 @@ def get_payment_details(invoice):
def get_return_doc_reference(invoice):
invoice_date = frappe.db.get_value('Sales Invoice', invoice.return_against, 'posting_date')
return frappe._dict(dict(
invoice_name=invoice.return_against, invoice_date=invoice_date
invoice_name=invoice.return_against, invoice_date=format_date(invoice_date, 'dd/mm/yyyy')
))
def get_eway_bill_details(invoice):