mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 00:24:38 -04:00
Remember discount type setting
This commit is contained in:
parent
ee0be053d7
commit
3c40cd460e
@ -876,7 +876,6 @@
|
|||||||
// load previous isAmountDiscount setting
|
// load previous isAmountDiscount setting
|
||||||
if (isStorageSupported()) {
|
if (isStorageSupported()) {
|
||||||
var lastIsAmountDiscount = parseInt(localStorage.getItem('last:is_amount_discount'));
|
var lastIsAmountDiscount = parseInt(localStorage.getItem('last:is_amount_discount'));
|
||||||
console.log('lastIsAmountDiscount: ' + lastIsAmountDiscount);
|
|
||||||
if (lastIsAmountDiscount) {
|
if (lastIsAmountDiscount) {
|
||||||
model.invoice().is_amount_discount(lastIsAmountDiscount);
|
model.invoice().is_amount_discount(lastIsAmountDiscount);
|
||||||
}
|
}
|
||||||
|
@ -594,8 +594,7 @@ function InvoiceModel(data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
self.isAmountDiscountChanged = function(obj, event) {
|
self.isAmountDiscountChanged = function(obj, event) {
|
||||||
console.log('onIsAmountDiscountChange... ' + event.originalEvent);
|
if (! event.originalEvent) {
|
||||||
if (event.originalEvent) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (! isStorageSupported()) {
|
if (! isStorageSupported()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user