Skip to content

Commit

Permalink
Merge pull request #41112 from barredterra/print-language
Browse files Browse the repository at this point in the history
fix: language in sales transactions
  • Loading branch information
deepeshgarg007 authored Jun 12, 2024
2 parents d85f316 + b44630a commit 8b3c0f6
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 13 deletions.
8 changes: 5 additions & 3 deletions erpnext/accounts/doctype/sales_invoice/sales_invoice.json
Original file line number Diff line number Diff line change
Expand Up @@ -1575,12 +1575,14 @@
"print_hide": 1
},
{
"fetch_from": "customer.language",
"fetch_if_empty": 1,
"fieldname": "language",
"fieldtype": "Data",
"fieldtype": "Link",
"hide_days": 1,
"hide_seconds": 1,
"label": "Print Language",
"length": 6,
"options": "Language",
"print_hide": 1,
"read_only": 1
},
Expand Down Expand Up @@ -2203,7 +2205,7 @@
"link_fieldname": "consolidated_invoice"
}
],
"modified": "2024-05-08 18:02:28.549041",
"modified": "2024-05-23 14:02:28.549041",
"modified_by": "Administrator",
"module": "Accounts",
"name": "Sales Invoice",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/sales_invoice/sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class SalesInvoice(SellingController):
is_pos: DF.Check
is_return: DF.Check
items: DF.Table[SalesInvoiceItem]
language: DF.Data | None
language: DF.Link | None
letter_head: DF.Link | None
loyalty_amount: DF.Currency
loyalty_points: DF.Int
Expand Down
5 changes: 3 additions & 2 deletions erpnext/selling/doctype/quotation/quotation.json
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,9 @@
},
{
"fieldname": "language",
"fieldtype": "Data",
"fieldtype": "Link",
"label": "Print Language",
"options": "Language",
"print_hide": 1,
"read_only": 1
},
Expand Down Expand Up @@ -1073,7 +1074,7 @@
"idx": 82,
"is_submittable": 1,
"links": [],
"modified": "2024-03-27 13:10:30.774058",
"modified": "2024-04-20 01:15:19.171383",
"modified_by": "Administrator",
"module": "Selling",
"name": "Quotation",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/quotation/quotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Quotation(SellingController):
in_words: DF.Data | None
incoterm: DF.Link | None
items: DF.Table[QuotationItem]
language: DF.Data | None
language: DF.Link | None
letter_head: DF.Link | None
lost_reasons: DF.TableMultiSelect[QuotationLostReasonDetail]
named_place: DF.Data | None
Expand Down
7 changes: 5 additions & 2 deletions erpnext/selling/doctype/sales_order/sales_order.json
Original file line number Diff line number Diff line change
Expand Up @@ -1196,11 +1196,14 @@
"label": "Print Settings"
},
{
"fetch_from": "customer.language",
"fetch_if_empty": 1,
"fieldname": "language",
"fieldtype": "Data",
"fieldtype": "Link",
"hide_days": 1,
"hide_seconds": 1,
"label": "Print Language",
"options": "Language",
"print_hide": 1,
"read_only": 1
},
Expand Down Expand Up @@ -1659,7 +1662,7 @@
"idx": 105,
"is_submittable": 1,
"links": [],
"modified": "2024-05-23 16:35:54.905804",
"modified": "2024-05-27 18:51:54.905804",
"modified_by": "Administrator",
"module": "Selling",
"name": "Sales Order",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/selling/doctype/sales_order/sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class SalesOrder(SellingController):
inter_company_order_reference: DF.Link | None
is_internal_customer: DF.Check
items: DF.Table[SalesOrderItem]
language: DF.Data | None
language: DF.Link | None
letter_head: DF.Link | None
loyalty_amount: DF.Currency
loyalty_points: DF.Int
Expand Down
7 changes: 5 additions & 2 deletions erpnext/stock/doctype/delivery_note/delivery_note.json
Original file line number Diff line number Diff line change
Expand Up @@ -1047,9 +1047,12 @@
"report_hide": 1
},
{
"fetch_from": "customer.language",
"fetch_if_empty": 1,
"fieldname": "language",
"fieldtype": "Data",
"fieldtype": "Link",
"label": "Print Language",
"options": "Language",
"print_hide": 1,
"read_only": 1
},
Expand Down Expand Up @@ -1405,7 +1408,7 @@
"idx": 146,
"is_submittable": 1,
"links": [],
"modified": "2024-03-29 19:03:55.374173",
"modified": "2024-05-23 14:18:20.679692",
"modified_by": "Administrator",
"module": "Stock",
"name": "Delivery Note",
Expand Down
2 changes: 1 addition & 1 deletion erpnext/stock/doctype/delivery_note/delivery_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DeliveryNote(SellingController):
is_return: DF.Check
issue_credit_note: DF.Check
items: DF.Table[DeliveryNoteItem]
language: DF.Data | None
language: DF.Link | None
letter_head: DF.Link | None
lr_date: DF.Date | None
lr_no: DF.Data | None
Expand Down

0 comments on commit 8b3c0f6

Please sign in to comment.