rework internal order system
This commit is contained in:
@@ -113,6 +113,11 @@ export const ausruestungsanfrageApi = {
|
||||
await api.delete(`/api/ausruestungsanfragen/requests/${id}`);
|
||||
},
|
||||
|
||||
// ── Position delivery tracking ──
|
||||
updatePositionGeliefert: async (positionId: number, geliefert: boolean): Promise<void> => {
|
||||
await api.patch(`/api/ausruestungsanfragen/positionen/${positionId}/geliefert`, { geliefert });
|
||||
},
|
||||
|
||||
// ── Linking ──
|
||||
linkToOrder: async (anfrageId: number, bestellungId: number): Promise<void> => {
|
||||
await api.post(`/api/ausruestungsanfragen/requests/${anfrageId}/link`, { bestellung_id: bestellungId });
|
||||
|
||||
Reference in New Issue
Block a user