feat(promotion, dashboard, core-flows, cart, types, utils, medusa): tax inclusive promotions (#12412)
* feat: tax inclusive promotions * feat: add a totals test case * feat: add integration test * chore: changeset * fix: typo * chore: refactor * fix: tests * fix: rest of buyget action tests * fix: cart spec * chore: expand integration test with item level totals * feat: add a few more test cases --------- Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
@@ -2,6 +2,7 @@ export const defaultAdminPromotionFields = [
|
||||
"id",
|
||||
"code",
|
||||
"is_automatic",
|
||||
"is_tax_inclusive",
|
||||
"type",
|
||||
"status",
|
||||
"created_at",
|
||||
|
||||
@@ -163,6 +163,7 @@ export const CreatePromotion = z
|
||||
code: z.string(),
|
||||
is_automatic: z.boolean().optional(),
|
||||
type: z.nativeEnum(PromotionType),
|
||||
is_tax_inclusive: z.boolean().optional(),
|
||||
status: z.nativeEnum(PromotionStatus).default(PromotionStatus.DRAFT),
|
||||
campaign_id: z.string().nullish(),
|
||||
campaign: CreateCampaign.optional(),
|
||||
|
||||
Reference in New Issue
Block a user