fix: wrap inter-company order button labels in __() for translation (backport #49178) (#49179)

fix: wrap inter-company order button labels in __() for translation (#49178)

* Updated purchase_order.js

* Update sales_order.js

(cherry picked from commit 078b8439d9)

Co-authored-by: divyalekha99 <32547248+divyalekha99@users.noreply.github.com>
This commit is contained in:
Mihir Kandoi
2025-08-14 20:33:32 +05:30
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -463,8 +463,8 @@ erpnext.buying.PurchaseOrderController = class PurchaseOrderController extends (
if (internal) { if (internal) {
let button_label = let button_label =
me.frm.doc.company === me.frm.doc.represents_company me.frm.doc.company === me.frm.doc.represents_company
? "Internal Sales Order" ? __("Internal Sales Order")
: "Inter Company Sales Order"; : __("Inter Company Sales Order");
me.frm.add_custom_button( me.frm.add_custom_button(
button_label, button_label,

View File

@@ -738,8 +738,8 @@ erpnext.selling.SalesOrderController = class SalesOrderController extends erpnex
if (internal) { if (internal) {
let button_label = let button_label =
me.frm.doc.company === me.frm.doc.represents_company me.frm.doc.company === me.frm.doc.represents_company
? "Internal Purchase Order" ? __("Internal Purchase Order")
: "Inter Company Purchase Order"; : __("Inter Company Purchase Order");
me.frm.add_custom_button( me.frm.add_custom_button(
button_label, button_label,