ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/tablet/labels

      Récupérer toutes les étiquettes avec leurs lots de stock et produits associés

      • Matières premières (rawMaterials)
      • Produits finis (finishedProducts)
      • Triées par FIFO (plus ancien en premier)
      • Compatible avec l'interface tablette

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<
              {
                  success: boolean;
                  rawMaterials: any[];
                  finishedProducts: any[];
                  stats: {
                      rawMaterials: {
                          total: number;
                          totalStock: any;
                          totalLots: any;
                          totalLabels: any;
                      };
                      finishedProducts: {
                          total: number;
                          totalStock: any;
                          totalLots: any;
                          totalLabels: any;
                      };
                      combined: {
                          totalProducts: number;
                          totalStock: any;
                          totalLots: any;
                          totalLabels: any;
                      };
                  };
                  filters: {
                      search: string;
                      category: string;
                      warehouseId: string
                      | null;
                      hasStock: boolean;
                      limit: number;
                  };
              },
          >
          | NextResponse<{ success: boolean; error: string; details: string }>,
      >