Blame view

src/lib/models/payment.php 356 Bytes
dce46e80   Alex Savenko   first push project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  <?php

  

  namespace models;

  

  class payment extends \db

  {

      public function getPaymentByCustomer($customer_id) {

          return $this->get('

              select * from public.payment where "customer_id" = :customer_id ORDER by id DESC

  

              ',

              [

                  'customer_id' => $customer_id

              ]

          );

      }

  }