mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
style: apply pre-commit formatting fixes
This commit is contained in:
@@ -123,7 +123,10 @@ frappe.ui.form.on("Pick List", {
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (has_changes) {
|
if (has_changes) {
|
||||||
frappe.show_alert(__("Cleared auto-assigned serial numbers and batch numbers for manual picking"), 3);
|
frappe.show_alert(
|
||||||
|
__("Cleared auto-assigned serial numbers and batch numbers for manual picking"),
|
||||||
|
3
|
||||||
|
);
|
||||||
frm.refresh_field("locations");
|
frm.refresh_field("locations");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -575,7 +575,9 @@ class PickList(TransactionBase):
|
|||||||
|
|
||||||
# Check if item is stock item or product bundle
|
# Check if item is stock item or product bundle
|
||||||
is_stock_item = cint(frappe.get_cached_value("Item", item.item_code, "is_stock_item"))
|
is_stock_item = cint(frappe.get_cached_value("Item", item.item_code, "is_stock_item"))
|
||||||
is_product_bundle = frappe.db.exists("Product Bundle", {"new_item_code": item.item_code, "disabled": 0})
|
is_product_bundle = frappe.db.exists(
|
||||||
|
"Product Bundle", {"new_item_code": item.item_code, "disabled": 0}
|
||||||
|
)
|
||||||
|
|
||||||
# Include non-stock items for delivery purposes, but skip them for warehouse assignment
|
# Include non-stock items for delivery purposes, but skip them for warehouse assignment
|
||||||
if not is_stock_item and not is_product_bundle:
|
if not is_stock_item and not is_product_bundle:
|
||||||
|
|||||||
Reference in New Issue
Block a user