bug autyo
This commit is contained in:
@@ -101,7 +101,6 @@
|
|||||||
Print Ticket
|
Print Ticket
|
||||||
</button>
|
</button>
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@@ -465,36 +465,6 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
UpdateDeliveredAuto(payload: {
|
|
||||||
gallons_delivered: string,
|
|
||||||
}) {
|
|
||||||
let path = import.meta.env.VITE_AUTO_URL + "/confirm/auto/update/" + this.autoDelivery.id;
|
|
||||||
axios({
|
|
||||||
method: "put",
|
|
||||||
url: path,
|
|
||||||
data: payload,
|
|
||||||
withCredentials: true,
|
|
||||||
headers: authHeader(),
|
|
||||||
})
|
|
||||||
.then((response: any) => {
|
|
||||||
if (response.data) {
|
|
||||||
notify({
|
|
||||||
title: "Success",
|
|
||||||
text: "Auto Updated",
|
|
||||||
type: "success",
|
|
||||||
});
|
|
||||||
// Removed redirect from here, will handle in onSubmit
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
CreateTransaction(auto_ticket_id: string,) {
|
CreateTransaction(auto_ticket_id: string,) {
|
||||||
let path = import.meta.env.VITE_MONEY_URL + "/delivery/add/auto/" + auto_ticket_id;
|
let path = import.meta.env.VITE_MONEY_URL + "/delivery/add/auto/" + auto_ticket_id;
|
||||||
axios({
|
axios({
|
||||||
@@ -555,7 +525,6 @@ export default defineComponent({
|
|||||||
let payload = {
|
let payload = {
|
||||||
gallons_delivered: this.FinalizeOilOrderForm.gallons_delivered,
|
gallons_delivered: this.FinalizeOilOrderForm.gallons_delivered,
|
||||||
};
|
};
|
||||||
this.UpdateDeliveredAuto(payload);
|
|
||||||
|
|
||||||
this.ConfirmAuto(payload)
|
this.ConfirmAuto(payload)
|
||||||
this.$router.push({ name: "auto" });
|
this.$router.push({ name: "auto" });
|
||||||
|
|||||||
Reference in New Issue
Block a user