fix: Product type tax overrides (#9951)
* fix: Make product type tax override work * fix: Make product type tax override work
This commit is contained in:
@@ -53,6 +53,13 @@ const ProductIdIndex = createPsqlIndexStatementHelper({
|
||||
where: "deleted_at IS NULL AND product_id IS NOT NULL",
|
||||
}).MikroORMIndex
|
||||
|
||||
const ProductTypeIdIndex = createPsqlIndexStatementHelper({
|
||||
name: "IDX_line_item_product_type_id",
|
||||
tableName: "cart_line_item",
|
||||
columns: "product_type_id",
|
||||
where: "deleted_at IS NULL AND product_type_id IS NOT NULL",
|
||||
}).MikroORMIndex
|
||||
|
||||
const DeletedAtIndex = createPsqlIndexStatementHelper({
|
||||
tableName: "cart_line_item",
|
||||
columns: "deleted_at",
|
||||
@@ -111,6 +118,10 @@ export default class LineItem {
|
||||
@Property({ columnType: "text", nullable: true })
|
||||
product_type: string | null = null
|
||||
|
||||
@ProductTypeIdIndex()
|
||||
@Property({ columnType: "text", nullable: true })
|
||||
product_type_id: string | null = null
|
||||
|
||||
@Property({ columnType: "text", nullable: true })
|
||||
product_collection: string | null = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user