Blame view

src/lib/models/payment.php 340 Bytes
1ea3b987   Administrator   maby first commit
1
2
3
4
5
6
7
8
  <?php
  
  namespace models;
  
  class payment extends \db
  {
      public function getPaymentByCustomer($customer_id) {
          return $this->get('
d5a88313   Eugeny Galkovskiy   ....
9
              select * from public.payment where "customer_id" = :customer_id ORDER by id DESC
1ea3b987   Administrator   maby first commit
10
11
12
13
14
15
16
17
  
              ',
              [
                  'customer_id' => $customer_id
              ]
          );
      }
  }