rename material_price to m2_price

This commit is contained in:
Martin
2016-11-13 20:14:55 +01:00
parent d854ff9798
commit affcc9635b
3 changed files with 20 additions and 28 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from api.validators import validate_territory, validate_number, validate_exists
from api.models.product import Material
from api.models.contract_customer import ContractCustomer
from api.models import market as market_model
from api.lib.prices import wallpaper_price, old_canvas_price, old_canvas_diy_frame_price, material_price
from api.lib.prices import wallpaper_price, old_canvas_price, old_canvas_diy_frame_price, m2_price
from api.lib.limits import calculate_canvas_limits
@@ -35,7 +35,7 @@ def wallpaper():
data.append({
'material': material.name,
'material_id': material.id,
'material_price': material_price(material, market, reseller=reseller, inc_vat=True),
'material_price': m2_price(material, market, reseller=reseller, inc_vat=True),
'price': wallpaper_price(width, height, material, market, reseller=reseller),
})