Fix new services implementation 10

This commit is contained in:
Urtzi Alfaro
2025-08-16 08:22:51 +02:00
parent 9de0f9943c
commit 119beb541f
5 changed files with 68 additions and 63 deletions

View File

@@ -548,7 +548,10 @@ export class InventoryService {
async getProductsList(tenantId: string): Promise<ProductInfo[]> {
try {
const response = await apiClient.get(`/tenants/${tenantId}/ingredients`, {
params: { limit: 100 }, // Get all products
params: {
limit: 100,
product_type: 'finished_product' // Only get finished products, not raw ingredients
},
});
console.log('🔍 Inventory Products API Response:', response);