Skip to content

Commit

Permalink
fix(cash): make cash disable on submit
Browse files Browse the repository at this point in the history
This commit fixes a bug in the cash payment page where the cash payments
module does not disable when the submit button is clicked.
  • Loading branch information
Jonathan Niles authored and sfount committed Jan 19, 2017
1 parent 98c1fa5 commit 9233592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/partials/cash/cash.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function CashController(Cash, Cashboxes, AppCache, Currencies, Session, Modals,
return Notify.danger('CASH.VOUCHER.NO_INVOICES_ASSIGNED');
}

var promise = $q.resolve()
return $q.resolve()
.then(function () {
return hasCaution ?
Modals.confirm('CASH.CONFIRM_PAYMENT_WHEN_CAUTION') : true;
Expand Down

0 comments on commit 9233592

Please sign in to comment.