fix : on ne pèse plus automatiquement + fix message de création réception

This commit is contained in:
tristan
2026-03-18 10:38:11 +01:00
parent 82af4d4c1e
commit 2408ccab67
9 changed files with 63 additions and 67 deletions
+1
View File
@@ -21,6 +21,7 @@ export async function getReception(id: number) {
export async function createReception(payload: ReceptionPayload = {}) {
const api = useApi()
return api.post<ReceptionData>('receptions', payload, {
toastSuccessKey: 'success.reception.create',
toastErrorKey: 'errors.reception.create'
})
}
+2
View File
@@ -18,8 +18,10 @@ export async function getShipment(id: number) {
}
export async function createShipment(payload: ShipmentPayload = {}) {
console.log('test')
const api = useApi()
return api.post<ShipmentData>('shipments', payload, {
toastSuccessKey: 'success.shipment.create',
toastErrorKey: 'errors.shipment.create'
})
}