bug fixes. added auto table
This commit is contained in:
		| @@ -39,7 +39,7 @@ async def update_auto(autoid: int, request: Request): | ||||
|     new_home_factor = calc_home_factor(gallons_put_in_home = gallons_put_in_home, | ||||
|                                         current_house_factor=customer_home_factor) | ||||
|      | ||||
|     gallons_left_buffer = get_auto_delivery.tank_size - 30 | ||||
|     gallons_left_buffer = int(get_auto_delivery.tank_size) - 30 | ||||
|  | ||||
|  | ||||
|     get_auto_delivery.house_factor = new_home_factor | ||||
| @@ -80,18 +80,18 @@ async def create_auto_ticket(autoid: int, request: Request): | ||||
|     total_amount = gallons_put_in_home * todays_price | ||||
|  | ||||
|     create_new_ticket = Tickets_Auto_Delivery( | ||||
|      | ||||
|     customer_id =  get_auto_delivery.customer_id, | ||||
|     account_number = get_auto_delivery.account_number, | ||||
|     customer_town = get_auto_delivery.customer_town, | ||||
|     customer_state = get_auto_delivery.customer_state, | ||||
|     customer_address = get_auto_delivery.customer_address, | ||||
|     customer_zip =get_auto_delivery.customer_zip, | ||||
|     customer_full_name = get_auto_delivery.customer_full_name, | ||||
|     oil_prices_id = get_todays_price.id, | ||||
|     gallons_delivered = gallons_delivered, | ||||
|     price_per_gallon = get_todays_price.price_for_customer, | ||||
|     total_amount_customer = total_amount, | ||||
|         customer_id =  get_auto_delivery.customer_id, | ||||
|         account_number = get_auto_delivery.account_number, | ||||
|         customer_town = get_auto_delivery.customer_town, | ||||
|         customer_state = get_auto_delivery.customer_state, | ||||
|         customer_address = get_auto_delivery.customer_address, | ||||
|         customer_zip =get_auto_delivery.customer_zip, | ||||
|         customer_full_name = get_auto_delivery.customer_full_name, | ||||
|         oil_prices_id = get_todays_price.id, | ||||
|         gallons_delivered = gallons_delivered, | ||||
|         price_per_gallon = get_todays_price.price_for_customer, | ||||
|         total_amount_customer = total_amount, | ||||
|         fill_date = date.today(), | ||||
|     ) | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user