mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
fix: in_contex_translation_fixes
This commit is contained in:
@@ -12,15 +12,15 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left font-bold">{{ _('Grand Total') }}</td>
|
<td class="text-left font-bold">{{ _("Grand Total") }}</td>
|
||||||
<td class='text-right'> {{ frappe.utils.fmt_money(data.grand_total or '', currency=currency) }}</td>
|
<td class='text-right'> {{ frappe.utils.fmt_money(data.grand_total or '', currency=currency) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left font-bold">{{ _('Net Total') }}</td>
|
<td class="text-left font-bold">{{ _("Net Total") }}</td>
|
||||||
<td class='text-right'> {{ frappe.utils.fmt_money(data.net_total or '', currency=currency) }}</td>
|
<td class='text-right'> {{ frappe.utils.fmt_money(data.net_total or '', currency=currency) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left font-bold">{{ _('Total Quantity') }}</td>
|
<td class="text-left font-bold">{{ _("Total Quantity") }}</td>
|
||||||
<td class='text-right'>{{ data.total_quantity or '' }}</td>
|
<td class='text-right'>{{ data.total_quantity or '' }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
{% for d in data.payment_reconciliation %}
|
{% for d in data.payment_reconciliation %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-left">{{ d.mode_of_payment }}</td>
|
<td class="text-left">{{ _(d.mode_of_payment) }}</td>
|
||||||
<td class='text-right'> {{ frappe.utils.fmt_money(d.expected_amount - d.opening_amount, currency=currency) }}</td>
|
<td class='text-right'> {{ frappe.utils.fmt_money(d.expected_amount - d.opening_amount, currency=currency) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-left">{{ _("Account") }}</th>
|
<th class="text-left">{{ _("Account") }}</th>
|
||||||
<th class="text-left">{{ _("Rate") }}</th>
|
<th class="text-left">{{ _(" Tax Rate") }}</th>
|
||||||
<th class="text-right">{{ _("Amount") }}</th>
|
<th class="text-right">{{ _("Amount") }}</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ def get_columns(additional_table_columns, filters):
|
|||||||
"width": 100,
|
"width": 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": _("Rate"),
|
"label": _("Tax Rate"),
|
||||||
"fieldname": "rate",
|
"fieldname": "rate",
|
||||||
"fieldtype": "Float",
|
"fieldtype": "Float",
|
||||||
"options": "currency",
|
"options": "currency",
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ def get_fiscal_years(
|
|||||||
# No match for restricting selectors
|
# No match for restricting selectors
|
||||||
if raise_on_missing:
|
if raise_on_missing:
|
||||||
error_msg = _("""{0} {1} is not in any active Fiscal Year""").format(
|
error_msg = _("""{0} {1} is not in any active Fiscal Year""").format(
|
||||||
label, formatdate(transaction_date)
|
_(label), formatdate(transaction_date)
|
||||||
)
|
)
|
||||||
if company:
|
if company:
|
||||||
error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company))
|
error_msg = _("""{0} for {1}""").format(error_msg, frappe.bold(company))
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ def get_data(filters, columns):
|
|||||||
|
|
||||||
for label in labels:
|
for label in labels:
|
||||||
work = {}
|
work = {}
|
||||||
work["Status"] = label
|
work["Status"] = _(label)
|
||||||
for _dummy, end_date in ranges:
|
for _dummy, end_date in ranges:
|
||||||
period = get_period(end_date, filters)
|
period = get_period(end_date, filters)
|
||||||
if periodic_data.get(label).get(period):
|
if periodic_data.get(label).get(period):
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
<p>
|
<p>
|
||||||
<a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart"
|
<a href="/api/method/erpnext.accounts.doctype.payment_request.payment_request.make_payment_request?dn={{ doc.name }}&dt={{ doc.doctype }}&submit_doc=1&order_type=Shopping Cart"
|
||||||
class="btn btn-primary btn-sm" id="pay-for-order">
|
class="btn btn-primary btn-sm" id="pay-for-order">
|
||||||
{{ _("Pay") }} {{ pay_amount }}
|
{{ _("Pay", null, "Amount") }} {{ pay_amount }}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user