added emergency price
This commit is contained in:
@@ -19,6 +19,7 @@ def create_oil_price():
|
||||
price_for_employee = request.json["price_for_employee"]
|
||||
price_same_day = request.json["price_same_day"]
|
||||
price_prime = request.json["price_prime"]
|
||||
price_emergency= request.json["price_emergency"]
|
||||
|
||||
new_admin_oil_price = Pricing_Oil_Oil(
|
||||
price_from_supplier=price_from_supplier,
|
||||
@@ -26,8 +27,17 @@ def create_oil_price():
|
||||
price_for_employee=price_for_employee,
|
||||
price_same_day=price_same_day,
|
||||
price_prime=price_prime,
|
||||
price_emergency=price_emergency,
|
||||
date=now,
|
||||
)
|
||||
# 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,
|
||||
# price_prime=price_prime,
|
||||
# date=now,
|
||||
# )
|
||||
|
||||
db.session.add(new_admin_oil_price)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user