@@ -46,7 +46,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
46
46
47
47
init_email_print_dialog ( ) {
48
48
const email_dialog = new frappe . ui . Dialog ( {
49
- title : "Email Receipt" ,
49
+ title : __ ( "Email Receipt" ) ,
50
50
fields : [
51
51
{ fieldname : "email_id" , fieldtype : "Data" , options : "Email" , label : "Email ID" , reqd : 1 } ,
52
52
{ fieldname : "content" , fieldtype : "Small Text" , label : "Message (if any)" } ,
@@ -59,7 +59,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
59
59
this . email_dialog = email_dialog ;
60
60
61
61
const print_dialog = new frappe . ui . Dialog ( {
62
- title : "Print Receipt" ,
62
+ title : __ ( "Print Receipt" ) ,
63
63
fields : [ { fieldname : "print" , fieldtype : "Data" , label : "Print Preview" } ] ,
64
64
primary_action : ( ) => {
65
65
this . print_receipt ( ) ;
@@ -112,7 +112,7 @@ erpnext.PointOfSale.PastOrderSummary = class {
112
112
get_discount_html ( doc ) {
113
113
if ( doc . discount_amount ) {
114
114
return `<div class="summary-row-wrapper">
115
- <div>Discount (${ doc . additional_discount_percentage } %)</div>
115
+ <div>${ __ ( " Discount" ) } (${ doc . additional_discount_percentage } %)</div>
116
116
<div>${ format_currency ( doc . discount_amount , doc . currency ) } </div>
117
117
</div>` ;
118
118
} else {
0 commit comments