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:
Soni Karm
2025-08-14 11:32:02 +05:30
committed by GitHub
parent 4cd0db764f
commit 227fadc541
29 changed files with 329 additions and 47 deletions

View File

@@ -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",

View File

@@ -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

View File

@@ -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",

View File

@@ -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

View File

@@ -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,

View File

@@ -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