fix: Refactor for Print Format changes (#17242)
- Rename Server to Jinja - Rename Js to JS
This commit is contained in:
parent
89d3aaf349
commit
733ff48d51
@ -18,7 +18,7 @@ def create_or_update_cheque_print_format(template_name):
|
|||||||
"doc_type": "Payment Entry",
|
"doc_type": "Payment Entry",
|
||||||
"standard": "No",
|
"standard": "No",
|
||||||
"custom_format": 1,
|
"custom_format": 1,
|
||||||
"print_format_type": "Server",
|
"print_format_type": "Jinja",
|
||||||
"name": template_name
|
"name": template_name
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
|
@ -28,7 +28,7 @@ frappe.ui.form.on('POS Profile', {
|
|||||||
return {
|
return {
|
||||||
filters: [
|
filters: [
|
||||||
['Print Format', 'doc_type', '=', 'Sales Invoice'],
|
['Print Format', 'doc_type', '=', 'Sales Invoice'],
|
||||||
['Print Format', 'print_format_type', '=', 'Server'],
|
['Print Format', 'print_format_type', '=', 'Jinja'],
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
@ -42,7 +42,7 @@ frappe.ui.form.on('POS Profile', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
frm.set_query("print_format", function() {
|
frm.set_query("print_format", function() {
|
||||||
return { filters: { doc_type: "Sales Invoice", print_format_type: "Js"} };
|
return { filters: { doc_type: "Sales Invoice", print_format_type: "JS"} };
|
||||||
});
|
});
|
||||||
|
|
||||||
frappe.db.get_value('POS Settings', 'POS Settings', 'use_pos_in_offline_mode', (r) => {
|
frappe.db.get_value('POS Settings', 'POS Settings', 'use_pos_in_offline_mode', (r) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user