Merge pull request #5909 from nabinhait/fix_113
[fix] Show supplier name field if it is different from supplier id
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py
index 3eed70c..6c04cf5 100644
--- a/erpnext/accounts/doctype/payment_entry/payment_entry.py
+++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py
@@ -267,6 +267,8 @@
if d.amount:
self.difference_amount -= flt(d.amount)
+ self.difference_amount = flt(self.difference_amount, self.precision("difference_amount"))
+
def clear_unallocated_reference_document_rows(self):
self.set("references", self.get("references", {"allocated_amount": ["not in", [0, None, ""]]}))