Sha256: c3f6f5e2c9d507c893512d95da43adf5eb38feb7d8e3f67dfe2dab1fff89b718
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
module Crm class Invoice < ActiveRecord::Base self.table_name = "Invoice" self.primary_key = "InvoiceId" belongs_to :account, foreign_key: 'AccountId', crm_key: 'customerid_account' belongs_to :contact, foreign_key: 'ContactId', crm_key: 'customerid_contact' belongs_to :price_list, foreign_key: 'PriceLevelId', crm_key: 'pricelevelid' has_many :invoice_products, foreign_key: 'InvoiceId' has_many :notes, foreign_key: 'ObjectId' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord_sqlserver_crm-4.2.1 | app/models/crm/invoice.rb |