kpearson / sales_engine

Active record from scratch
1 stars 0 forks source link

Invoice Relationships #36

Closed Overby closed 9 years ago

Overby commented 9 years ago

1) 'transactions' returns collection of 'Transaction' instances

2) 'invoice_items' returns collection of 'InvoiceItem' instances

3) 'items' returns collection of 'Items' instances that come from InvoiceItem objects

4) 'customer' returns a Customer instance for the corresponding object

5) 'merchant' returns instance of Merchant for the right object