mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 14:38:26 +00:00
fix: add missing patch
This commit is contained in:
@@ -455,4 +455,4 @@ erpnext.patches.v16_0.set_mr_picked_qty
|
|||||||
erpnext.patches.v16_0.update_tax_withholding_field_in_payment_entry
|
erpnext.patches.v16_0.update_tax_withholding_field_in_payment_entry
|
||||||
erpnext.patches.v16_0.migrate_tax_withholding_data
|
erpnext.patches.v16_0.migrate_tax_withholding_data
|
||||||
erpnext.patches.v16_0.update_corrected_cancelled_status
|
erpnext.patches.v16_0.update_corrected_cancelled_status
|
||||||
|
erpnext.patches.v16_0.fix_barcode_typo
|
||||||
|
|||||||
7
erpnext/patches/v16_0/fix_barcode_typo.py
Normal file
7
erpnext/patches/v16_0/fix_barcode_typo.py
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
import frappe
|
||||||
|
|
||||||
|
|
||||||
|
def execute():
|
||||||
|
frappe.qb.update("Item Barcode").set("barcode_type", "EAN-13").where(
|
||||||
|
frappe.qb.Field("barcode_type") == "EAN-12"
|
||||||
|
).run()
|
||||||
@@ -484,7 +484,7 @@ class Item(Document):
|
|||||||
)
|
)
|
||||||
if item_barcode.barcode_type:
|
if item_barcode.barcode_type:
|
||||||
barcode_type = convert_erpnext_to_barcodenumber(
|
barcode_type = convert_erpnext_to_barcodenumber(
|
||||||
item_barcode.barcode_type.upper(), item_barcode.barcode
|
item_barcode.barcode_type.replace("-", "").upper(), item_barcode.barcode
|
||||||
)
|
)
|
||||||
if barcode_type in barcodenumber.barcodes():
|
if barcode_type in barcodenumber.barcodes():
|
||||||
if not barcodenumber.check_code(barcode_type, item_barcode.barcode):
|
if not barcodenumber.check_code(barcode_type, item_barcode.barcode):
|
||||||
|
|||||||
Reference in New Issue
Block a user