New Auto
-
+
{{ oil.estimated_gallons_left }} / {{ oil.tank_size }} gal
{{ oil.days_since_last_fill }} days
-
+
{{ oil.customer_full_name }}
@@ -81,18 +84,23 @@
{{ oil.customer_address }}, {{ oil.customer_town }}
-
-
+
+
Preauthorize
-
- Finalize
-
-
-
- Print Ticket
-
-
+
+ Finalize
+
+
+ Finalize
+
+
+
+ Print Ticket
+
+
@@ -130,33 +138,36 @@
-
-
{{ oil.estimated_gallons_left }} / {{ oil.tank_size }} gal estimated
+
+
{{ oil.estimated_gallons_left }} / {{ oil.tank_size
+ }} gal estimated
-
+
+
+
+ Automatic Deliveries
+
+
+
+
+
+
+ ID
+ Name
+ Gallons
+ Date
+ View
+
+
+
+
+ {{ auto.id }}
+ {{ auto.customer_full_name }}
+ {{ auto.gallons_delivered }}
+ {{ auto.fill_date }}
+
+
+ View
+
+
+
+
+
+
+
@@ -42,6 +74,13 @@ interface Delivery {
expected_delivery_date: string;
}
+interface AutomaticDelivery {
+ id: number;
+ customer_full_name: string;
+ gallons_delivered: number | string;
+ fill_date: string;
+}
+
interface ServiceCall {
id: number;
scheduled_date: string;
@@ -69,6 +108,7 @@ interface Transaction {
// 2. Define the Props interface
interface Props {
deliveries: Delivery[];
+ autodeliveries: AutomaticDelivery[];
serviceCalls: ServiceCall[];
transactions: Transaction[];
}
diff --git a/src/pages/delivery/routes.ts b/src/pages/delivery/routes.ts
index 5c29a40..7c57ae4 100755
--- a/src/pages/delivery/routes.ts
+++ b/src/pages/delivery/routes.ts
@@ -14,6 +14,7 @@ import deliveryFinalized from './viewstatus/finalized.vue'
import deliveryTommorrow from './viewstatus/tommorrow.vue'
import finalizeTicket from './update_tickets/finalize_ticket.vue';
import finalizeTicketAuto from './update_tickets/finalize_ticket_auto.vue';
+import finalizeTicketAutoNocc from './update_tickets/finalize_ticket_auto_nocc.vue';
const deliveryRoutes = [
{
@@ -92,6 +93,11 @@ const deliveryRoutes = [
name: 'finalizeTicketAuto',
component: finalizeTicketAuto,
},
+ {
+ path: '/delivery/tickets/finalize/auto/nocc/:id',
+ name: 'finalizeTicketAutoNocc',
+ component: finalizeTicketAutoNocc,
+ },
]
diff --git a/src/pages/delivery/update_tickets/finalize_ticket_auto.vue b/src/pages/delivery/update_tickets/finalize_ticket_auto.vue
index 1be5276..1bdf334 100644
--- a/src/pages/delivery/update_tickets/finalize_ticket_auto.vue
+++ b/src/pages/delivery/update_tickets/finalize_ticket_auto.vue
@@ -369,7 +369,7 @@
type: "error",
});
});
- },//TODO STUCK HERE !!!!!!!!!
+ },
getAutoTicket(delivery_id: any) {
let path = import.meta.env.VITE_AUTO_URL + "/delivery/autoticket/" + delivery_id;
axios({
@@ -416,7 +416,6 @@
});
});
},
-//TODO STUCK HERE !!!!!!!!!
today_price_oil() {
let path = import.meta.env.VITE_BASE_URL + '/info/price/oil'
axios({
diff --git a/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue b/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue
index e69de29..037086c 100644
--- a/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue
+++ b/src/pages/delivery/update_tickets/finalize_ticket_auto_nocc.vue
@@ -0,0 +1,569 @@
+
+
+
+
+
+
+
+
+ Home
+ Customers
+
+
+ {{ customer.customer_first_name }} {{ customer.customer_last_name }}
+
+
+ Finalize Auto Ticket
+
+
+
+
+
+
+ Auto Delivery #{{ autoDelivery.id }}
+
+
+ Customer Profile
+
+
+
+
+
+
+
+
+
+
+
+
Customer
+
+
+
{{ customer.customer_first_name }} {{ customer.customer_last_name }}
+
{{ customer.customer_address }}
+
{{ customer.customer_apt }}
+
+ {{ customer.customer_town }},
+ Massachusetts
+ Rhode Island
+ New Hampshire
+ Maine
+ Vermont
+ Maine
+ New York
+ Unknown state
+ {{ customer.customer_zip }}
+
+
+ {{ customer.customer_phone_number }}
+ (Residential
+ apartment
+ condo
+ commercial
+ business
+ construction
+ container )
+
+
+
+
+
+
+
Payment & Pricing
+
+
+
Today's Price / Gallon
+
${{ Number(today_oil_price).toFixed(2) }}
+
+
+
+
Payment Method
+
No card on file for this customer.
+
+
{{ userCard.name_on_card }}
+
{{ userCard.type_of_card }}
+
+
{{ userCard.card_number }}
+
{{ userCard.security_number }}
+
Exp: {{ userCard.expiration_month }} / {{ userCard.expiration_year }}
+
+
+
+
+
+
+
+
+
+
+
+
Finalize Auto Delivery
+
+
+
+
Error
+
Customer information not found. Please check the automatic delivery data.
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/pay/oil/pay_oil.vue b/src/pages/pay/oil/pay_oil.vue
index 551cacc..2962df2 100755
--- a/src/pages/pay/oil/pay_oil.vue
+++ b/src/pages/pay/oil/pay_oil.vue
@@ -225,14 +225,18 @@
-
-
+
+
Pay Authorize.net
-
-
+
+
Pay Tiger
+
+
+ Pay Cash
+
Edit Delivery