Sha256: c06e56b4e9c2e31ec17a8c4e01745fa9e9c6afa92c562141af256f252128f1a4
Contents?: true
Size: 1.25 KB
Versions: 2
Compression:
Stored size: 1.25 KB
Contents
class OrderLineItemPtyRole < ActiveRecord::Base attr_protected :created_at, :updated_at #*************************************************************************** # Who's booking? Who's staying? Who's paying? These role types can be # played by different people by implementing this structure #*************************************************************************** belongs_to :order_line_item belongs_to :party belongs_to :role_type #*************************************************************************** # The association of a transaction to an account happens in the context of # the Party, the Role that they're playing in this Transaction and the type # of Transaction - we call this process Guiding a Transaction to an Account. # # It's an important process and it's handled by a TransactionRulesManager, # which is so named to distinguish it from Transaction Managment Software # like Tuxedo. # In this case, we have an optional account reference here so that orders # can be split across accounts. #*************************************************************************** belongs_to :bix_txn_acct_root def to_label "#{party.description}" end def description "#{party.description}" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erp_orders-4.2.0 | app/models/order_line_item_pty_role.rb |
erp_orders-4.0.0 | app/models/order_line_item_pty_role.rb |