Sha256: f99d7848395e13ff9e878ef513cc4ab12d3a27d17f2831cdc62a71366d4d0e76
Contents?: true
Size: 1.47 KB
Versions: 4
Compression:
Stored size: 1.47 KB
Contents
module Pina module Models class PurchaseItem include Virtus.model attribute :id attribute :department attribute :department_id attribute :creator attribute :creator_id attribute :modifier attribute :modifier_id attribute :product attribute :product_id attribute :contract attribute :contract_id attribute :created_at attribute :updated_at attribute :vat_rate attribute :batch attribute :reduce_vat_deduction attribute :percent_discount attribute :external_id attribute :invoice_id attribute :status attribute :description attribute :external_product_id attribute :quantity attribute :serial_numbers attribute :supplier_code attribute :total_price attribute :vat_rate attribute '_destroy' def department=(value) return unless value self.department_id = value.values[0] super end def creator=(value) return unless value self.creator_id = value.values[0] super end def modifier=(value) return unless value self.modifier_id = value.values[0] super end def product=(value) return unless value self.product_id = value.values[0] super end def contract=(value) return unless value self.contract_id = value.values[0] super end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
pina-0.15.0 | lib/pina/models/purchase_item.rb |
pina-0.14.4 | lib/pina/models/purchase_item.rb |
pina-0.14.3 | lib/pina/models/purchase_item.rb |
pina-0.14.2 | lib/pina/models/purchase_item.rb |