Skip to content

Commit

Permalink
fix: trans
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Jan 24, 2025
1 parent 646f08f commit ec1ca8e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions erpnext/accounts/report/accounts_payable/accounts_payable.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ frappe.query_reports["Accounts Payable"] = {
value = value.bold();

}
if (column.fieldname == "voucher_type") {
value = __(value);
}
return value;
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ frappe.query_reports["Accounts Receivable"] = {
value = value.bold();

}
if (column.fieldname == "voucher_type") {
value = __(value);
}
return value;
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def build_data(self):
conversion_rate = get_exchange_rate("USD", vourcher_data[currency_field], nowdate(), exchange_type)
row.outstanding_original_currency = flt((row.outstanding / conversion_rate), self.currency_precision)

row['voucher_type'] = _(row['voucher_type'])
row['voucher_type'] = row['voucher_type']

if frappe.get_hooks('accounts_receivable_usd_column') and row.outstanding == 0.0:
row.outstanding_original_currency = 0
Expand Down

0 comments on commit ec1ca8e

Please sign in to comment.