fix(pricing,dashboard): update min_quantity/max_quantity to decimal in price model (#14045)

This commit is contained in:
Nicolas Gorga
2025-12-16 13:38:53 -03:00
committed by GitHub
parent bee86bf1d5
commit b5edbb9940
9 changed files with 110 additions and 48 deletions

View File

@@ -9,8 +9,8 @@ const Price = model
title: model.text().nullable(),
currency_code: model.text(),
amount: model.bigNumber(),
min_quantity: model.number().nullable(),
max_quantity: model.number().nullable(),
min_quantity: model.bigNumber().nullable(),
max_quantity: model.bigNumber().nullable(),
rules_count: model.number().default(0).nullable(),
price_set: model.belongsTo(() => PriceSet, {
mappedBy: "prices",