Sha256: e038545cbef11c4fa82c6e14948d892e9cff7d3f3e675baf72eb11e15c98a01f
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
require_relative 'test_helper' class VoucherLineTest < Skr::TestCase def test_gl_posting acct = GlAccount.default_for( :inventory_receipts_clearing ) po = skr_purchase_orders(:first) v = Voucher.new({ :purchase_order => po }) old_balance = acct.trial_balance po.lines.each do | poline | v.lines.build({ :po_line => poline }) end assert_saves v assert_equal old_balance - v.total, acct.trial_balance end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stockor-core-0.2 | test/vo_line_test.rb |