Zakaria El Asri
1cfeb5dbd8
feat: line item adjustments (#1319)
* add: crud services + model + totals
* fix: enforce unique constraint on line item adjustment model and update service (#1241)
* add: unique constraint on model + fix service
* fix: unique constraint
* fix: add cascade on delete + fix discount relation
* fix: remove optional unique prop
* add: tests for ensuring line item adjustment db constraints (#1279)
* add: tests for ensuring db constraints
* fix: use given when then
* feat: adjust cart to include line item adjustments (#1242)
* fix: cart service + cart tests
* fix: remaining tests
* fix: swap tests
* fix: add relationship + fix oas
* refactor: applyDiscount
* fix: refactor applyDiscount and fix + add unit tests
* fix: plugins tests
* feat: line item adjustments draft orders (#1243)
* fix: draft order tests
* fix: constraint
* fix: wrong variable name
* fix: unique constraint
* progress: add tests
* fix: add cascade on delete + fix discount relation
* fix: remove optional unique prop
* fix: cart removeLineItem + tests
* fix: cart unit tests
* fix: update snapshot
* remove: verbose option
* rename arg
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
* add: create adjustments for swap additional_items
* add: create adjustments for return lines
* fix: unit test for creating adjustment for additional_items
* fix: create adjustments only for non return items + no deletion when item is a return item
* add: integration tests
* refactor: use refreshAdjustments method
* refactor test
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-04-12 15:49:31 +02:00
..
2022-03-25 15:08:54 +01:00
2021-09-30 12:19:37 +02:00
2022-02-16 22:45:19 +01:00
2022-03-25 15:08:54 +01:00
2022-03-10 13:05:46 +01:00
2022-03-25 15:08:54 +01:00
2022-04-12 15:49:31 +02:00
2022-02-10 09:11:32 +01:00
2021-12-08 10:15:22 +01:00
2021-09-22 15:19:35 +02:00
2022-04-12 15:49:31 +02:00
2022-03-30 13:29:14 +02:00
2022-02-03 19:03:15 +01:00
2022-03-23 17:17:19 +01:00
2022-02-10 09:15:07 +01:00
2021-09-29 09:22:09 +02:00
2022-01-04 16:35:38 +01:00
2022-03-25 15:08:54 +01:00
2021-11-03 14:11:27 +01:00
2021-12-08 10:15:22 +01:00
2021-09-21 11:15:33 +02:00