diy-frame endpoint now returns price excl vat

This commit is contained in:
Martin
2016-11-08 13:54:46 +01:00
parent 7216e38060
commit 1f75cb9cc5
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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):
+2 -1
View File
@@ -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)