bug autyo

This commit is contained in:
2025-10-13 11:10:21 -04:00
parent 4a40bffbd5
commit 78e959883d
2 changed files with 0 additions and 32 deletions

View File

@@ -101,7 +101,6 @@
Print Ticket
</button>
</router-link>
</td>
</tr>
</tbody>

View File

@@ -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,) {
let path = import.meta.env.VITE_MONEY_URL + "/delivery/add/auto/" + auto_ticket_id;
axios({
@@ -555,7 +525,6 @@ export default defineComponent({
let payload = {
gallons_delivered: this.FinalizeOilOrderForm.gallons_delivered,
};
this.UpdateDeliveredAuto(payload);
this.ConfirmAuto(payload)
this.$router.push({ name: "auto" });