@managesome/eposmatic-toolkit 0.2.700 → 0.2.701

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -606,10 +606,15 @@ function convertHalfHalfToOrderEngineItem({ halfHalfItem, selectedHalfHalfItems,
606
606
  menu_id: menu_id ?? null,
607
607
  item_type: constants_1.ORDER_ITEM_TYPE_ENUM.HALF_HALF,
608
608
  is_ready: existingOrderItem?.is_ready ?? false,
609
- is_split: existingOrderItem?.is_split ?? false,
610
- moved_to_order_id: existingOrderItem?.moved_to_order_id ?? null,
611
- moved_from_order_id: existingOrderItem?.moved_from_order_id ?? null,
612
- ready_minutes: existingOrderItem?.ready_minutes ?? null,
609
+ // Match the classic engine conversion exactly: these fields are only
610
+ // carried when they already exist on the order item (undefined on create
611
+ // so they're omitted from the payload, same as convertCatalogItemTo-
612
+ // OrderEngineItem). Explicit null/false defaults here caused a shape
613
+ // mismatch (null vs undefined) between classic and modern lines.
614
+ is_split: existingOrderItem?.is_split,
615
+ moved_to_order_id: existingOrderItem?.moved_to_order_id,
616
+ moved_from_order_id: existingOrderItem?.moved_from_order_id,
617
+ ready_minutes: existingOrderItem?.ready_minutes,
613
618
  name: halfHalfItem.name,
614
619
  description: halfHalfItem.description,
615
620
  loyalty_applied: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.700",
3
+ "version": "0.2.701",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",