P5-4418 validate Pwinty SKU code
This commit is contained in:
+12
-11
@@ -3,6 +3,7 @@
|
||||
|
||||
from api.lib.utils import round_half_up
|
||||
from api.lib.limits import calculate_canvas_limits
|
||||
from api.lib import pwinty
|
||||
|
||||
|
||||
def m2_price(
|
||||
@@ -300,17 +301,17 @@ def framed_print_price(
|
||||
sku, market, designer=None, reseller=None, inquiry=None, rounded=True, inc_vat=True
|
||||
):
|
||||
sku_prices = {
|
||||
"GLOBAL-CFP-12x12": 446,
|
||||
"GLOBAL-CFP-11x14": 478,
|
||||
"GLOBAL-CFP-12x16": 494,
|
||||
"GLOBAL-CFP-16x20": 574,
|
||||
"GLOBAL-CFP-20x20": 690,
|
||||
"GLOBAL-CFP-18x24": 708,
|
||||
"GLOBAL-CFP-20x28": 761,
|
||||
"GLOBAL-CFP-24x32": 831,
|
||||
"GLOBAL-CFP-28x28": 867,
|
||||
"GLOBAL-CFP-24x36": 1035,
|
||||
"GLOBAL-CFP-28x40": 1127,
|
||||
pwinty.GLOBAL_CFP_12x12: 446,
|
||||
pwinty.GLOBAL_CFP_11x14: 478,
|
||||
pwinty.GLOBAL_CFP_12x16: 494,
|
||||
pwinty.GLOBAL_CFP_16x20: 574,
|
||||
pwinty.GLOBAL_CFP_20x20: 690,
|
||||
pwinty.GLOBAL_CFP_18x24: 708,
|
||||
pwinty.GLOBAL_CFP_20x28: 761,
|
||||
pwinty.GLOBAL_CFP_24x32: 831,
|
||||
pwinty.GLOBAL_CFP_28x28: 867,
|
||||
pwinty.GLOBAL_CFP_24x36: 1035,
|
||||
pwinty.GLOBAL_CFP_28x40: 1127,
|
||||
}
|
||||
|
||||
if not sku in sku_prices:
|
||||
|
||||
Reference in New Issue
Block a user