fix(order): carry item weight through the contract-to-model transformer #30

Merged
aefril merged 1 commits from feature/weight-based-products into main 2026-09-06 17:46:08 +02:00
Owner

CreateOrderContractToModel and AddToOrderContractToModel copied every order
item field except Weight, so a weight sent by the client never reached the
processor and every weight-based line failed with "product ... is sold by
weight and requires a weight".

Co-Authored-By: Claude Opus 5 (1M context) noreply@anthropic.com

CreateOrderContractToModel and AddToOrderContractToModel copied every order item field except Weight, so a weight sent by the client never reached the processor and every weight-based line failed with "product ... is sold by weight and requires a weight". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
aefril added 1 commit 2026-09-06 17:46:02 +02:00
CreateOrderContractToModel and AddToOrderContractToModel copied every order
item field except Weight, so a weight sent by the client never reached the
processor and every weight-based line failed with "product ... is sold by
weight and requires a weight".

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
aefril merged commit 1edeaa0a48 into main 2026-09-06 17:46:08 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: apksel-dev/apskel-pos-backend#30