# Class Opencart\Admin\Model\Sale\Returns

`extends` | `Model`

Class Returns

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Sale\Returns

Located at admin\model\sale\returns.php

Methods
`public` | `addReturn(array<string, mixed> $data): int` Add Return Add Return | #
`public` | `editReturn(int $return_id, array<string, mixed> $data): void` Edit Return Edit Return | #
`public` | `editReturnStatusId(int $return_id, int $return_status_id): void` Edit Return Status ID Edit Return Status ID | #
`public` | `deleteReturn(int $return_id): void` Delete Return Delete Return | #
`public` | `getReturn(int $return_id): array<string, mixed>` Get Return Get Return | #
`public` | `getReturns(array<string, mixed> $data = []): array<int, array<string, mixed>>` Get Returns Get Returns | #
`public` | `getTotalReturns(array<string, mixed> $data = []): int` Get Total Returns Get Total Returns | #
`public` | `getTotalReturnsByReturnStatusId(int $return_status_id): int` Get Total Returns By Return Status ID Get Total Returns By Return Status ID | #
`public` | `getTotalReturnsByReturnReasonId(int $return_reason_id): int` Get Total Returns By Return Reason ID Get Total Returns By Return Reason ID | #
`public` | `getTotalReturnsByReturnActionId(int $return_action_id): int` Get Total Returns By Return Action ID Get Total Returns By Return Action ID | #
`public` | `addHistory(int $return_id, int $return_status_id, string $comment, bool $notify): void` Add History Add History | #
`public` | `deleteHistories(int $return_id): void` Delete Return Histories Delete Return Histories | #
`public` | `getHistories(int $return_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Histories Get Histories | #
`public` | `getTotalHistories(int $return_id): int` Get Total Histories Get Total Histories | #
`public` | `getTotalHistoriesByReturnStatusId(int $return_status_id): int` Get Total Histories By Return Status ID Get Total Histories By Return Status ID | #

Methods inherited from Opencart\System\Engine\Model
`__construct(), __get(), __set(), __isset()`

Properties inherited from Opencart\System\Engine\Model
`$registry`

OpenCart API API documentation generated by ApiGen dev-master