Sha256: 9b78c23071343a2807bf91fabe4c569e61bb86fd464e72e2217792d46388954f
Contents?: true
Size: 619 Bytes
Versions: 11
Compression:
Stored size: 619 Bytes
Contents
module Crm class PriceListItem < ::ApplicationRecord self.table_name = "ProductPriceLevel" self.primary_key = "ProductPriceLevelId" belongs_to :price_list, foreign_key: 'PriceLevelId', crm_key: 'pricelevelid' belongs_to :product, foreign_key: 'ProductId', crm_key: 'productid' belongs_to :uom, foreign_key: 'UoMId', crm_key: 'uomid' belongs_to :currency, foreign_key: 'TransactionCurrencyId', crm_key: 'transactioncurrencyid' validates :Amount, presence: true validates :price_list, presence: true validates :product, presence: true validates :uom, presence: true end end
Version data entries
11 entries across 11 versions & 1 rubygems