Creates a new carton and optionally an initial stock movement.

  • Parameters

    • req: Request

      The Express request object containing the carton details (codeArticle, description, etc.) in the body.

    • res: Response

      The Express response object.

    Returns Promise<undefined | Response<any, Record<string, any>>>

    A JSON response containing the created carton data.