Admin: bundles under Services & products, Vouchers & codes page

Bundles are edited with their parts (service at a length, or product,
× count), price and validity. /passes lists codes with used/held/left and
each part's share of the price; codes can be voided, reactivated, given a
new expiry, or issued without a purchase. Orders show codes bought and
bookings paid with a code; the customer page lists codes and erasure
covers them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hy2vMnHJYP7QGsiH21zHxW
This commit is contained in:
agent 2026-10-25 21:39:51 +00:00
parent e824f16e31
commit df840b7fd7
14 changed files with 543 additions and 27 deletions

View file

@ -28,7 +28,8 @@
const typeFilterLabels: Record<string, string> = {
all: 'All',
item: 'Products',
item_with_time: 'Services'
item_with_time: 'Services',
bundle: 'Bundles'
};
</script>
@ -48,7 +49,7 @@
<SegmentedControl
label="Item type"
options={['all', 'item', 'item_with_time']}
options={['all', 'item', 'item_with_time', 'bundle']}
value={block.data.itemTypeFilter || 'all'}
onChange={(v) => updateData({ itemTypeFilter: v as ShopBlockData['itemTypeFilter'] })}
formatLabel={(v) => typeFilterLabels[String(v)] || String(v)}