Sha256: ca548ae5f72b7bfb6d66c90d38bc17f6ab4204f928a4b7407d6f2d94bd9ab366
Contents?: true
Size: 519 Bytes
Versions: 2
Compression:
Stored size: 519 Bytes
Contents
module Crm class InvoiceProduct < ActiveRecord::Base self.table_name = "InvoiceDetail" self.primary_key = "InvoiceDetailId" belongs_to :invoice, foreign_key: 'InvoiceId', crm_key: 'invoiceid' belongs_to :product, foreign_key: 'ProductId', crm_key: 'productid' belongs_to :currency, foreign_key: 'TransactionCurrencyId', crm_key: 'transactioncurrencyid' belongs_to :original_currency, foreign_key: 'new_OriginalCurrency', crm_key: 'new_originalcurrency', class_name: 'Crm::Currency' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord_sqlserver_crm-4.2.2 | app/models/crm/invoice_product.rb |
activerecord_sqlserver_crm-4.2.1 | app/models/crm/invoice_product.rb |