ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          request: NextRequest,
      ): Promise<
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  label: { id: any; code: any; type: any; lotNumber: any };
                  stockLot: { id: any; lotNumber: any; quantity: any; unit: any } | null;
                  product: { id: any; name: any; code: any } | null;
                  movement: {
                      id: string;
                      reference: string;
                      type: string;
                      quantity: any;
                      unit: any;
                      date: Date;
                  };
                  oldLocation: | { id: string; code: string; name: string; rack: string }
                  | { id: null; code: string; name: string; rack: string };
                  newLocation: {
                      id: string;
                      code: string;
                      name: string;
                      rack: string;
                      warehouse: { code: string; id: string; name: string };
                  };
                  summary: {
                      productName: any;
                      productCode: any;
                      quantity: any;
                      unit: any;
                      fromLocation: string;
                      toLocation: string;
                      warehouse: string;
                      status: string;
                  };
              },
          >
          | NextResponse<{ error: string }>,
      >

      POST /api/tablet/labels/move

      Déplacer une étiquette vers un nouvel emplacement

      • Crée les mouvements OUT/IN (TRANSFER)
      • Met à jour les statuts des emplacements
      • Conserve le lien avec le StockLot

      Supporte les étiquettes de:

      • Matières premières (table Label)
      • Produits finis (table StockLabel)

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<
              {
                  success: boolean;
                  message: string;
                  label: { id: any; code: any; type: any; lotNumber: any };
                  stockLot: { id: any; lotNumber: any; quantity: any; unit: any } | null;
                  product: { id: any; name: any; code: any } | null;
                  movement: {
                      id: string;
                      reference: string;
                      type: string;
                      quantity: any;
                      unit: any;
                      date: Date;
                  };
                  oldLocation: | { id: string; code: string; name: string; rack: string }
                  | { id: null; code: string; name: string; rack: string };
                  newLocation: {
                      id: string;
                      code: string;
                      name: string;
                      rack: string;
                      warehouse: { code: string; id: string; name: string };
                  };
                  summary: {
                      productName: any;
                      productCode: any;
                      quantity: any;
                      unit: any;
                      fromLocation: string;
                      toLocation: string;
                      warehouse: string;
                      status: string;
                  };
              },
          >
          | NextResponse<{ error: string }>,
      >