Office driver api get data works
This commit is contained in:
@@ -18,11 +18,13 @@ def create_oil_price():
|
||||
price_from_supplier = request.json["price_from_supplier"]
|
||||
price_for_customer = request.json["price_for_customer"]
|
||||
price_for_employee = request.json["price_for_employee"]
|
||||
price_same_day = request.json["price_same_day"]
|
||||
|
||||
new_admin_oil_price = Pricing_Oil_Oil(
|
||||
price_from_supplier=price_from_supplier,
|
||||
price_for_customer=price_for_customer,
|
||||
price_for_employee=price_for_employee,
|
||||
price_same_day=price_same_day,
|
||||
date=now,
|
||||
)
|
||||
|
||||
@@ -41,11 +43,14 @@ def create_service_price():
|
||||
Changes general labor rates prices
|
||||
"""
|
||||
now = datetime.utcnow()
|
||||
|
||||
price_service_hour = request.json["price_service_hour"]
|
||||
price_emergency_service_hourly_rate = request.json["price_emergency_service_hour"]
|
||||
price_emergency_call = request.json["price_emergency_call"]
|
||||
price_out_of_oil = request.json["price_out_of_oil"]
|
||||
price_prime = request.json["price_prime"]
|
||||
price_cleaning = request.json["price_cleaning"]
|
||||
|
||||
|
||||
price_service = Pricing_Service_General(
|
||||
price_service_hour=price_service_hour,
|
||||
@@ -53,6 +58,7 @@ def create_service_price():
|
||||
price_emergency_service_hour=price_emergency_service_hourly_rate,
|
||||
price_prime=price_prime,
|
||||
price_emergency_call=price_emergency_call,
|
||||
price_cleaning=price_cleaning,
|
||||
date=now,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user