Refactor GRN configuration page layout
This commit is contained in:
@@ -47,6 +47,12 @@ export const stock = {
|
||||
adjust: (body: AdjustmentBody) =>
|
||||
api.post('/stock/adjustment', body).then(r => r.data),
|
||||
|
||||
/** Next free number for auto-generated serials: one past the highest `<prefix><digits>` already saved for the item. */
|
||||
nextSerialSequence: (itemId: string, prefix: string) =>
|
||||
api
|
||||
.get<{ next: number }>('/stock/serials/next-sequence', { params: { itemId, prefix } })
|
||||
.then(r => r.data.next),
|
||||
|
||||
updateMovementReason: (id: string, reasonCode: string) =>
|
||||
api.patch(`/stock/movements/${id}/reason`, { reasonCode }).then(r => r.data),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user