rename material_price to m2_price
This commit is contained in:
@@ -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),
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user