- {{ delivery.customer_price }}
+
+ Cash
+
+ Credit Card
+
+
+ Credit Card / Cash
+
+
+ Check with CC Hold
+
+
+ Other (Rent, etc):
+
+
+
+ Promo
+
+
+
+ {{ promo.name_of_promotion }}
+
+
+ Promo Discount:
+
+
+ {{ promo.money_off_delivery }} off a gallon
+
+
+ {{ discount }} off total delivery
+
+
+ {{ total_amount_after_discount }} total price after discount
+
+
+ Price / Gallon:
+
+
+ {{ delivery.customer_price }} ({{ delivery.customer_price - promo.money_off_delivery}})
+
+
+
@@ -171,6 +209,30 @@
Same Day: {{ pricing.price_same_day }}
+
+
+
+
+ CASH Total: ${{ total_amount_after_discount }}
+
+
+
+
+ Pre Charge Credit Card Total: ${{ total_amount_after_discount }}
+
+
+
+
+ Pre Charge Credit Card Total: ${{ total_amount_after_discount }}
+
+
+
+
+ Check - Pre Charge Credit Card Total: ${{ total_amount_after_discount }}
+
+
+
+
CASH Total: ${{ total_amount }}
@@ -192,10 +254,11 @@
+
-
-
-
+
+
{{ delivery.dispatcher_notes }}
{{ customer_description.description }}
+
Promo: {{ promo.text_on_ticket }}
+
PRIME
SAME DAY
EMERGENCY
+
CASH
Credit Card
Credit Card/Cash
Check
Other
+
+
+
-
Auburn Oil
-
-
PO BOX 123
-
-
-
Auburn
-
- Ma
-
-
01501
-
-
-
-
-
-
-
- {{ past_delivery.when_delivered }} - {{ past_delivery.gallons_delivered }}
+
Auburn Oil
+
PO BOX 123
+
+
+
Auburn
+
+ Ma
+
+
01501
+
508 426 8800
-
+
+
+
+
+ {{ past_delivery.when_delivered }} - {{ past_delivery.gallons_delivered }}
+
+
+
+
-
+
-
+
+
+
+
{{ delivery.when_ordered }}
{{ delivery.expected_delivery_date }}
-
{{ delivery.gallons_ordered }}
+
{{
+ delivery.gallons_ordered }}
-
{{ delivery.customer_price }}
-
-
{{ total_amount }}
+
+
+
+
{{ delivery.customer_price }}
({{
+ delivery.customer_price - promo.money_off_delivery}})
+
+
+
{{ delivery.customer_price }}
+
+
+
{{
+ total_amount }}
+
+
-
+
+
+
+
+
@@ -153,7 +178,7 @@ export default defineComponent({
automatic: 0,
oil_id: 0,
supplier_price: '',
- customer_price: '',
+ customer_price: 0,
customer_temperature: '',
dispatcher_notes: '',
prime: 0,
@@ -164,6 +189,7 @@ export default defineComponent({
driver_employee_id: 0,
driver_first_name: '',
driver_last_name: '',
+ promo_id: 0,
},
customer: {
id: 0,
@@ -187,9 +213,20 @@ export default defineComponent({
fill_location: 0,
description: '',
},
+ promo_active: false,
+ promo: {
+ id: 0,
+ name_of_promotion: '',
+ description: '',
+ money_off_delivery: 0,
+ text_on_ticket: ''
+ },
priceprime: 0,
pricesameday: 0,
+ priceemergency: 0,
total_amount: 0,
+ discount: 0,
+ total_amount_after_discount: 0,
}
},
@@ -220,6 +257,10 @@ export default defineComponent({
.then((response: any) => {
this.delivery = response.data;
this.getCustomer(this.delivery.customer_id)
+ if (this.delivery.promo_id != null) {
+ this.getPromo(this.delivery.promo_id);
+ this.promo_active = true;
+ }
})
.catch(() => {
@@ -287,7 +328,6 @@ export default defineComponent({
headers: authHeader(),
}).then((response: any) => {
this.past_deliveries1 = response.data
- console.log(this.past_deliveries1);
})
},
getPastDeliveries2(userid: any) {
@@ -300,6 +340,21 @@ export default defineComponent({
this.past_deliveries2 = response.data
})
},
+ getPromo(promo_id: any) {
+ let path = import.meta.env.VITE_BASE_URL + "/promo/" + promo_id;
+ axios({
+ method: "get",
+ url: path,
+ withCredentials: true,
+ headers: authHeader(),
+ })
+ .then((response: any) => {
+ if (response.data) {
+ this.promo = response.data
+ // this.delivery.promo_id = this.promo.id
+ }
+ })
+ },
},
})