mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 11:49:10 +00:00
feat: enhance barcode scanner to support warehouse scanning (#48865)
Co-authored-by: Sagar Vora <16315650+sagarvora@users.noreply.github.com>
This commit is contained in:
@@ -43,6 +43,7 @@
|
||||
"items_section",
|
||||
"update_stock",
|
||||
"scan_barcode",
|
||||
"last_scanned_warehouse",
|
||||
"items",
|
||||
"pricing_rule_details",
|
||||
"pricing_rules",
|
||||
@@ -1594,6 +1595,13 @@
|
||||
"fieldname": "more_info_tab",
|
||||
"fieldtype": "Tab Break",
|
||||
"label": "More Info"
|
||||
},
|
||||
{
|
||||
"depends_on": "eval: doc.last_scanned_warehouse",
|
||||
"fieldname": "last_scanned_warehouse",
|
||||
"fieldtype": "Data",
|
||||
"is_virtual": 1,
|
||||
"label": "Last Scanned Warehouse"
|
||||
}
|
||||
],
|
||||
"icon": "fa fa-file-text",
|
||||
|
||||
@@ -101,6 +101,7 @@ class POSInvoice(SalesInvoice):
|
||||
is_return: DF.Check
|
||||
items: DF.Table[POSInvoiceItem]
|
||||
language: DF.Data | None
|
||||
last_scanned_warehouse: DF.Link | None
|
||||
letter_head: DF.Link | None
|
||||
loyalty_amount: DF.Currency
|
||||
loyalty_points: DF.Int
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
"ignore_pricing_rule",
|
||||
"sec_warehouse",
|
||||
"scan_barcode",
|
||||
"last_scanned_warehouse",
|
||||
"col_break_warehouse",
|
||||
"update_stock",
|
||||
"set_warehouse",
|
||||
@@ -1654,6 +1655,13 @@
|
||||
"options": "Address",
|
||||
"print_hide": 1
|
||||
},
|
||||
{
|
||||
"depends_on": "eval: doc.last_scanned_warehouse",
|
||||
"fieldname": "last_scanned_warehouse",
|
||||
"fieldtype": "Data",
|
||||
"is_virtual": 1,
|
||||
"label": "Last Scanned Warehouse"
|
||||
},
|
||||
{
|
||||
"fieldname": "claimed_landed_cost_amount",
|
||||
"fieldtype": "Currency",
|
||||
|
||||
@@ -139,6 +139,7 @@ class PurchaseInvoice(BuyingController):
|
||||
is_subcontracted: DF.Check
|
||||
items: DF.Table[PurchaseInvoiceItem]
|
||||
language: DF.Data | None
|
||||
last_scanned_warehouse: DF.Link | None
|
||||
letter_head: DF.Link | None
|
||||
mode_of_payment: DF.Link | None
|
||||
named_place: DF.Data | None
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
"items_section",
|
||||
"scan_barcode",
|
||||
"update_stock",
|
||||
"last_scanned_warehouse",
|
||||
"column_break_39",
|
||||
"set_warehouse",
|
||||
"set_target_warehouse",
|
||||
@@ -2220,6 +2221,13 @@
|
||||
"label": "POS Closing Entry",
|
||||
"options": "POS Closing Entry",
|
||||
"print_hide": 1
|
||||
},
|
||||
{
|
||||
"depends_on": "eval: doc.last_scanned_warehouse",
|
||||
"fieldname": "last_scanned_warehouse",
|
||||
"fieldtype": "Data",
|
||||
"is_virtual": 1,
|
||||
"label": "Last Scanned Warehouse"
|
||||
}
|
||||
],
|
||||
"grid_page_length": 50,
|
||||
|
||||
@@ -147,6 +147,7 @@ class SalesInvoice(SellingController):
|
||||
is_return: DF.Check
|
||||
items: DF.Table[SalesInvoiceItem]
|
||||
language: DF.Link | None
|
||||
last_scanned_warehouse: DF.Link | None
|
||||
letter_head: DF.Link | None
|
||||
loyalty_amount: DF.Currency
|
||||
loyalty_points: DF.Int
|
||||
|
||||
Reference in New Issue
Block a user