ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • GET /api/tablet/purchase-orders Récupérer les commandes d'achat pour la tablette

      Parameters

      • request: NextRequest

      Returns Promise<
          | NextResponse<
              {
                  success: boolean;
                  data: {
                      id: any;
                      number: any;
                      orderDate: any;
                      expectedDate: any;
                      status: any;
                      totalAmount: any;
                      notes: any;
                      createdAt: any;
                      updatedAt: any;
                      supplier: {
                          id: any;
                          name: any;
                          code: any;
                          phone: any;
                          email: any;
                          type: any;
                      };
                      currency: { id: any; code: any; symbol: any }
                      | null;
                      lines: any;
                      stats: {
                          totalLines: any;
                          totalQuantity: any;
                          receivedQuantity: any;
                          remainingQuantity: any;
                          completionRate: number;
                      };
                  }[];
                  total: number;
                  count: number;
              },
          >
          | NextResponse<
              { success: boolean; error: string; message: string; details: string },
          >,
      >