parent
35f72a17db
commit
6b75c03f34
@ -999,14 +999,14 @@ class PaymentEntry(AccountsController):
|
|||||||
if self.payment_type == "Internal Transfer":
|
if self.payment_type == "Internal Transfer":
|
||||||
remarks = [
|
remarks = [
|
||||||
_("Amount {0} {1} transferred from {2} to {3}").format(
|
_("Amount {0} {1} transferred from {2} to {3}").format(
|
||||||
self.paid_from_account_currency, self.paid_amount, self.paid_from, self.paid_to
|
_(self.paid_from_account_currency), self.paid_amount, self.paid_from, self.paid_to
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
|
|
||||||
remarks = [
|
remarks = [
|
||||||
_("Amount {0} {1} {2} {3}").format(
|
_("Amount {0} {1} {2} {3}").format(
|
||||||
self.party_account_currency,
|
_(self.party_account_currency),
|
||||||
self.paid_amount if self.payment_type == "Receive" else self.received_amount,
|
self.paid_amount if self.payment_type == "Receive" else self.received_amount,
|
||||||
_("received from") if self.payment_type == "Receive" else _("to"),
|
_("received from") if self.payment_type == "Receive" else _("to"),
|
||||||
self.party,
|
self.party,
|
||||||
@ -1023,14 +1023,14 @@ class PaymentEntry(AccountsController):
|
|||||||
if d.allocated_amount:
|
if d.allocated_amount:
|
||||||
remarks.append(
|
remarks.append(
|
||||||
_("Amount {0} {1} against {2} {3}").format(
|
_("Amount {0} {1} against {2} {3}").format(
|
||||||
self.party_account_currency, d.allocated_amount, d.reference_doctype, d.reference_name
|
_(self.party_account_currency), d.allocated_amount, d.reference_doctype, d.reference_name
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
for d in self.get("deductions"):
|
for d in self.get("deductions"):
|
||||||
if d.amount:
|
if d.amount:
|
||||||
remarks.append(
|
remarks.append(
|
||||||
_("Amount {0} {1} deducted against {2}").format(self.company_currency, d.amount, d.account)
|
_("Amount {0} {1} deducted against {2}").format(_(self.company_currency), d.amount, d.account)
|
||||||
)
|
)
|
||||||
|
|
||||||
self.set("remarks", "\n".join(remarks))
|
self.set("remarks", "\n".join(remarks))
|
||||||
|
Loading…
Reference in New Issue
Block a user