Remember discount type setting
This commit is contained in:
parent
ee0be053d7
commit
3c40cd460e
2 changed files with 1 additions and 3 deletions
|
|
@ -876,7 +876,6 @@
|
|||
// load previous isAmountDiscount setting
|
||||
if (isStorageSupported()) {
|
||||
var lastIsAmountDiscount = parseInt(localStorage.getItem('last:is_amount_discount'));
|
||||
console.log('lastIsAmountDiscount: ' + lastIsAmountDiscount);
|
||||
if (lastIsAmountDiscount) {
|
||||
model.invoice().is_amount_discount(lastIsAmountDiscount);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -594,8 +594,7 @@ function InvoiceModel(data) {
|
|||
}
|
||||
|
||||
self.isAmountDiscountChanged = function(obj, event) {
|
||||
console.log('onIsAmountDiscountChange... ' + event.originalEvent);
|
||||
if (event.originalEvent) {
|
||||
if (! event.originalEvent) {
|
||||
return;
|
||||
}
|
||||
if (! isStorageSupported()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue