Added automatic stuff
This commit is contained in:
@@ -578,15 +578,11 @@ def create_a_delivery(user_id):
|
||||
# Pricing
|
||||
if customer_fill_up == 1:
|
||||
precharge_amount = (250 * get_today_price.price_for_customer)
|
||||
print(precharge_amount)
|
||||
else:
|
||||
precharge_amount = int(gallons_ordered) * get_today_price.price_for_customer
|
||||
|
||||
if same_day_asked == 1 and prime_asked == 0:
|
||||
total_precharge_amount = precharge_amount + get_today_price.price_same_day
|
||||
print(total_precharge_amount)
|
||||
print(precharge_amount)
|
||||
print(get_today_price.price_same_day)
|
||||
|
||||
elif prime_asked == 1 and same_day_asked == 0:
|
||||
total_precharge_amount = precharge_amount + get_today_price.price_prime
|
||||
|
||||
Reference in New Issue
Block a user