chore: add translation function to Bank Reconciliation Tool related files
chore: add translation function to Bank Reconciliation Tool related files
This commit is contained in:
parent
7a5a500d29
commit
ad0dd693ac
@ -12,6 +12,9 @@ frappe.ui.form.on("Bank Reconciliation Tool", {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
let no_bank_transactions_text =
|
||||||
|
`<div class="text-muted text-center">${__("No Matching Bank Transactions Found")}</div>`
|
||||||
|
set_field_options("no_bank_transactions", no_bank_transactions_text);
|
||||||
},
|
},
|
||||||
|
|
||||||
onload: function (frm) {
|
onload: function (frm) {
|
||||||
|
|||||||
@ -81,8 +81,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"fieldname": "no_bank_transactions",
|
"fieldname": "no_bank_transactions",
|
||||||
"fieldtype": "HTML",
|
"fieldtype": "HTML"
|
||||||
"options": "<div class=\"text-muted text-center\">No Matching Bank Transactions Found</div>"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"hide_toolbar": 1,
|
"hide_toolbar": 1,
|
||||||
@ -109,4 +108,4 @@
|
|||||||
"quick_entry": 1,
|
"quick_entry": 1,
|
||||||
"sort_field": "modified",
|
"sort_field": "modified",
|
||||||
"sort_order": "DESC"
|
"sort_order": "DESC"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -100,7 +100,7 @@ frappe.ui.form.on("Bank Statement Import", {
|
|||||||
|
|
||||||
if (frm.doc.status.includes("Success")) {
|
if (frm.doc.status.includes("Success")) {
|
||||||
frm.add_custom_button(
|
frm.add_custom_button(
|
||||||
__("Go to {0} List", [frm.doc.reference_doctype]),
|
__("Go to {0} List", [__(frm.doc.reference_doctype)]),
|
||||||
() => frappe.set_route("List", frm.doc.reference_doctype)
|
() => frappe.set_route("List", frm.doc.reference_doctype)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -30,28 +30,28 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
|||||||
get_dt_columns() {
|
get_dt_columns() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{
|
{
|
||||||
name: "Date",
|
name: __("Date"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "Party Type",
|
name: __("Party Type"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 95,
|
width: 95,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Party",
|
name: __("Party"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Description",
|
name: __("Description"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 350,
|
width: 350,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Deposit",
|
name: __("Deposit"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
format: (value) =>
|
format: (value) =>
|
||||||
@ -60,7 +60,7 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
|||||||
"</span>",
|
"</span>",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Withdrawal",
|
name: __("Withdrawal"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
format: (value) =>
|
format: (value) =>
|
||||||
@ -69,26 +69,26 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
|||||||
"</span>",
|
"</span>",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Unallocated Amount",
|
name: __("Unallocated Amount"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
format: (value) =>
|
format: (value) =>
|
||||||
"<span style='color:blue;'>" +
|
"<span style='color:var(--blue-500);'>" +
|
||||||
format_currency(value, this.currency) +
|
format_currency(value, this.currency) +
|
||||||
"</span>",
|
"</span>",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Reference Number",
|
name: __("Reference Number"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 140,
|
width: 140,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Actions",
|
name: __("Actions"),
|
||||||
editable: false,
|
editable: false,
|
||||||
sortable: false,
|
sortable: false,
|
||||||
focusable: false,
|
focusable: false,
|
||||||
dropdown: false,
|
dropdown: false,
|
||||||
width: 80,
|
width: 100,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ erpnext.accounts.bank_reconciliation.DataTableManager = class DataTableManager {
|
|||||||
row["reference_number"],
|
row["reference_number"],
|
||||||
`
|
`
|
||||||
<Button class="btn btn-primary btn-xs center" data-name = ${row["name"]} >
|
<Button class="btn btn-primary btn-xs center" data-name = ${row["name"]} >
|
||||||
Actions
|
${__("Actions")}
|
||||||
</a>
|
</a>
|
||||||
`,
|
`,
|
||||||
];
|
];
|
||||||
|
|||||||
@ -87,33 +87,33 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
get_dt_columns() {
|
get_dt_columns() {
|
||||||
this.columns = [
|
this.columns = [
|
||||||
{
|
{
|
||||||
name: "Document Type",
|
name: __("Document Type"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 125,
|
width: 125,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Document Name",
|
name: __("Document Name"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Reference Date",
|
name: __("Reference Date"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Amount",
|
name: __("Amount"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Party",
|
name: __("Party"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 120,
|
width: 120,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
name: "Reference Number",
|
name: __("Reference Number"),
|
||||||
editable: false,
|
editable: false,
|
||||||
width: 140,
|
width: 140,
|
||||||
},
|
},
|
||||||
@ -222,7 +222,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
{
|
{
|
||||||
fieldtype: "HTML",
|
fieldtype: "HTML",
|
||||||
fieldname: "no_matching_vouchers",
|
fieldname: "no_matching_vouchers",
|
||||||
options: "<div class=\"text-muted text-center\">No Matching Vouchers Found</div>"
|
options: __("<div class=\"text-muted text-center\">{0}</div>", [__("No Matching Vouchers Found")])
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldtype: "Section Break",
|
fieldtype: "Section Break",
|
||||||
@ -444,10 +444,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
vouchers: vouchers,
|
vouchers: vouchers,
|
||||||
},
|
},
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
const alert_string =
|
const alert_string = __("Bank Transaction {0} Matched", [this.bank_transaction.name]);
|
||||||
"Bank Transaction " +
|
|
||||||
this.bank_transaction.name +
|
|
||||||
" Matched";
|
|
||||||
frappe.show_alert(alert_string);
|
frappe.show_alert(alert_string);
|
||||||
this.update_dt_cards(response.message);
|
this.update_dt_cards(response.message);
|
||||||
this.dialog.hide();
|
this.dialog.hide();
|
||||||
@ -471,10 +468,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
cost_center: values.cost_center,
|
cost_center: values.cost_center,
|
||||||
},
|
},
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
const alert_string =
|
const alert_string = __("Bank Transaction {0} added as Payment Entry", [this.bank_transaction.name]);
|
||||||
"Bank Transaction " +
|
|
||||||
this.bank_transaction.name +
|
|
||||||
" added as Payment Entry";
|
|
||||||
frappe.show_alert(alert_string);
|
frappe.show_alert(alert_string);
|
||||||
this.update_dt_cards(response.message);
|
this.update_dt_cards(response.message);
|
||||||
this.dialog.hide();
|
this.dialog.hide();
|
||||||
@ -498,10 +492,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
second_account: values.second_account,
|
second_account: values.second_account,
|
||||||
},
|
},
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
const alert_string =
|
const alert_string = __("Bank Transaction {0} added as Journal Entry", [this.bank_transaction.name]);
|
||||||
"Bank Transaction " +
|
|
||||||
this.bank_transaction.name +
|
|
||||||
" added as Journal Entry";
|
|
||||||
frappe.show_alert(alert_string);
|
frappe.show_alert(alert_string);
|
||||||
this.update_dt_cards(response.message);
|
this.update_dt_cards(response.message);
|
||||||
this.dialog.hide();
|
this.dialog.hide();
|
||||||
@ -520,10 +511,7 @@ erpnext.accounts.bank_reconciliation.DialogManager = class DialogManager {
|
|||||||
party: values.party,
|
party: values.party,
|
||||||
},
|
},
|
||||||
callback: (response) => {
|
callback: (response) => {
|
||||||
const alert_string =
|
const alert_string = __("Bank Transaction {0} updated", [this.bank_transaction.name]);
|
||||||
"Bank Transaction " +
|
|
||||||
this.bank_transaction.name +
|
|
||||||
" updated";
|
|
||||||
frappe.show_alert(alert_string);
|
frappe.show_alert(alert_string);
|
||||||
this.update_dt_cards(response.message);
|
this.update_dt_cards(response.message);
|
||||||
this.dialog.hide();
|
this.dialog.hide();
|
||||||
|
|||||||
@ -15,20 +15,20 @@ erpnext.accounts.bank_reconciliation.NumberCardManager = class NumberCardManager
|
|||||||
var chart_data = [
|
var chart_data = [
|
||||||
{
|
{
|
||||||
value: this.bank_statement_closing_balance,
|
value: this.bank_statement_closing_balance,
|
||||||
label: "Closing Balance as per Bank Statement",
|
label: __("Closing Balance as per Bank Statement"),
|
||||||
datatype: "Currency",
|
datatype: "Currency",
|
||||||
currency: this.currency,
|
currency: this.currency,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: this.cleared_balance,
|
value: this.cleared_balance,
|
||||||
label: "Closing Balance as per ERP",
|
label: __("Closing Balance as per ERP"),
|
||||||
datatype: "Currency",
|
datatype: "Currency",
|
||||||
currency: this.currency,
|
currency: this.currency,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value:
|
value:
|
||||||
this.bank_statement_closing_balance - this.cleared_balance,
|
this.bank_statement_closing_balance - this.cleared_balance,
|
||||||
label: "Difference",
|
label: __("Difference"),
|
||||||
datatype: "Currency",
|
datatype: "Currency",
|
||||||
currency: this.currency,
|
currency: this.currency,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user