Class: Comee::Core::SupplierInvoice

Inherits:
ApplicationRecord show all
Defined in:
app/models/comee/core/supplier_invoice.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



26
27
28
# File 'app/models/comee/core/supplier_invoice.rb', line 26

def self.ransackable_associations(_auth_object = nil)
  ["purchase_order"]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'app/models/comee/core/supplier_invoice.rb', line 15

def self.ransackable_attributes(_auth_object = nil)
  %w[
    id
    purchase_order_id
    invoice_no
    date_issued
    status
    payment_status
  ]
end