mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 19:59:12 +00:00
chore: Linter and Sider fixes
- Translatable strings cannot be multi line or be formatted by '+' - Reduce no of tabs in stock_entry.js
This commit is contained in:
@@ -299,7 +299,7 @@ erpnext.buying.PurchaseOrderController = erpnext.buying.BuyingController.extend(
|
|||||||
if(me.values) {
|
if(me.values) {
|
||||||
me.values.sub_con_rm_items.map((row,i) => {
|
me.values.sub_con_rm_items.map((row,i) => {
|
||||||
if (!row.item_code || !row.rm_item_code || !row.warehouse || !row.qty || row.qty === 0) {
|
if (!row.item_code || !row.rm_item_code || !row.warehouse || !row.qty || row.qty === 0) {
|
||||||
frappe.throw(__("Item Code, warehouse, quantity are required on row" + (i+1)));
|
frappe.throw(__("Item Code, warehouse, quantity are required on row {0}", [i+1]));
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
me._make_rm_stock_entry(me.dialog.fields_dict.sub_con_rm_items.grid.get_selected_children())
|
me._make_rm_stock_entry(me.dialog.fields_dict.sub_con_rm_items.grid.get_selected_children())
|
||||||
|
|||||||
@@ -281,8 +281,7 @@ frappe.ui.form.on('Material Request', {
|
|||||||
fieldname:'default_supplier',
|
fieldname:'default_supplier',
|
||||||
fieldtype: 'Link',
|
fieldtype: 'Link',
|
||||||
options: 'Supplier',
|
options: 'Supplier',
|
||||||
description: __('Select a Supplier from the Default Suppliers of the items below. \
|
description: __('Select a Supplier from the Default Suppliers of the items below. On selection, a Purchase Order will be made against items belonging to the selected Supplier only.'),
|
||||||
On selection, a Purchase Order will be made against items belonging to the selected Supplier only.'),
|
|
||||||
get_query: () => {
|
get_query: () => {
|
||||||
return{
|
return{
|
||||||
query: "erpnext.stock.doctype.material_request.material_request.get_default_supplier_query",
|
query: "erpnext.stock.doctype.material_request.material_request.get_default_supplier_query",
|
||||||
|
|||||||
Reference in New Issue
Block a user