[FIX] point_of_sale: avoid storing undefined in localstorage
This commit is contained in:
@@ -479,7 +479,7 @@ var PosDB = core.Class.extend({
|
|||||||
},
|
},
|
||||||
set_cashier: function(cashier) {
|
set_cashier: function(cashier) {
|
||||||
// Always update if the user is the same as before
|
// Always update if the user is the same as before
|
||||||
this.save('cashier', cashier);
|
this.save('cashier', cashier || null);
|
||||||
},
|
},
|
||||||
get_cashier: function() {
|
get_cashier: function() {
|
||||||
return this.load('cashier');
|
return this.load('cashier');
|
||||||
|
|||||||
Reference in New Issue
Block a user