marketplacepos 2.2.6 → 2.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/common.js +46 -0
- package/Marketplace/common.js.map +1 -0
- package/Marketplace/{default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js → default-node_modules_angular_forms_fesm2020_forms_mjs.js} +2 -43
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +797 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +4632 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +6836 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +722 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +1 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19951 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main.js +161 -161
- package/Marketplace/main.js.map +1 -1
- package/Marketplace/runtime.js +1 -1
- package/Marketplace/runtime.js.map +1 -1
- package/Marketplace/src_app_login_login_module_ts.js +3 -3
- package/Marketplace/src_app_login_login_module_ts.js.map +1 -1
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +1060 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js +9710 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1069 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +232 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_menu_module_ts.js +27869 -86265
- package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -1
- package/Marketplace/src_app_menu_notification_notification_module_ts.js +192 -0
- package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js +1997 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js +2449 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js +1713 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js +2196 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
- package/Marketplace/styles.css +3 -0
- package/Marketplace/styles.css.map +1 -1
- package/package.json +1 -1
- package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
|
@@ -0,0 +1,1069 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_inventory_inventory_module_ts"],{
|
|
3
|
+
|
|
4
|
+
/***/ 8673:
|
|
5
|
+
/*!*************************************************************************!*\
|
|
6
|
+
!*** ./src/app/menu/inventory/inventory-pos/inventory-pos.component.ts ***!
|
|
7
|
+
\*************************************************************************/
|
|
8
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
+
|
|
10
|
+
__webpack_require__.r(__webpack_exports__);
|
|
11
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
+
/* harmony export */ "InventoryPosComponent": () => (/* binding */ InventoryPosComponent)
|
|
13
|
+
/* harmony export */ });
|
|
14
|
+
/* harmony import */ var _products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../products/scan-dialog/scan-dialog.component */ 5241);
|
|
15
|
+
/* harmony import */ var _modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modal-update-channels/modal-update-channels.component */ 2486);
|
|
16
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
17
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
18
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
19
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
20
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class InventoryPosComponent {
|
|
29
|
+
constructor(http, toastr, dialog) {
|
|
30
|
+
this.http = http;
|
|
31
|
+
this.toastr = toastr;
|
|
32
|
+
this.dialog = dialog;
|
|
33
|
+
this.filter = {
|
|
34
|
+
ChannelID: "",
|
|
35
|
+
};
|
|
36
|
+
this.loading = false;
|
|
37
|
+
this.LoaderChannel();
|
|
38
|
+
this.Options = [
|
|
39
|
+
{ Key: 1, Value: "All" },
|
|
40
|
+
{ Key: 3, Value: "Difference" },
|
|
41
|
+
];
|
|
42
|
+
this.filterModel = 1;
|
|
43
|
+
this.pageData = {
|
|
44
|
+
Title: "Inventory",
|
|
45
|
+
Nav: [
|
|
46
|
+
{ Title: "Inventory Cache", Url: "/menu/inventory/pos", Active: true },
|
|
47
|
+
{
|
|
48
|
+
Title: "Inventory Realtime",
|
|
49
|
+
Url: "/menu/inventory/realtime",
|
|
50
|
+
Active: false,
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
ngOnInit() { }
|
|
56
|
+
LoaderChannel() {
|
|
57
|
+
this.http.post('/api/InventoryLoader/GetMultipleInventoryComparison', {}).subscribe(result => {
|
|
58
|
+
this.Channel = result.Options.Channel;
|
|
59
|
+
this.filter = result.Filter;
|
|
60
|
+
this.Filter();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
Filter(event) {
|
|
64
|
+
var filter = {
|
|
65
|
+
text: event,
|
|
66
|
+
filterModel: this.filterModel,
|
|
67
|
+
PageNumber: this.filter.PageNumber,
|
|
68
|
+
RowCount: this.filter.PageSize,
|
|
69
|
+
};
|
|
70
|
+
this.http
|
|
71
|
+
.post("/api/Inventory/GetMultipleChannelComparison", filter)
|
|
72
|
+
.subscribe((result) => {
|
|
73
|
+
this.data = result.Data;
|
|
74
|
+
this.tempdata = result.Data;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
UpdateStock() {
|
|
78
|
+
let listSelected = this.getSelected();
|
|
79
|
+
if (listSelected.length > 0) {
|
|
80
|
+
let Request = [];
|
|
81
|
+
listSelected.forEach((m) => Request.push({
|
|
82
|
+
ID: m.ID,
|
|
83
|
+
Code: m.Code,
|
|
84
|
+
Inventory: m.Inventory,
|
|
85
|
+
}));
|
|
86
|
+
var selectedID = [];
|
|
87
|
+
for (let ch of this.Channel) {
|
|
88
|
+
if (ch.selected) {
|
|
89
|
+
selectedID.push(ch.ID);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
let params = {
|
|
93
|
+
ListChannelID: selectedID,
|
|
94
|
+
List: Request,
|
|
95
|
+
};
|
|
96
|
+
this.http
|
|
97
|
+
.post("/api/Inventory/UpdateChannel", params)
|
|
98
|
+
.subscribe((result) => {
|
|
99
|
+
this.info = result.Data;
|
|
100
|
+
this.Filter();
|
|
101
|
+
this.toastr.success("Successfully updated " +
|
|
102
|
+
params.List.length +
|
|
103
|
+
" variants in " +
|
|
104
|
+
params.ListChannelID.length +
|
|
105
|
+
" channels", "Success");
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
111
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
112
|
+
*/
|
|
113
|
+
openScanDialog() {
|
|
114
|
+
const dialogRef = this.dialog.open(_products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_0__.ScanDialogComponent, {
|
|
115
|
+
data: {
|
|
116
|
+
filter: this.filter,
|
|
117
|
+
Channel: this.Channel,
|
|
118
|
+
},
|
|
119
|
+
width: "30%",
|
|
120
|
+
});
|
|
121
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
122
|
+
if (result != null) {
|
|
123
|
+
this.filter = result.filter;
|
|
124
|
+
if (this.filter.sync) {
|
|
125
|
+
this.RefreshChannel();
|
|
126
|
+
}
|
|
127
|
+
else if (!this.filter.sync) {
|
|
128
|
+
this.RefreshChannel();
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
RefreshChannel() {
|
|
134
|
+
let params = {
|
|
135
|
+
ID: this.filter.ChannelID,
|
|
136
|
+
ScanFull: this.filter.ScanFull,
|
|
137
|
+
};
|
|
138
|
+
this.http
|
|
139
|
+
.post("/api/product/ScanOptimized", params)
|
|
140
|
+
.subscribe((result) => {
|
|
141
|
+
this.info = result.Data;
|
|
142
|
+
this.Filter();
|
|
143
|
+
this.toastr.success("Successfully scanned from " + this.getChannelName(params.ID), "Success");
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
UpdateStockByVariant(item) {
|
|
147
|
+
let params = {
|
|
148
|
+
ID: item.ChannelID,
|
|
149
|
+
ChannelItemID: item.ChannelItemID,
|
|
150
|
+
ChannelVariantID: item.ChannelVariationID,
|
|
151
|
+
NewQuantity: parseFloat(item.Inventory),
|
|
152
|
+
VariantID: item.ID,
|
|
153
|
+
SKU: item.Sku,
|
|
154
|
+
};
|
|
155
|
+
this.http
|
|
156
|
+
.post("/api/Inventory/UpdateQuantityByItem", params)
|
|
157
|
+
.subscribe((result) => {
|
|
158
|
+
this.toastr.success("Successfully updated " +
|
|
159
|
+
item.ItemName +
|
|
160
|
+
"(" +
|
|
161
|
+
item.VarName +
|
|
162
|
+
") inventory in " +
|
|
163
|
+
this.getChannelName(params.ID) +
|
|
164
|
+
" to " +
|
|
165
|
+
params.NewQuantity, "Success");
|
|
166
|
+
for (let p of this.data) {
|
|
167
|
+
if (p.ChannelItemID === item.ChannelItemID) {
|
|
168
|
+
for (let v of p.Variants) {
|
|
169
|
+
if (v.ChannelVariationID == item.ChannelVariantID) {
|
|
170
|
+
v.Stock = parseFloat(item.Inventory);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
getSelected() {
|
|
178
|
+
let listvariant = [];
|
|
179
|
+
if (this.data) {
|
|
180
|
+
for (let p of this.data) {
|
|
181
|
+
for (let v of p.Variants) {
|
|
182
|
+
if (v.selected) {
|
|
183
|
+
listvariant.push(v);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
return listvariant;
|
|
188
|
+
}
|
|
189
|
+
else {
|
|
190
|
+
return [];
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
hasSelection() {
|
|
194
|
+
if (this.data) {
|
|
195
|
+
let selected = this.getSelected();
|
|
196
|
+
if (selected.length > 0) {
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
else {
|
|
200
|
+
return false;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
//Function: getChannelName() will return the Channel's name based on the ID given as input
|
|
208
|
+
getChannelName(ID) {
|
|
209
|
+
let channel = this.Channel.find((x) => x.ID == ID);
|
|
210
|
+
return channel.Name;
|
|
211
|
+
}
|
|
212
|
+
onShowDifferenceStock(event) {
|
|
213
|
+
if (event) {
|
|
214
|
+
this.filterModel = 3;
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
this.filterModel = 1;
|
|
218
|
+
}
|
|
219
|
+
this.Filter();
|
|
220
|
+
}
|
|
221
|
+
onUpdateItems() {
|
|
222
|
+
const selectedItems = this.getSelected();
|
|
223
|
+
this.dialog.open(_modal_update_channels_modal_update_channels_component__WEBPACK_IMPORTED_MODULE_1__.ModalUpdateChannelsComponent, {
|
|
224
|
+
data: {
|
|
225
|
+
selectedItems: selectedItems,
|
|
226
|
+
channels: this.Channel
|
|
227
|
+
},
|
|
228
|
+
width: '40%'
|
|
229
|
+
})
|
|
230
|
+
.afterClosed()
|
|
231
|
+
.subscribe((result) => {
|
|
232
|
+
if (result) {
|
|
233
|
+
this.Channel = result;
|
|
234
|
+
this.UpdateStock();
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
InventoryPosComponent.ɵfac = function InventoryPosComponent_Factory(t) { return new (t || InventoryPosComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__.MatDialog)); };
|
|
240
|
+
InventoryPosComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: InventoryPosComponent, selectors: [["app-inventory-pos"]], decls: 15, vars: 10, consts: [[3, "Title", "pageData", "hideSearchBox", "hideSearchDropdown", "textButton", "onSubmit"], [1, "d-flex"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-3", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], ["type", "button", 1, "btn", "btn-success", "shadow-sm", "rounded", "me-3", 3, "hidden", "click"], [1, "fas", "fa-chevron-circle-up"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], ["table", "inventory", 3, "data", "channel", "showProductToggle", "filter", "onToggle", "onSubmit"]], template: function InventoryPosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
241
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 0);
|
|
242
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("onSubmit", function InventoryPosComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Filter($event); });
|
|
243
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "actions")(2, "div", 1)(3, "div")(4, "button", 2);
|
|
244
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryPosComponent_Template_button_click_4_listener() { return ctx.openScanDialog(); });
|
|
245
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "i", 3);
|
|
246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, " Scan Channel ");
|
|
247
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
248
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "button", 4);
|
|
249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryPosComponent_Template_button_click_7_listener() { return ctx.onUpdateItems(); });
|
|
250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](8, "i", 5);
|
|
251
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, " Update ");
|
|
252
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
|
|
253
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "content")(11, "div", 6)(12, "div", 7)(13, "div", 8)(14, "app-table", 9);
|
|
254
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("onToggle", function InventoryPosComponent_Template_app_table_onToggle_14_listener($event) { return ctx.onShowDifferenceStock($event); })("onSubmit", function InventoryPosComponent_Template_app_table_onSubmit_14_listener($event) { return ctx.UpdateStockByVariant($event); });
|
|
255
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()();
|
|
256
|
+
} if (rf & 2) {
|
|
257
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Inventory Comparison")("pageData", ctx.pageData)("hideSearchBox", false)("hideSearchDropdown", true)("textButton", "Search");
|
|
258
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
|
|
259
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("hidden", !ctx.hasSelection());
|
|
260
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
|
|
261
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("data", ctx.data)("channel", ctx.Channel)("showProductToggle", true)("filter", ctx.filter);
|
|
262
|
+
} }, dependencies: [_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__.MainPanelComponent], styles: [".no-bullet[_ngcontent-%COMP%] {\n list-style-type: none;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImludmVudG9yeS1wb3MuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxxQkFBQTtBQUNKIiwiZmlsZSI6ImludmVudG9yeS1wb3MuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIubm8tYnVsbGV0e1xyXG4gICAgbGlzdC1zdHlsZS10eXBlOm5vbmU7XHJcbn1cclxuIl19 */"] });
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
/***/ }),
|
|
266
|
+
|
|
267
|
+
/***/ 5909:
|
|
268
|
+
/*!***********************************************************************************!*\
|
|
269
|
+
!*** ./src/app/menu/inventory/inventory-realtime/inventory-realtime.component.ts ***!
|
|
270
|
+
\***********************************************************************************/
|
|
271
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
272
|
+
|
|
273
|
+
__webpack_require__.r(__webpack_exports__);
|
|
274
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
275
|
+
/* harmony export */ "InventoryRealtimeComponent": () => (/* binding */ InventoryRealtimeComponent)
|
|
276
|
+
/* harmony export */ });
|
|
277
|
+
/* harmony import */ var _table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../table/table-dialog/table-dialog.component */ 1576);
|
|
278
|
+
/* harmony import */ var _products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../products/scan-dialog/scan-dialog.component */ 5241);
|
|
279
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
280
|
+
/* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
|
|
281
|
+
/* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ngx-toastr */ 4817);
|
|
282
|
+
/* harmony import */ var _angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/dialog */ 1484);
|
|
283
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
284
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
285
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
286
|
+
/* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
|
|
287
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
function InventoryRealtimeComponent_mainpanel_0_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
300
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "div", 35)(1, "span");
|
|
301
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " showing only different stock, please press next to populate more data ");
|
|
302
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
303
|
+
} }
|
|
304
|
+
function InventoryRealtimeComponent_mainpanel_0_ng_option_45_Template(rf, ctx) { if (rf & 1) {
|
|
305
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "ng-option", 36);
|
|
306
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "img", 37);
|
|
307
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
|
|
308
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
309
|
+
} if (rf & 2) {
|
|
310
|
+
const c_r8 = ctx.$implicit;
|
|
311
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("value", c_r8.ID);
|
|
312
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
313
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", c_r8.Img, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
|
314
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
315
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](c_r8.Name);
|
|
316
|
+
} }
|
|
317
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
318
|
+
const _r24 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
319
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "input", 49);
|
|
320
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r24); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3).$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](item_r9.selected = $event); })("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_input_3_Template_input_ngModelChange_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r24); const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3).$implicit; const ctx_r25 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r25.onCheckboxStateProduct(item_r9.ID)); });
|
|
321
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
322
|
+
} if (rf & 2) {
|
|
323
|
+
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3).$implicit;
|
|
324
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", item_r9.selected);
|
|
325
|
+
} }
|
|
326
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_img_4_Template(rf, ctx) { if (rf & 1) {
|
|
327
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 50);
|
|
328
|
+
} if (rf & 2) {
|
|
329
|
+
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](3).$implicit;
|
|
330
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpropertyInterpolate"]("src", item_r9 == null ? null : item_r9.ThumbnailUrl, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
|
331
|
+
} }
|
|
332
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
333
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](0, "img", 51);
|
|
334
|
+
} }
|
|
335
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
336
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerStart"](0);
|
|
337
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "td", 43)(2, "div", 44);
|
|
338
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](3, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_input_3_Template, 1, 1, "input", 45);
|
|
339
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](4, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_img_4_Template, 1, 1, "img", 46);
|
|
340
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](5, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_ng_template_5_Template, 1, 0, "ng-template", null, 47, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplateRefExtractor"]);
|
|
341
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
342
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td", 43)(8, "span", 48);
|
|
343
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9);
|
|
344
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
345
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](10, "br");
|
|
346
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "small");
|
|
347
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12);
|
|
348
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
349
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementContainerEnd"]();
|
|
350
|
+
} if (rf & 2) {
|
|
351
|
+
const _r20 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵreference"](6);
|
|
352
|
+
const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
353
|
+
const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
354
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
355
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("rowSpan", item_r9 == null ? null : item_r9.Variants.length);
|
|
356
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
357
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (v_r11 == null ? null : v_r11.Inventory) >= 0 || item_r9.Variants.length > 1);
|
|
358
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
359
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", item_r9 == null ? null : item_r9.ThumbnailUrl)("ngIfElse", _r20);
|
|
360
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
361
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("rowSpan", item_r9 == null ? null : item_r9.Variants.length);
|
|
362
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
363
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r9 == null ? null : item_r9.Name);
|
|
364
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
365
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"]("(", item_r9 == null ? null : item_r9.Category, ")");
|
|
366
|
+
} }
|
|
367
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_input_7_Template(rf, ctx) { if (rf & 1) {
|
|
368
|
+
const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
369
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "input", 23);
|
|
370
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_input_7_Template_input_ngModelChange_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r33); const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](v_r11.selected = $event); });
|
|
371
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
372
|
+
} if (rf & 2) {
|
|
373
|
+
const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
374
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", v_r11.selected);
|
|
375
|
+
} }
|
|
376
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_span_9_Template(rf, ctx) { if (rf & 1) {
|
|
377
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span")(1, "span", 52);
|
|
378
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2);
|
|
379
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](3, "number");
|
|
380
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
381
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](4, " => ");
|
|
382
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "span", 53);
|
|
383
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
|
|
384
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](7, "number");
|
|
385
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
386
|
+
} if (rf & 2) {
|
|
387
|
+
const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
388
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
389
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](3, 2, v_r11.I.Available), "");
|
|
390
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
|
|
391
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](7, 4, v_r11 == null ? null : v_r11.Inventory));
|
|
392
|
+
} }
|
|
393
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
394
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
|
|
395
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
|
|
396
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "number");
|
|
397
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
398
|
+
} if (rf & 2) {
|
|
399
|
+
const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
400
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
401
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, v_r11 == null ? null : v_r11.Inventory), " ");
|
|
402
|
+
} }
|
|
403
|
+
const _c0 = function (a0) { return { "bg-err": a0 }; };
|
|
404
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_td_11_Template(rf, ctx) { if (rf & 1) {
|
|
405
|
+
const _r39 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
406
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "td", 54)(1, "div", 55)(2, "div", 56);
|
|
407
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_td_11_Template_div_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r39); const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; const item_r9 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit; const ctx_r37 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r37.openTableDialog(item_r9.Name, v_r11, v_r11 == null ? null : v_r11.Channel[0].ChannelID, item_r9.ChannelItemID)); });
|
|
408
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
|
|
409
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "number");
|
|
410
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
411
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "div", 57)(6, "a", 58);
|
|
412
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](7, "i", 59);
|
|
413
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
|
|
414
|
+
} if (rf & 2) {
|
|
415
|
+
const v_r11 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]().$implicit;
|
|
416
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](5, _c0, (v_r11 == null ? null : v_r11.Inventory) != (v_r11 == null ? null : v_r11.Channel[0].Inventory)));
|
|
417
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
418
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](4, 3, v_r11 == null ? null : v_r11.Channel[0].Inventory), " ");
|
|
419
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
|
|
420
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("href", v_r11 == null ? null : v_r11.Channel[0].Url, _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsanitizeUrl"]);
|
|
421
|
+
} }
|
|
422
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_Template(rf, ctx) { if (rf & 1) {
|
|
423
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr");
|
|
424
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_ng_container_1_Template, 13, 7, "ng-container", 31);
|
|
425
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](2, "td", 38);
|
|
426
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
|
|
427
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
428
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](4, "td", 39);
|
|
429
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5);
|
|
430
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
431
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "td", 40);
|
|
432
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](7, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_input_7_Template, 1, 1, "input", 41);
|
|
433
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
434
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](8, "td", 39);
|
|
435
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](9, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_span_9_Template, 8, 6, "span", 31);
|
|
436
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](10, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_span_10_Template, 3, 3, "span", 31);
|
|
437
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
438
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](11, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_td_11_Template, 8, 7, "td", 42);
|
|
439
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
440
|
+
} if (rf & 2) {
|
|
441
|
+
const v_r11 = ctx.$implicit;
|
|
442
|
+
const i_r12 = ctx.index;
|
|
443
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
444
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", i_r12 == 0);
|
|
445
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
446
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](v_r11 == null ? null : v_r11.Model);
|
|
447
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
448
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", v_r11 == null ? null : v_r11.Code, " ");
|
|
449
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
450
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (v_r11 == null ? null : v_r11.Inventory) >= 0);
|
|
451
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
452
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (v_r11 == null ? null : v_r11.Inventory) != v_r11.I.Available);
|
|
453
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
454
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", (v_r11 == null ? null : v_r11.Inventory) == v_r11.I.Available);
|
|
455
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
456
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", v_r11 == null ? null : v_r11.Channel);
|
|
457
|
+
} }
|
|
458
|
+
function InventoryRealtimeComponent_mainpanel_0_tbody_47_Template(rf, ctx) { if (rf & 1) {
|
|
459
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tbody");
|
|
460
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](1, InventoryRealtimeComponent_mainpanel_0_tbody_47_tr_1_Template, 12, 7, "tr", 26);
|
|
461
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
462
|
+
} if (rf & 2) {
|
|
463
|
+
const item_r9 = ctx.$implicit;
|
|
464
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
465
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", item_r9.Variants);
|
|
466
|
+
} }
|
|
467
|
+
function InventoryRealtimeComponent_mainpanel_0_span_53_Template(rf, ctx) { if (rf & 1) {
|
|
468
|
+
const _r43 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
469
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span", 60);
|
|
470
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_span_53_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r43); const ctx_r42 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r42.StoreRowsCountAPIResult()); });
|
|
471
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "i", 61);
|
|
472
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, "?");
|
|
473
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
474
|
+
} }
|
|
475
|
+
function InventoryRealtimeComponent_mainpanel_0_span_54_Template(rf, ctx) { if (rf & 1) {
|
|
476
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "span");
|
|
477
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](1);
|
|
478
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](2, "number");
|
|
479
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
480
|
+
} if (rf & 2) {
|
|
481
|
+
const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2);
|
|
482
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
483
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](2, 1, ctx_r5.listTotal));
|
|
484
|
+
} }
|
|
485
|
+
function InventoryRealtimeComponent_mainpanel_0_a_57_Template(rf, ctx) { if (rf & 1) {
|
|
486
|
+
const _r45 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
487
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 62);
|
|
488
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_a_57_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r45); const ctx_r44 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r44.NextPage(true)); });
|
|
489
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 63);
|
|
490
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Next");
|
|
491
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
492
|
+
} }
|
|
493
|
+
function InventoryRealtimeComponent_mainpanel_0_a_58_Template(rf, ctx) { if (rf & 1) {
|
|
494
|
+
const _r47 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
495
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "a", 64);
|
|
496
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_a_58_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r47); const ctx_r46 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](2); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r46.StoreRowsCountAPIResult(true)); });
|
|
497
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](1, "i", 65);
|
|
498
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](2, " Last");
|
|
499
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
500
|
+
} }
|
|
501
|
+
function InventoryRealtimeComponent_mainpanel_0_Template(rf, ctx) { if (rf & 1) {
|
|
502
|
+
const _r49 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵgetCurrentView"]();
|
|
503
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 1);
|
|
504
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("onSubmit", function InventoryRealtimeComponent_mainpanel_0_Template_mainpanel_onSubmit_0_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r48 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r48.Filter($event, "search")); });
|
|
505
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "actions")(2, "div", 2)(3, "div")(4, "button", 3);
|
|
506
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r50 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r50.openScanDialog()); });
|
|
507
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](5, "i", 4);
|
|
508
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6, " Scan Channel ");
|
|
509
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
510
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "button", 5);
|
|
511
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("click", function InventoryRealtimeComponent_mainpanel_0_Template_button_click_7_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r51 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r51.UpdateStock()); });
|
|
512
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](8, "i", 6);
|
|
513
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, " Update");
|
|
514
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
|
|
515
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "filters")(11, "div", 2)(12, "div", 7)(13, "div")(14, "label", 8);
|
|
516
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](15, "PageNumber");
|
|
517
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
518
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "input", 9);
|
|
519
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_Template_input_ngModelChange_16_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r52 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r52.filter.PageNumber = $event); });
|
|
520
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
521
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](17, "div")(18, "label", 10);
|
|
522
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](19, "Page Size");
|
|
523
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
524
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "input", 11);
|
|
525
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_Template_input_ngModelChange_20_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r53 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r53.filter.PageSize = $event); });
|
|
526
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()();
|
|
527
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](21, "content")(22, "div", 12)(23, "div", 13)(24, "div", 14);
|
|
528
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](25, InventoryRealtimeComponent_mainpanel_0_div_25_Template, 3, 0, "div", 15);
|
|
529
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](26, "table", 16)(27, "thead", 17)(28, "tr")(29, "th", 18);
|
|
530
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](30, "Product ");
|
|
531
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](31, "br");
|
|
532
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](32, "mat-slide-toggle", 19);
|
|
533
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("toggleChange", function InventoryRealtimeComponent_mainpanel_0_Template_mat_slide_toggle_toggleChange_32_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r54 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); ctx_r54.showDifferenceStock = !ctx_r54.showDifferenceStock; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r54.onShowDifferenceStock()); });
|
|
534
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](33, "small", 20);
|
|
535
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](34, "Filter Different Inventory");
|
|
536
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
|
|
537
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](35, "th", 21);
|
|
538
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](36, "Variant");
|
|
539
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
540
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](37, "th", 22);
|
|
541
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](38, "SKU");
|
|
542
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
543
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](39, "th")(40, "input", 23);
|
|
544
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_Template_input_ngModelChange_40_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r55 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r55.checkboxState = $event); })("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_Template_input_ngModelChange_40_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r56 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r56.onCheckboxStateChange()); });
|
|
545
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
546
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](41, "th", 22);
|
|
547
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](42, "POS");
|
|
548
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
549
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](43, "th")(44, "ng-select", 24);
|
|
550
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("change", function InventoryRealtimeComponent_mainpanel_0_Template_ng_select_change_44_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r57 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); ctx_r57.filter.PageSize = 100; return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r57.Filter(null, "search")); })("ngModelChange", function InventoryRealtimeComponent_mainpanel_0_Template_ng_select_ngModelChange_44_listener($event) { _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵrestoreView"](_r49); const ctx_r58 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵresetView"](ctx_r58.filter.ChannelID = $event); });
|
|
551
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](45, InventoryRealtimeComponent_mainpanel_0_ng_option_45_Template, 3, 3, "ng-option", 25);
|
|
552
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
553
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelement"](46, "th");
|
|
554
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
555
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](47, InventoryRealtimeComponent_mainpanel_0_tbody_47_Template, 2, 1, "tbody", 26);
|
|
556
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
|
|
557
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](48, "div", 27)(49, "div", 28)(50, "div", 29);
|
|
558
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](51);
|
|
559
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](52, "number");
|
|
560
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](53, InventoryRealtimeComponent_mainpanel_0_span_53_Template, 3, 0, "span", 30);
|
|
561
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](54, InventoryRealtimeComponent_mainpanel_0_span_54_Template, 3, 3, "span", 31);
|
|
562
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](55);
|
|
563
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
|
|
564
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](56, "div", 32);
|
|
565
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](57, InventoryRealtimeComponent_mainpanel_0_a_57_Template, 3, 0, "a", 33);
|
|
566
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](58, InventoryRealtimeComponent_mainpanel_0_a_58_Template, 3, 0, "a", 34);
|
|
567
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()();
|
|
568
|
+
} if (rf & 2) {
|
|
569
|
+
const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵnextContext"]();
|
|
570
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Inventory Comparison")("pageData", ctx_r0.pageData)("hideSearchBox", false)("textButton", "Search");
|
|
571
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](7);
|
|
572
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("hidden", !ctx_r0.hasSelection());
|
|
573
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](9);
|
|
574
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx_r0.filter.PageNumber);
|
|
575
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
|
|
576
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx_r0.filter.PageSize);
|
|
577
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](5);
|
|
578
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.filterModel == 3 && !ctx_r0.NonFull);
|
|
579
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](15);
|
|
580
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx_r0.checkboxState);
|
|
581
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
|
|
582
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", false)("ngModel", ctx_r0.filter.ChannelID);
|
|
583
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
584
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r0.Channel);
|
|
585
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
586
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx_r0.infiniteList);
|
|
587
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
|
|
588
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" Showing 1 - ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind1"](52, 19, ctx_r0.filter.PageSize * (ctx_r0.filter.PageNumber - 1) + ctx_r0.data.length), " of ");
|
|
589
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
590
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.hideCount);
|
|
591
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
592
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", !ctx_r0.hideCount);
|
|
593
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
594
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" records ~ ", ctx_r0.filter.PageNumber, " Page ");
|
|
595
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
|
|
596
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.nextPageDisabled && !ctx_r0.goToLast);
|
|
597
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
|
|
598
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx_r0.nextPageDisabled && !ctx_r0.goToLast);
|
|
599
|
+
} }
|
|
600
|
+
class InventoryRealtimeComponent {
|
|
601
|
+
constructor(http, toastr, dialog) {
|
|
602
|
+
this.http = http;
|
|
603
|
+
this.toastr = toastr;
|
|
604
|
+
this.dialog = dialog;
|
|
605
|
+
this.oldRowCount = -1;
|
|
606
|
+
this.hideCount = true;
|
|
607
|
+
this.nextPageDisabled = false;
|
|
608
|
+
this.goToLast = false;
|
|
609
|
+
this.extendData = false;
|
|
610
|
+
this.filter = {
|
|
611
|
+
ChannelID: ""
|
|
612
|
+
};
|
|
613
|
+
this.loading = false;
|
|
614
|
+
this.checkboxState = false;
|
|
615
|
+
this.showDifferenceStock = false;
|
|
616
|
+
this.NonFull = false;
|
|
617
|
+
this.LoaderChannel();
|
|
618
|
+
this.Options = [
|
|
619
|
+
{ Key: 1, Value: "All" },
|
|
620
|
+
{ Key: 3, Value: "Difference" }
|
|
621
|
+
];
|
|
622
|
+
this.filterModel = 1;
|
|
623
|
+
this.pageData = {
|
|
624
|
+
Title: "Inventory Realtime",
|
|
625
|
+
Nav: [
|
|
626
|
+
{ Title: 'Inventory Cache', Url: '/menu/inventory', Active: false },
|
|
627
|
+
{ Title: 'Inventory Realtime', Url: '/menu/inventory/realtime', Active: true }
|
|
628
|
+
]
|
|
629
|
+
};
|
|
630
|
+
}
|
|
631
|
+
ngOnInit() {
|
|
632
|
+
}
|
|
633
|
+
LoaderChannel() {
|
|
634
|
+
this.http.post('/api/InventoryLoader/Load', {}).subscribe(result => {
|
|
635
|
+
this.Channel = result.Options.Channel;
|
|
636
|
+
this.filter = result.Filter;
|
|
637
|
+
this.Filter();
|
|
638
|
+
if (!this.filter.IsMarketplaceAppActive) {
|
|
639
|
+
let msg = "Automatic inventory sync disabled." + "\n" + " Please enable Dealpos X Marketplace Apps integration in POS Configuration";
|
|
640
|
+
this.toastr.warning(msg, "Warning");
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
Filter(event, search) {
|
|
645
|
+
if (search === 'search') {
|
|
646
|
+
this.oldRowCount = this.filter.PageSize;
|
|
647
|
+
this.goToLast = false;
|
|
648
|
+
this.extendData = false;
|
|
649
|
+
this.filter.PageNumber = 1;
|
|
650
|
+
}
|
|
651
|
+
const filter = {
|
|
652
|
+
text: event,
|
|
653
|
+
filterModel: this.filterModel,
|
|
654
|
+
ID: this.filter.ChannelID,
|
|
655
|
+
PageNumber: this.filter.PageNumber,
|
|
656
|
+
RowCount: this.filter.PageSize
|
|
657
|
+
};
|
|
658
|
+
this.hideCount = true;
|
|
659
|
+
this.http.post('/api/Inventory/GetSingleChannelComparison', filter).subscribe(result => {
|
|
660
|
+
this.data = result.Data;
|
|
661
|
+
this.temp = result.Data;
|
|
662
|
+
this.postFilter(result);
|
|
663
|
+
});
|
|
664
|
+
}
|
|
665
|
+
UpdateStock() {
|
|
666
|
+
let listSelected = this.getSelected();
|
|
667
|
+
if (listSelected.length > 0) {
|
|
668
|
+
let Request = [];
|
|
669
|
+
listSelected.forEach(m => Request.push({
|
|
670
|
+
ID: m.ID,
|
|
671
|
+
Code: m.Code,
|
|
672
|
+
Inventory: m.Inventory
|
|
673
|
+
}));
|
|
674
|
+
var selectedID = [];
|
|
675
|
+
selectedID.push(this.filter.ChannelID);
|
|
676
|
+
let params = {
|
|
677
|
+
ListChannelID: selectedID,
|
|
678
|
+
List: Request
|
|
679
|
+
};
|
|
680
|
+
this.http.post('/api/Inventory/UpdateChannel', params).subscribe(result => {
|
|
681
|
+
this.info = result.Data;
|
|
682
|
+
this.Filter();
|
|
683
|
+
this.toastr.success("Successfully updated " + params.List.length + " variants in " + params.ListChannelID.length + " channels", "Success");
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
/**
|
|
688
|
+
* Opens the scan dialog and pass the Channel list and the filter variable
|
|
689
|
+
* It will return the modified filter and will run the scan function that the user has selected (full or quick)
|
|
690
|
+
*/
|
|
691
|
+
openScanDialog() {
|
|
692
|
+
const dialogRef = this.dialog.open(_products_scan_dialog_scan_dialog_component__WEBPACK_IMPORTED_MODULE_1__.ScanDialogComponent, {
|
|
693
|
+
data: {
|
|
694
|
+
filter: this.filter,
|
|
695
|
+
Channel: this.Channel
|
|
696
|
+
},
|
|
697
|
+
width: '30%'
|
|
698
|
+
});
|
|
699
|
+
dialogRef.afterClosed().subscribe(result => {
|
|
700
|
+
if (result != null) {
|
|
701
|
+
this.filter = result.filter;
|
|
702
|
+
if (this.filter.sync) {
|
|
703
|
+
this.RefreshChannel();
|
|
704
|
+
}
|
|
705
|
+
else if (!this.filter.sync) {
|
|
706
|
+
this.RefreshChannel();
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
RefreshChannel() {
|
|
712
|
+
let params = {
|
|
713
|
+
ID: this.filter.ChannelID,
|
|
714
|
+
ScanFull: this.filter.ScanFull
|
|
715
|
+
};
|
|
716
|
+
this.http.post('/api/product/ScanOptimized', params).subscribe(result => {
|
|
717
|
+
this.info = result.Data;
|
|
718
|
+
this.Filter();
|
|
719
|
+
this.toastr.success("Successfully scanned from " + this.getChannelName(params.ID), "Success");
|
|
720
|
+
});
|
|
721
|
+
}
|
|
722
|
+
UpdateStockByVariant(ChannelItemID, ChannelVariantID, NewQuantity, VariantID, sku) {
|
|
723
|
+
let params = {
|
|
724
|
+
ID: this.filter.ChannelID,
|
|
725
|
+
ChannelItemID: ChannelItemID,
|
|
726
|
+
ChannelVariantID: ChannelVariantID,
|
|
727
|
+
NewQuantity: NewQuantity,
|
|
728
|
+
VariantID: VariantID,
|
|
729
|
+
SKU: sku
|
|
730
|
+
};
|
|
731
|
+
this.http.post('/api/Inventory/UpdateQuantityByID', params).subscribe(result => {
|
|
732
|
+
this.toastr.success(result.Data, "Success", {
|
|
733
|
+
closeButton: true,
|
|
734
|
+
positionClass: "toast-bottom-right"
|
|
735
|
+
});
|
|
736
|
+
for (let p of this.data) {
|
|
737
|
+
if (p.ChannelItemID === ChannelItemID) {
|
|
738
|
+
for (let v of p.Variants) {
|
|
739
|
+
if (v.ChannelVariationID == ChannelVariantID) {
|
|
740
|
+
v.Stock = NewQuantity;
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
onCheckboxStateProduct(product) {
|
|
748
|
+
let selectedProduct = this.data.filter(x => x.ID == product);
|
|
749
|
+
if (selectedProduct.length > 0) {
|
|
750
|
+
for (let item of selectedProduct) {
|
|
751
|
+
for (let v of item.Variants) {
|
|
752
|
+
if (v.Inventory >= 0) {
|
|
753
|
+
v.selected = item.selected;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
onCheckboxStateChange() {
|
|
762
|
+
for (let item of this.data) {
|
|
763
|
+
for (let v of item.Variants) {
|
|
764
|
+
v.selected = this.checkboxState;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
getSelected() {
|
|
769
|
+
let listvariant = Array();
|
|
770
|
+
if (this.data) {
|
|
771
|
+
this.data.forEach(p => p.Variants.filter(v => v.selected).forEach(v => listvariant.push(v)));
|
|
772
|
+
}
|
|
773
|
+
return listvariant;
|
|
774
|
+
}
|
|
775
|
+
hasSelection() {
|
|
776
|
+
if (this.data) {
|
|
777
|
+
let selected = this.getSelected();
|
|
778
|
+
if (selected.length > 0) {
|
|
779
|
+
return true;
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
return false;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
else {
|
|
786
|
+
return false;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
//Function: getChannelName() will return the Channel's name based on the ID given as input
|
|
790
|
+
getChannelName(ID) {
|
|
791
|
+
let channel = this.Channel.find(x => x.ID == ID);
|
|
792
|
+
return channel.Name;
|
|
793
|
+
}
|
|
794
|
+
openTableDialog(name, item, ID, ChannelItemID) {
|
|
795
|
+
const dialogRef = this.dialog.open(_table_table_dialog_table_dialog_component__WEBPACK_IMPORTED_MODULE_0__.TableDialogComponent, {
|
|
796
|
+
data: {
|
|
797
|
+
Name: name,
|
|
798
|
+
Variant: item,
|
|
799
|
+
ChannelID: ID,
|
|
800
|
+
Table: 'inventory',
|
|
801
|
+
ChannelItemID: ChannelItemID
|
|
802
|
+
}
|
|
803
|
+
});
|
|
804
|
+
dialogRef.afterClosed().subscribe(result => {
|
|
805
|
+
if (result != null) {
|
|
806
|
+
this.updateItemAfterDialog(result);
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
/**
|
|
811
|
+
* Is called after closing table dialog
|
|
812
|
+
* originally UpdateStockByVariant() from iventory-pos
|
|
813
|
+
* This component also has UpdateStockByVariant(), but it calls a different API, don't know why
|
|
814
|
+
*
|
|
815
|
+
* TODO: Combine with local updatestock by variant
|
|
816
|
+
*
|
|
817
|
+
* @param item result after closing table dialog
|
|
818
|
+
*/
|
|
819
|
+
updateItemAfterDialog(item) {
|
|
820
|
+
let params = {
|
|
821
|
+
ID: item.ChannelID,
|
|
822
|
+
ChannelItemID: item.ChannelItemID,
|
|
823
|
+
ChannelVariantID: item.ChannelVariationID,
|
|
824
|
+
NewQuantity: parseFloat(item.Inventory),
|
|
825
|
+
VariantID: item.ID,
|
|
826
|
+
SKU: item.Sku
|
|
827
|
+
};
|
|
828
|
+
this.http.post('/api/Inventory/UpdateQuantityByItem', params).subscribe(result => {
|
|
829
|
+
this.toastr.success("Successfully updated " + item.ItemName + '(' + item.VarName + ") inventory in " + this.getChannelName(params.ID) + " to " + params.NewQuantity, "Success");
|
|
830
|
+
for (let p of this.data) {
|
|
831
|
+
if (p.ChannelItemID === item.ChannelItemID) {
|
|
832
|
+
for (let v of p.Variants) {
|
|
833
|
+
if (v.ChannelVariationID == item.ChannelVariantID) {
|
|
834
|
+
v.Stock = item.Inventory;
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
}
|
|
841
|
+
onShowDifferenceStock() {
|
|
842
|
+
if (this.showDifferenceStock) {
|
|
843
|
+
this.filterModel = 3;
|
|
844
|
+
}
|
|
845
|
+
else {
|
|
846
|
+
this.filterModel = 1;
|
|
847
|
+
}
|
|
848
|
+
this.Filter();
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Get the total amount of orders
|
|
852
|
+
*/
|
|
853
|
+
StoreRowsCountAPIResult(Extends) {
|
|
854
|
+
var filter = {
|
|
855
|
+
ID: this.filter.ChannelID,
|
|
856
|
+
PageNumber: this.filter.PageNumber,
|
|
857
|
+
RowCount: this.filter.RowCount
|
|
858
|
+
};
|
|
859
|
+
this.http.post('api/Inventory/GetInventoryByChannelRowCount', filter).subscribe(result => {
|
|
860
|
+
this.listTotal = result.Total;
|
|
861
|
+
this.hideCount = false;
|
|
862
|
+
if (Extends) {
|
|
863
|
+
this.filter.PageSize = this.listTotal;
|
|
864
|
+
this.goToLast = true;
|
|
865
|
+
this.filter.PageNumber = 1;
|
|
866
|
+
this.Filter();
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
NextPage(extendData) {
|
|
871
|
+
this.filter.PageNumber = this.filter.PageNumber || 1;
|
|
872
|
+
this.filter.PageNumber += 1;
|
|
873
|
+
this.extendData = extendData;
|
|
874
|
+
this.Filter();
|
|
875
|
+
}
|
|
876
|
+
postFilter(result) {
|
|
877
|
+
if (this.extendData) {
|
|
878
|
+
this.infiniteList = this.infiniteList.concat(result.Data);
|
|
879
|
+
this.extendData = false;
|
|
880
|
+
}
|
|
881
|
+
else {
|
|
882
|
+
this.infiniteList = result.Data;
|
|
883
|
+
}
|
|
884
|
+
if (this.filterModel == 3) {
|
|
885
|
+
if (result.Data.length == 0) {
|
|
886
|
+
this.NonFull = true;
|
|
887
|
+
}
|
|
888
|
+
else {
|
|
889
|
+
this.nextPageDisabled = true;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
else if (result.Data.length != undefined) {
|
|
893
|
+
this.nextPageDisabled = result.Data.length < this.filter.PageSize ? false : true;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
InventoryRealtimeComponent.ɵfac = function InventoryRealtimeComponent_Factory(t) { return new (t || InventoryRealtimeComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_2__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_5__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_material_dialog__WEBPACK_IMPORTED_MODULE_6__.MatDialog)); };
|
|
898
|
+
InventoryRealtimeComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: InventoryRealtimeComponent, selectors: [["app-inventory-realtime"]], decls: 1, vars: 1, consts: [[3, "Title", "pageData", "hideSearchBox", "textButton", "onSubmit", 4, "ngIf"], [3, "Title", "pageData", "hideSearchBox", "textButton", "onSubmit"], [1, "d-flex"], ["type", "button", "data-cy", "scanInPos", 1, "btn", "btn-outline-secondary", "shadow", "rounded", "me-3", 3, "click"], [1, "fas", "fa-lg", "fa-crosshairs"], [1, "btn", "btn-success", 3, "hidden", "click"], [1, "fas", "fa-chevron-circle-up"], ["container", ""], ["for", "PageNumber"], ["type", "number", "id", "PageNumber", "placeholder", "PageNumber", "name", "PageNumber", "data-toggle", "tooltip", "matTooltip", "Page Number", 1, "form-control", 3, "ngModel", "ngModelChange"], ["for", "RowCount"], ["type", "number", "id", "RowCount", "placeholder", "Page Size", "name", "RowCount", "data-toggle", "tooltip", "matTooltip", "Page Size", 1, "form-control", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], ["class", "alert alert-warning d-flex justify-content-between text-dark", "role", "alert", 4, "ngIf"], [1, "table", "border-bottom"], [1, "thead-light"], ["scope", "col", "colspan", "2", 1, "text-center", "w-25"], [3, "toggleChange"], [1, "fw-bold"], ["scope", "col", 1, "text-start"], ["scope", "col", 1, "text-end", "w-10"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [3, "clearable", "ngModel", "change", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [4, "ngFor", "ngForOf"], [1, "d-flex", "justify-content-between", "mt-5"], [1, "me-auto", "d-sm-block", "collapse", "mt-3"], [1, "fw-bold", "font-italic", "hidden-xxs"], ["style", "cursor:pointer", 3, "click", 4, "ngIf"], [4, "ngIf"], [1, "btn-group"], ["role", "button", "class", "btn btn-outline-secondary btn-sm text-primary", "title", "Load more for 20 products", 3, "click", 4, "ngIf"], ["role", "button", "class", "btn btn-outline-secondary btn-sm text-primary", "title", "Load all products", 3, "click", 4, "ngIf"], ["role", "alert", 1, "alert", "alert-warning", "d-flex", "justify-content-between", "text-dark"], [3, "value"], [2, "width", "18px", "margin-right", "10px", 3, "src"], [1, "text-start"], [1, "text-end"], [1, "align-middle"], ["type", "checkbox", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "text-center", 3, "ngClass", 4, "ngIf"], [1, "text-center", 3, "rowSpan"], [1, "d-flex", "align-items-center", "justify-content-end"], ["type", "checkbox", "class", "me-3", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["class", "border rounded w-img", 3, "src", 4, "ngIf", "ngIfElse"], ["elsePic", ""], [1, "item-name", "mb-0"], ["type", "checkbox", 1, "me-3", 3, "ngModel", "ngModelChange"], [1, "border", "rounded", "w-img", 3, "src"], ["src", "//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png", 1, "border", "rounded", "w-img"], ["title", "Allocated"], ["title", "Inventory below minimum inventory"], [1, "text-center", 3, "ngClass"], [1, "row", "justify-content-end", "me-0"], [1, "col-8", "px-0", "text-center", 3, "click"], [1, "col-2", "ps-0", "text-start", "align-self-center"], ["target", "_blank", 3, "href"], [1, "fas", "fa-lg", "fa-external-link-alt"], [2, "cursor", "pointer", 3, "click"], ["title", "Retreive rows count", 1, "border", "p-3"], ["role", "button", "title", "Load more for 20 products", 1, "btn", "btn-outline-secondary", "btn-sm", "text-primary", 3, "click"], [1, "fas", "fa-arrow-right"], ["role", "button", "title", "Load all products", 1, "btn", "btn-outline-secondary", "btn-sm", "text-primary", 3, "click"], [1, "fas", "fa-share"]], template: function InventoryRealtimeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
899
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](0, InventoryRealtimeComponent_mainpanel_0_Template, 59, 21, "mainpanel", 0);
|
|
900
|
+
} if (rf & 2) {
|
|
901
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngIf", ctx.data);
|
|
902
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_7__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_8__.NgModel, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__.NgOptionComponent, _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_10__.MatSlideToggle, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__.MainPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_7__.DecimalPipe], styles: [".w-10[_ngcontent-%COMP%] {\n width: 10%;\n}\n\n.w-20[_ngcontent-%COMP%] {\n width: 20%;\n}\n\n.w-img[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n}\n\n.item-name[_ngcontent-%COMP%] {\n margin-bottom: -14px !important;\n font-size: larger;\n}\n\n.cell-hover[_ngcontent-%COMP%]:hover {\n background-color: #c9c9c9 !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImludmVudG9yeS1yZWFsdGltZS5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLFVBQUE7QUFDSjs7QUFFQTtFQUNJLFVBQUE7QUFDSjs7QUFJQTtFQUNJLFdBQUE7RUFDQSxZQUFBO0FBREo7O0FBSUE7RUFDSSwrQkFBQTtFQUNBLGlCQUFBO0FBREo7O0FBS0E7RUFDSSxvQ0FBQTtBQUZKIiwiZmlsZSI6ImludmVudG9yeS1yZWFsdGltZS5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi53LTEwIHtcclxuICAgIHdpZHRoOjEwJTtcclxufVxyXG5cclxuLnctMjAge1xyXG4gICAgd2lkdGg6MjAlO1xyXG59XHJcblxyXG5cclxuXHJcbi53LWltZyB7XHJcbiAgICB3aWR0aDo0MHB4O1xyXG4gICAgaGVpZ2h0OjQwcHg7XHJcbn1cclxuXHJcbi5pdGVtLW5hbWUge1xyXG4gICAgbWFyZ2luLWJvdHRvbTogLTE0cHghaW1wb3J0YW50O1xyXG4gICAgZm9udC1zaXplOiBsYXJnZXI7XHJcbn1cclxuXHJcblxyXG4uY2VsbC1ob3Zlcjpob3ZlciB7XHJcbiAgICBiYWNrZ3JvdW5kLWNvbG9yOiAjYzljOWM5IWltcG9ydGFudDtcclxufSJdfQ== */"] });
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
/***/ }),
|
|
906
|
+
|
|
907
|
+
/***/ 9902:
|
|
908
|
+
/*!************************************************************!*\
|
|
909
|
+
!*** ./src/app/menu/inventory/inventory-routing.module.ts ***!
|
|
910
|
+
\************************************************************/
|
|
911
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
912
|
+
|
|
913
|
+
__webpack_require__.r(__webpack_exports__);
|
|
914
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
915
|
+
/* harmony export */ "InventoryRoutingModule": () => (/* binding */ InventoryRoutingModule)
|
|
916
|
+
/* harmony export */ });
|
|
917
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
918
|
+
/* harmony import */ var _inventory_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inventory.component */ 9306);
|
|
919
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124);
|
|
920
|
+
/* harmony import */ var _inventory_pos_inventory_pos_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inventory-pos/inventory-pos.component */ 8673);
|
|
921
|
+
/* harmony import */ var _inventory_realtime_inventory_realtime_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inventory-realtime/inventory-realtime.component */ 5909);
|
|
922
|
+
/* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
|
|
923
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
|
|
927
|
+
|
|
928
|
+
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
const routes = [
|
|
933
|
+
{
|
|
934
|
+
path: "",
|
|
935
|
+
component: _inventory_component__WEBPACK_IMPORTED_MODULE_0__.InventoryComponent,
|
|
936
|
+
children: [
|
|
937
|
+
{
|
|
938
|
+
path: "",
|
|
939
|
+
redirectTo: "bychannel",
|
|
940
|
+
pathMatch: "full",
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
path: "pos",
|
|
944
|
+
component: _inventory_pos_inventory_pos_component__WEBPACK_IMPORTED_MODULE_1__.InventoryPosComponent,
|
|
945
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_3__.AuthGuard],
|
|
946
|
+
data: { title: "Inventory Comparison" },
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
path: "bychannel",
|
|
950
|
+
component: _inventory_realtime_inventory_realtime_component__WEBPACK_IMPORTED_MODULE_2__.InventoryRealtimeComponent,
|
|
951
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_3__.AuthGuard],
|
|
952
|
+
data: { title: "Inventory Comparison" },
|
|
953
|
+
},
|
|
954
|
+
],
|
|
955
|
+
},
|
|
956
|
+
];
|
|
957
|
+
class InventoryRoutingModule {
|
|
958
|
+
}
|
|
959
|
+
InventoryRoutingModule.ɵfac = function InventoryRoutingModule_Factory(t) { return new (t || InventoryRoutingModule)(); };
|
|
960
|
+
InventoryRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineNgModule"]({ type: InventoryRoutingModule });
|
|
961
|
+
InventoryRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule,
|
|
962
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule.forChild(routes)] });
|
|
963
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵsetNgModuleScope"](InventoryRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterModule] }); })();
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
/***/ }),
|
|
967
|
+
|
|
968
|
+
/***/ 9306:
|
|
969
|
+
/*!*******************************************************!*\
|
|
970
|
+
!*** ./src/app/menu/inventory/inventory.component.ts ***!
|
|
971
|
+
\*******************************************************/
|
|
972
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
973
|
+
|
|
974
|
+
__webpack_require__.r(__webpack_exports__);
|
|
975
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
976
|
+
/* harmony export */ "InventoryComponent": () => (/* binding */ InventoryComponent)
|
|
977
|
+
/* harmony export */ });
|
|
978
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
979
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
|
|
980
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
class InventoryComponent {
|
|
985
|
+
constructor() {
|
|
986
|
+
this.inventoryTabs = [
|
|
987
|
+
{ Title: 'Single Channel Comparison', Url: '/menu/inventory/bychannel' },
|
|
988
|
+
{ Title: 'Multi Channel Comparison', Url: '/menu/inventory/pos' }
|
|
989
|
+
];
|
|
990
|
+
}
|
|
991
|
+
ngOnInit() {
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
InventoryComponent.ɵfac = function InventoryComponent_Factory(t) { return new (t || InventoryComponent)(); };
|
|
995
|
+
InventoryComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: InventoryComponent, selectors: [["app-inventory"]], decls: 5, vars: 1, consts: [[1, "navbar", "page-nav", "navbar-default", "py-0", "navbar-expand-lg"], [1, "container-fluid"], [3, "Tabs"]], template: function InventoryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
996
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
|
|
997
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
|
|
998
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
|
|
999
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
|
|
1000
|
+
} if (rf & 2) {
|
|
1001
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
|
|
1002
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.inventoryTabs);
|
|
1003
|
+
} }, dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet, _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__.NavTabComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbnZlbnRvcnkuY29tcG9uZW50LnNjc3MifQ== */"] });
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
/***/ }),
|
|
1007
|
+
|
|
1008
|
+
/***/ 4077:
|
|
1009
|
+
/*!****************************************************!*\
|
|
1010
|
+
!*** ./src/app/menu/inventory/inventory.module.ts ***!
|
|
1011
|
+
\****************************************************/
|
|
1012
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1013
|
+
|
|
1014
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1015
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1016
|
+
/* harmony export */ "InventoryModule": () => (/* binding */ InventoryModule)
|
|
1017
|
+
/* harmony export */ });
|
|
1018
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
1019
|
+
/* harmony import */ var _inventory_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./inventory.component */ 9306);
|
|
1020
|
+
/* harmony import */ var _inventory_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./inventory-routing.module */ 9902);
|
|
1021
|
+
/* harmony import */ var _inventory_realtime_inventory_realtime_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./inventory-realtime/inventory-realtime.component */ 5909);
|
|
1022
|
+
/* harmony import */ var _inventory_pos_inventory_pos_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inventory-pos/inventory-pos.component */ 8673);
|
|
1023
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 124);
|
|
1024
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
1025
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
1026
|
+
/* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
|
|
1027
|
+
/* harmony import */ var _angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/material/slide-toggle */ 4714);
|
|
1028
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
|
|
1029
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
|
|
1038
|
+
|
|
1039
|
+
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
class InventoryModule {
|
|
1043
|
+
}
|
|
1044
|
+
InventoryModule.ɵfac = function InventoryModule_Factory(t) { return new (t || InventoryModule)(); };
|
|
1045
|
+
InventoryModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineNgModule"]({ type: InventoryModule });
|
|
1046
|
+
InventoryModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule,
|
|
1047
|
+
_inventory_routing_module__WEBPACK_IMPORTED_MODULE_1__.InventoryRoutingModule,
|
|
1048
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule,
|
|
1049
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_4__.NavTabModule,
|
|
1050
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule,
|
|
1051
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__.NgSelectModule,
|
|
1052
|
+
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_11__.MatSlideToggleModule,
|
|
1053
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_5__.MainPanelModule] });
|
|
1054
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_6__["ɵɵsetNgModuleScope"](InventoryModule, { declarations: [_inventory_component__WEBPACK_IMPORTED_MODULE_0__.InventoryComponent,
|
|
1055
|
+
_inventory_realtime_inventory_realtime_component__WEBPACK_IMPORTED_MODULE_2__.InventoryRealtimeComponent,
|
|
1056
|
+
_inventory_pos_inventory_pos_component__WEBPACK_IMPORTED_MODULE_3__.InventoryPosComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_7__.CommonModule,
|
|
1057
|
+
_inventory_routing_module__WEBPACK_IMPORTED_MODULE_1__.InventoryRoutingModule,
|
|
1058
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule,
|
|
1059
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_4__.NavTabModule,
|
|
1060
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule,
|
|
1061
|
+
_ng_select_ng_select__WEBPACK_IMPORTED_MODULE_10__.NgSelectModule,
|
|
1062
|
+
_angular_material_slide_toggle__WEBPACK_IMPORTED_MODULE_11__.MatSlideToggleModule,
|
|
1063
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_5__.MainPanelModule] }); })();
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
/***/ })
|
|
1067
|
+
|
|
1068
|
+
}]);
|
|
1069
|
+
//# sourceMappingURL=src_app_menu_inventory_inventory_module_ts.js.map
|