Class: Skr::Voucher
- Defined in:
- lib/skr/voucher.rb
Overview
A voucher is a record of a Vendor‘s demand for payment, or a record of It transistions through the following states
* Saved; A {PurchaseOrder} has been recieved but an Invoice has not been received fromt the Vendor
* It credit's each line's {Sku#gl_asset_account} and debit's the System default inventory_receipts_clearing
* Confirmed; An Invoice has been received and verified as accurate.
* Debit: {Vendor#gl_payables_account}, Credit: inventory_receipts_clearing
* Paid; A payment has been made against the Voucher
* Debit {Vendor#gl_payables_account}, Credit: Deposit clearing account
Instance Method Summary collapse
Instance Method Details
#po_receipt=(por) ⇒ Object
57 58 59 60 61 62 |
# File 'lib/skr/voucher.rb', line 57 def po_receipt=(por) self.vendor = por.vendor self.purchase_order = por.purchase_order self.terms = self.purchase_order.terms self.refno = por.refno end |