bug fixes. added auto table

This commit is contained in:
2024-12-28 15:53:49 -05:00
parent 01c448f368
commit 76877853cd
5 changed files with 69 additions and 29 deletions

View File

@@ -747,7 +747,7 @@ export default defineComponent({
type: 'postive',
title: 'top'
})
this.$router.push({ name: "DeliveryHome" });
this.$router.push({ name: "deliveryOutForDelivery" });
}
else {
notify({
@@ -783,31 +783,29 @@ export default defineComponent({
.then((response: any) => {
if (response.status == 201) {
notify({
message: 'Confirmed Transaction',
type: 'positive',
position: 'top'
title: "Success",
text: "Confirmed Transaction",
type: "success",
})
this.$router.push({ name: "today" });
this.$router.push({ name: "deliveryOutForDelivery" });
}
else {
notify({
message: 'Form Error',
type: 'negative',
position: 'top'
title: "Error",
text: "Error Confirming Transaction",
type: "error",
})
}
})
},
FinalizeOrder(payload: {
cash_recieved: string,
check_number: number,
delivery_status: any,
driver_employee_id: number,
gallons_delivered: string,
customer_filled: boolean,
fill_location: number,
}) {
@@ -827,7 +825,7 @@ export default defineComponent({
type: "success",
});
this.CreateTransaction()
this.$router.push({ name: "deliveryWaiting" });
this.$router.push({ name: "deliveryOutForDelivery" });
}
if (response.data.error) {