You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 satır
645B

  1. <?php
  2. namespace common\logic\PointSale\PointSale;
  3. use common\logic\BaseService;
  4. use common\logic\Document\Invoice\Invoice;
  5. use common\logic\RepositoryInterface;
  6. class InvoiceRepository extends BaseService implements RepositoryInterface
  7. {
  8. public function getDefaultOptionsSearch(): array
  9. {
  10. return [
  11. 'with' => [],
  12. 'join_with' => ['user AS user_invoice', 'producer'],
  13. 'orderby' => 'date ASC',
  14. 'attribute_id_producer' => 'invoice.id_producer'
  15. ];
  16. }
  17. public function findOneInvoiceById(int $id): ?Invoice
  18. {
  19. return Invoice::searchOne(['id' => $id]);
  20. }
  21. }