diy-frame endpoint now returns price excl vat
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ def old_canvas_diy_frame_price(width, height, market, reseller=None, inc_vat=Tru
|
|||||||
# instead of hardcoded values
|
# instead of hardcoded values
|
||||||
stock_price = 1.61084
|
stock_price = 1.61084
|
||||||
additional_price = 94.750000
|
additional_price = 94.750000
|
||||||
return canvas_frame_price(width, height, stock_price, market, additional_price, reseller=reseller, rounded=True, inc_vat=True)
|
return canvas_frame_price(width, height, stock_price, market, additional_price, reseller=reseller, rounded=True, inc_vat=inc_vat)
|
||||||
|
|
||||||
|
|
||||||
def old_canvas_price(width, height, material, market, framed=True, designer=None, reseller=None, inc_vat=True):
|
def old_canvas_price(width, height, material, market, framed=True, designer=None, reseller=None, inc_vat=True):
|
||||||
|
|||||||
@@ -86,7 +86,8 @@ def diy_frame():
|
|||||||
data = [{
|
data = [{
|
||||||
'width': width,
|
'width': width,
|
||||||
'height': height,
|
'height': height,
|
||||||
'price': old_canvas_diy_frame_price(width, height, market, reseller=reseller)
|
'price': old_canvas_diy_frame_price(width, height, market, reseller=reseller),
|
||||||
|
'price_excl_vat': old_canvas_diy_frame_price(width, height, market, reseller=reseller, inc_vat=False)
|
||||||
}]
|
}]
|
||||||
|
|
||||||
return jsonify(data=data)
|
return jsonify(data=data)
|
||||||
|
|||||||
Reference in New Issue
Block a user