Skip to content

Commit

Permalink
fix(vouchers): ensure amount is clear in simple
Browse files Browse the repository at this point in the history
This commit fixes a bug where the simple voucher amount was not cleared
on submit.
  • Loading branch information
Jonathan Niles authored and jniles committed Feb 15, 2017
1 parent c46f5e3 commit de975fd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/src/partials/vouchers/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ function SimpleJournalVoucherController(Vouchers, Accounts, Session, util, Notif

// clear the voucher
vm.Voucher.clear();

// amount is held outside of the voucher
delete vm.amount;
}

RS.$on('voucher:configure', function (evt, data) {
Expand Down

0 comments on commit de975fd

Please sign in to comment.