fix(catalog): send authorization headers for purchase orders and stock history endpoints

This commit is contained in:
iFixKart Dev 2026-11-16 16:33:26 +05:30
parent ad952166cd
commit c9b414e7d7

View file

@ -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;