Added automatic stuff

This commit is contained in:
2024-07-24 17:24:00 -04:00
parent ebeecccd63
commit bc1e38c327
7 changed files with 182 additions and 37 deletions

View File

@@ -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