rename material_price to m2_price
This commit is contained in:
@@ -36,7 +36,7 @@ def wallpaper():
|
|||||||
data.append({
|
data.append({
|
||||||
'material': material.name,
|
'material': material.name,
|
||||||
'material_id': material.id,
|
'material_id': material.id,
|
||||||
'material_price': m2_price(material, market, reseller=reseller, inc_vat=True),
|
'm2_price': m2_price(material, market, reseller=reseller, inc_vat=True),
|
||||||
'price': wallpaper_price(width, height, material, market, reseller=reseller),
|
'price': wallpaper_price(width, height, material, market, reseller=reseller),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -25,13 +25,13 @@ Sample response
|
|||||||
{
|
{
|
||||||
"material": "standard-wallpaper",
|
"material": "standard-wallpaper",
|
||||||
"material_id": 1,
|
"material_id": 1,
|
||||||
"material_price": 295,
|
"m2_price": 295,
|
||||||
"price": 1180
|
"price": 1180
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"material": "premium-wallpaper",
|
"material": "premium-wallpaper",
|
||||||
"material_id": 4,
|
"material_id": 4,
|
||||||
"material_price": 325,
|
"m2_price": 325,
|
||||||
"price": 1300
|
"price": 1300
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user