fix(catalog): send authorization headers for purchase orders and stock history endpoints
This commit is contained in:
parent
ad952166cd
commit
c9b414e7d7
1 changed files with 2 additions and 2 deletions
|
|
@ -255,7 +255,7 @@ export const catalogService = {
|
|||
|
||||
// Stock Ledger
|
||||
async getStockHistory(): Promise<StockMovementResponse[]> {
|
||||
return apiFetch<StockMovementResponse[]>(API_ENDPOINTS.CATALOG_STOCK_HISTORY, { skipAuth: true });
|
||||
return apiFetch<StockMovementResponse[]>(API_ENDPOINTS.CATALOG_STOCK_HISTORY);
|
||||
},
|
||||
async adjustStock(data: {
|
||||
entity_type: 'variant' | 'part';
|
||||
|
|
@ -273,7 +273,7 @@ export const catalogService = {
|
|||
|
||||
// Purchase Orders
|
||||
async getPurchaseOrders(): Promise<PurchaseOrderResponse[]> {
|
||||
return apiFetch<PurchaseOrderResponse[]>(API_ENDPOINTS.CATALOG_PO_ALL, { skipAuth: true });
|
||||
return apiFetch<PurchaseOrderResponse[]>(API_ENDPOINTS.CATALOG_PO_ALL);
|
||||
},
|
||||
async createPurchaseOrder(data: {
|
||||
supplier_name: string;
|
||||
|
|
|
|||
Loading…
Reference in a new issue