@flowselections/floriday-verkoop-module 1.0.104 → 1.0.106

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.
@@ -1 +1 @@
1
- {"version":3,"file":"CreateOrderPage.d.ts","sourceRoot":"","sources":["../../../src/components/verkoop/CreateOrderPage.tsx"],"names":[],"mappings":"AA6FA,wBAAgB,eAAe,gCAi/B9B"}
1
+ {"version":3,"file":"CreateOrderPage.d.ts","sourceRoot":"","sources":["../../../src/components/verkoop/CreateOrderPage.tsx"],"names":[],"mappings":"AAkGA,wBAAgB,eAAe,gCA0/B9B"}
@@ -192,7 +192,7 @@ export function CreateOrderPage() {
192
192
  const crates = Math.max(1, Math.ceil(Number(l.quantity ?? 0) / Math.max(1, l.belading?.plants_per_crate ?? def.plants_per_crate)));
193
193
  return {
194
194
  ...l,
195
- belading: { plants_per_crate: def.plants_per_crate, crates_per_layer: def.crates_per_layer, layers_per_cart: def.layers_per_cart },
195
+ belading: { plants_per_crate: def.plants_per_crate, crates_per_layer: def.crates_per_layer, layers_per_cart: def.layers_per_cart, crate_code: def.crate_code ?? null, cart_code: def.cart_code ?? null, is_default: true },
196
196
  quantity: crates * def.plants_per_crate,
197
197
  };
198
198
  });
@@ -420,6 +420,12 @@ export function CreateOrderPage() {
420
420
  layers_per_cart: l.belading?.layers_per_cart ?? p?.layers_per_cart ?? undefined,
421
421
  article_code: p?.article_code ?? undefined,
422
422
  needs_sticker: l.needs_sticker === true,
423
+ // Verpakking-snapshot: fust, ladingdrager en herkomst van de keuze.
424
+ vbn_package_code: l.belading?.crate_code ?? null,
425
+ load_carrier_type: l.belading?.cart_code ?? null,
426
+ packing_source: l.belading
427
+ ? (l.belading.is_default === false ? "chosen" : "product_primary")
428
+ : null,
423
429
  };
424
430
  }),
425
431
  };
@@ -493,6 +499,9 @@ export function CreateOrderPage() {
493
499
  layers_per_cart: b.layers_per_cart,
494
500
  crate_type_name: b.crate_type_name ?? null,
495
501
  cart_type_name: b.cart_type_name ?? null,
502
+ crate_code: b.crate_code ?? null,
503
+ cart_code: b.cart_code ?? null,
504
+ is_default: !!b.is_default,
496
505
  });
497
506
  }
498
507
  // Geen lokale fallback toevoegen: uitsluitend de centraal door