Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ function toggle_exchange_rate_field(frm) {

function convert_amount(frm) {

if (!frm.doc.amount) return;
// if (!frm.doc.amount) return;

let total = 0;
if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,14 @@
"fieldname": "amount_in_trans_cur",
"fieldtype": "Currency",
"label": "Total Amount",
"options": "transaction_currency",
"read_only": 1
},
{
"fieldname": "amount_paid_in_trans_curr",
"fieldtype": "Currency",
"label": "Total Amount Paid",
"options": "transaction_currency",
"read_only": 1
},
{
Expand All @@ -353,6 +355,7 @@
"fieldname": "amount_to_be_settled_trans_curr",
"fieldtype": "Currency",
"label": "Total Amount To be Settled",
"options": "transaction_currency",
"read_only": 1
}
],
Expand All @@ -364,7 +367,7 @@
"link_fieldname": "custom_payment_advice"
}
],
"modified": "2026-02-12 18:23:42.737425",
"modified": "2026-02-13 12:24:52.258169",
"modified_by": "Administrator",
"module": "Payment Advice",
"name": "Payment Advice",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ class PaymentAdvice(Document):
def validate(self):
if self.amount_to_be_settled:
self.amount_to_be_settled_in_words = money_in_words(self.amount_to_be_settled)
if self.amount_to_be_settled_trans_curr:
self.amount_words_trans_curr = money_in_words(self.amount_to_be_settled_trans_curr, self.transaction_currency)
if self.payment_amount:
pending = self.amount_to_be_settled - self.payment_amount
self.pending_amount = pending if pending > 0 else 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,18 +107,21 @@
"fieldname": "amount_in_currency",
"fieldtype": "Currency",
"label": "Total Amount in Currency",
"options": "currency",
"read_only": 1
},
{
"fieldname": "settled_amount_in_currency",
"fieldtype": "Currency",
"label": "Settled Amount in Currency",
"options": "currency",
"read_only": 1
},
{
"fieldname": "net_payable_amount_in_currency",
"fieldtype": "Currency",
"label": "Net Payable Amount in Currency",
"options": "currency",
"read_only": 1
},
{
Expand All @@ -143,7 +146,7 @@
"index_web_pages_for_search": 1,
"istable": 1,
"links": [],
"modified": "2026-02-12 19:20:45.177581",
"modified": "2026-02-13 12:28:17.239483",
"modified_by": "Administrator",
"module": "Payment Advice",
"name": "Payment Advice Reference",
Expand Down
Loading