mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
style: code styling fixes
This commit is contained in:
@@ -34,9 +34,11 @@ erpnext.stock.ItemDashboard = Class.extend({
|
|||||||
let disable_quick_entry = Number(unescape($(this).attr('data-disable_quick_entry')));
|
let disable_quick_entry = Number(unescape($(this).attr('data-disable_quick_entry')));
|
||||||
let rate = unescape($(this).attr('data-rate'));
|
let rate = unescape($(this).attr('data-rate'));
|
||||||
|
|
||||||
if (disable_quick_entry) open_stock_entry(item, warehouse);
|
if (disable_quick_entry) {
|
||||||
|
open_stock_entry(item, warehouse);
|
||||||
else erpnext.stock.move_item(item, null, warehouse, actual_qty, rate, function() { me.refresh(); })
|
} else {
|
||||||
|
erpnext.stock.move_item(item, null, warehouse, actual_qty, rate, function() { me.refresh(); })
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
function open_stock_entry(item, warehouse, entry_type) {
|
function open_stock_entry(item, warehouse, entry_type) {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ def get_data(item_code=None, warehouse=None, item_group=None,
|
|||||||
item.update({
|
item.update({
|
||||||
'item_name': frappe.get_cached_value("Item", item.item_code, 'item_name'),
|
'item_name': frappe.get_cached_value("Item", item.item_code, 'item_name'),
|
||||||
'disable_quick_entry': frappe.get_cached_value("Item", item.item_code, 'has_batch_no')
|
'disable_quick_entry': frappe.get_cached_value("Item", item.item_code, 'has_batch_no')
|
||||||
or frappe.get_cached_value("Item", item.item_code, 'has_serial_no'),
|
or frappe.get_cached_value("Item", item.item_code, 'has_serial_no'),
|
||||||
})
|
})
|
||||||
|
|
||||||
return items
|
return items
|
||||||
|
|||||||
Reference in New Issue
Block a user