update license activate

This commit is contained in:
NyanLinHtut
2020-01-22 10:17:30 +06:30
parent d054776357
commit 35e84d9b62
7 changed files with 295 additions and 259 deletions

View File

@@ -16,9 +16,9 @@ App.checkin = App.cable.subscriptions.create('OutOfStockChannel', {
if (menus) {
menus = jQuery.parseJSON(menus);
menus.forEach(m =>
m.categories.forEach(c =>
c.items.forEach(i =>
menus.forEach(m => {
m.categories.forEach(c => {
c.items.forEach(i => {
i.instances.forEach(instance => {
if (instance.code == item_code) {
if (data.status == true) {
@@ -33,9 +33,10 @@ App.checkin = App.cable.subscriptions.create('OutOfStockChannel', {
}
}
})
)
)
);
})
})
});
localStorage.setItem('menus', JSON.stringify(menus));
}
}