marketplacepos 2.2.5 → 2.2.8

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.
Files changed (45) hide show
  1. package/Marketplace/common.js +46 -0
  2. package/Marketplace/common.js.map +1 -0
  3. 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
  4. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
  5. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +797 -0
  6. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +1 -0
  7. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +4632 -0
  8. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +1 -0
  9. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +6836 -0
  10. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +1 -0
  11. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +722 -0
  12. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +1 -0
  13. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19951 -0
  14. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
  15. package/Marketplace/index.html +2 -2
  16. package/Marketplace/main.js +161 -161
  17. package/Marketplace/main.js.map +1 -1
  18. package/Marketplace/runtime.js +1 -1
  19. package/Marketplace/runtime.js.map +1 -1
  20. package/Marketplace/src_app_login_login_module_ts.js +3 -3
  21. package/Marketplace/src_app_login_login_module_ts.js.map +1 -1
  22. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +1060 -0
  23. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
  24. package/Marketplace/src_app_menu_channels_channels_module_ts.js +9710 -0
  25. package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
  26. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1069 -0
  27. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
  28. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +232 -0
  29. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
  30. package/Marketplace/src_app_menu_menu_module_ts.js +27869 -86265
  31. package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -1
  32. package/Marketplace/src_app_menu_notification_notification_module_ts.js +192 -0
  33. package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +1 -0
  34. package/Marketplace/src_app_menu_object-log_logs_module_ts.js +1997 -0
  35. package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +1 -0
  36. package/Marketplace/src_app_menu_orders_orders_module_ts.js +2449 -0
  37. package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
  38. package/Marketplace/src_app_menu_price_price_module_ts.js +1713 -0
  39. package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
  40. package/Marketplace/src_app_menu_products_product_module_ts.js +2196 -0
  41. package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
  42. package/Marketplace/styles.css +3 -0
  43. package/Marketplace/styles.css.map +1 -1
  44. package/package.json +1 -1
  45. package/Marketplace/default-src_app_services_checkbrowser_service_ts-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
@@ -0,0 +1,2449 @@
1
+ "use strict";
2
+ (self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_orders_orders_module_ts"],{
3
+
4
+ /***/ 1144:
5
+ /*!**************************************************************!*\
6
+ !*** ./src/app/menu/orders/all-order/all-order.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 */ "AllOrderComponent": () => (/* binding */ AllOrderComponent)
13
+ /* harmony export */ });
14
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
15
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
16
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
17
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
18
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
19
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124);
20
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
21
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+ const _c0 = function () { return ["/menu/Order/detail"]; };
31
+ const _c1 = function (a0, a1) { return { Number: a0, Outlet: a1 }; };
32
+ function AllOrderComponent_tr_36_Template(rf, ctx) { if (rf & 1) {
33
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td");
34
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
35
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
36
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td")(4, "a", 13);
37
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
38
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
39
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "td");
40
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
41
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
42
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "td");
43
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
44
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](10, "number");
45
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
46
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td");
47
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
48
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "date");
49
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
50
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "td");
51
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15);
52
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
53
+ } if (rf & 2) {
54
+ const item_r1 = ctx.$implicit;
55
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
56
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
57
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
58
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](13, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](14, _c1, item_r1.Number, item_r1.Outlet));
59
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
60
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
61
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
62
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
63
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
64
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](10, 8, item_r1.Amount));
65
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
66
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](13, 10, item_r1.Created, "dd MMM yyyy HH:mm"));
67
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
68
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.State);
69
+ } }
70
+ class AllOrderComponent {
71
+ constructor(http) {
72
+ this.http = http;
73
+ this.filter = {
74
+ PageNumber: null,
75
+ PageSize: null
76
+ };
77
+ this.totaldata = 0;
78
+ this.paginationTotal = 0;
79
+ }
80
+ ngOnInit() {
81
+ this.Load();
82
+ }
83
+ Load() {
84
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
85
+ this.filter.PageNumber = result.Filter.PageNumber;
86
+ this.filter.PageSize = result.Filter.RowCount;
87
+ this.outlets = result.Options.Outlet;
88
+ this.Get();
89
+ });
90
+ }
91
+ Get(event) {
92
+ var params = {
93
+ Number: event,
94
+ PageNumber: this.filter.PageNumber,
95
+ PageSize: this.filter.PageSize,
96
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
97
+ };
98
+ this.http.post('api/orders/GetAll ', params).subscribe(result => {
99
+ this.data = result.Data;
100
+ this.totaldata = this.data.length;
101
+ });
102
+ }
103
+ changePage(pageEvent) {
104
+ this.filter = pageEvent;
105
+ this.Get();
106
+ }
107
+ StoreRowsCountAPIResult() {
108
+ var params = {
109
+ PaymentState: "",
110
+ DeliveryState: "",
111
+ Bin: false,
112
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
113
+ };
114
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
115
+ this.paginationTotal = result.Total;
116
+ });
117
+ }
118
+ NextPage() {
119
+ this.filter.PageNumber = this.filter.PageNumber + 1;
120
+ this.Get();
121
+ }
122
+ PreviousPage() {
123
+ this.filter.PageNumber = this.filter.PageNumber - 1;
124
+ this.Get();
125
+ }
126
+ }
127
+ AllOrderComponent.ɵfac = function AllOrderComponent_Factory(t) { return new (t || AllOrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
128
+ AllOrderComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: AllOrderComponent, selectors: [["app-all-order"]], decls: 38, vars: 10, consts: [["searchBoxPlaceHolder", "Search Orders...", 3, "Title", "onSubmit"], ["container", "", 1, ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"], [3, "routerLink", "queryParams"]], template: function AllOrderComponent_Template(rf, ctx) { if (rf & 1) {
129
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
130
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function AllOrderComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
131
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
132
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
133
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
134
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
135
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function AllOrderComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
136
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
137
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
138
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
139
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
140
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
141
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function AllOrderComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
142
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
143
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
144
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
145
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
146
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
147
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function AllOrderComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
148
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
149
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "content")(16, "div", 5)(17, "div", 6)(18, "div", 7)(19, "div", 8)(20, "table", 9)(21, "thead")(22, "tr", 10)(23, "th");
150
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Outlet");
151
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
152
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "th");
153
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Order number");
154
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
155
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "th");
156
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Customer");
157
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
158
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "th");
159
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Amount");
160
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
161
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "th");
162
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Created On");
163
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
164
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "th");
165
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](34, "Status");
166
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
167
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "tbody");
168
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](36, AllOrderComponent_tr_36_Template, 16, 17, "tr", 11);
169
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
170
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](37, "app-mat-paginator-no-count", 12);
171
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function AllOrderComponent_Template_app_mat_paginator_no_count_total_37_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function AllOrderComponent_Template_app_mat_paginator_no_count_next_37_listener() { return ctx.NextPage(); })("previous", function AllOrderComponent_Template_app_mat_paginator_no_count_previous_37_listener() { return ctx.PreviousPage(); });
172
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
173
+ } if (rf & 2) {
174
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "All");
175
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
176
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
177
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
178
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
179
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
180
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
181
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](22);
182
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
183
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
184
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
185
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterLinkWithHref, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJhbGwtb3JkZXIuY29tcG9uZW50LnNjc3MifQ== */"] });
186
+
187
+
188
+ /***/ }),
189
+
190
+ /***/ 4632:
191
+ /*!**************************************************************!*\
192
+ !*** ./src/app/menu/orders/cancelled/cancelled.component.ts ***!
193
+ \**************************************************************/
194
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
195
+
196
+ __webpack_require__.r(__webpack_exports__);
197
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
198
+ /* harmony export */ "CancelledComponent": () => (/* binding */ CancelledComponent)
199
+ /* harmony export */ });
200
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
201
+ /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
202
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
203
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
204
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
205
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124);
206
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
207
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+ const _c0 = function () { return ["/menu/Order/detail"]; };
217
+ const _c1 = function (a0, a1) { return { Number: a0, Outlet: a1 }; };
218
+ function CancelledComponent_tr_34_Template(rf, ctx) { if (rf & 1) {
219
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td");
220
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
221
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
222
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td")(4, "a", 13);
223
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
224
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
225
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "td");
226
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
227
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
228
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "td");
229
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
230
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](10, "number");
231
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
232
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td");
233
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
234
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "date");
235
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
236
+ } if (rf & 2) {
237
+ const item_r1 = ctx.$implicit;
238
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
239
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
240
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
241
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](12, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](13, _c1, item_r1.Number, item_r1.Outlet));
242
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
243
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
244
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
245
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
246
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
247
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](10, 7, item_r1.Amount));
248
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
249
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](13, 9, item_r1.Created, "dd MMM yyyy HH:mm"));
250
+ } }
251
+ class CancelledComponent {
252
+ constructor(http) {
253
+ this.http = http;
254
+ this.filter = {
255
+ PageNumber: null,
256
+ PageSize: null
257
+ };
258
+ this.totaldata = 0;
259
+ this.paginationTotal = 0;
260
+ }
261
+ ngOnInit() {
262
+ this.Load();
263
+ }
264
+ Load() {
265
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
266
+ this.filter.PageNumber = result.Filter.PageNumber;
267
+ this.filter.PageSize = result.Filter.RowCount;
268
+ this.outlets = result.Options.Outlet;
269
+ this.Get();
270
+ });
271
+ }
272
+ Get(event) {
273
+ var params = {
274
+ Number: event,
275
+ PageNumber: this.filter.PageNumber,
276
+ PageSize: this.filter.PageSize,
277
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
278
+ };
279
+ this.http.post('api/orders/GetCancelled ', params).subscribe(result => {
280
+ this.data = result.Data;
281
+ this.totaldata = this.data.length;
282
+ });
283
+ }
284
+ changePage(pageEvent) {
285
+ this.filter.PageNumber = pageEvent.pageIndex + 1;
286
+ this.Get();
287
+ }
288
+ StoreRowsCountAPIResult() {
289
+ var params = {
290
+ PaymentState: "",
291
+ DeliveryState: "",
292
+ Bin: true,
293
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
294
+ };
295
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
296
+ this.paginationTotal = result.Total;
297
+ });
298
+ }
299
+ NextPage() {
300
+ this.filter.PageNumber = this.filter.PageNumber + 1;
301
+ this.Get();
302
+ }
303
+ PreviousPage() {
304
+ this.filter.PageNumber = this.filter.PageNumber - 1;
305
+ this.Get();
306
+ }
307
+ }
308
+ CancelledComponent.ɵfac = function CancelledComponent_Factory(t) { return new (t || CancelledComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
309
+ CancelledComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: CancelledComponent, selectors: [["app-cancelled"]], decls: 36, vars: 10, consts: [["searchBoxPlaceHolder", "Search Orders...", 3, "Title", "onSubmit"], ["container", "", 1, ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"], [3, "routerLink", "queryParams"]], template: function CancelledComponent_Template(rf, ctx) { if (rf & 1) {
310
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
311
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function CancelledComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
312
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
313
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
314
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
315
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
316
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function CancelledComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
317
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
318
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
319
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
320
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
321
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
322
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function CancelledComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
323
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
324
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
325
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
326
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
327
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
328
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function CancelledComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
329
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
330
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "content")(16, "div", 5)(17, "div", 6)(18, "div", 7)(19, "div", 8)(20, "table", 9)(21, "thead")(22, "tr", 10)(23, "th");
331
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Outlet");
332
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
333
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "th");
334
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Order number");
335
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
336
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "th");
337
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Customer");
338
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
339
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "th");
340
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Amount");
341
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
342
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "th");
343
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Created On");
344
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
345
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "tbody");
346
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](34, CancelledComponent_tr_34_Template, 14, 16, "tr", 11);
347
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
348
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "app-mat-paginator-no-count", 12);
349
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function CancelledComponent_Template_app_mat_paginator_no_count_total_35_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function CancelledComponent_Template_app_mat_paginator_no_count_next_35_listener() { return ctx.NextPage(); })("previous", function CancelledComponent_Template_app_mat_paginator_no_count_previous_35_listener() { return ctx.PreviousPage(); });
350
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
351
+ } if (rf & 2) {
352
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "99 - Cancelled");
353
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
354
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
355
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
356
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
357
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
358
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
359
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](20);
360
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
361
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
362
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
363
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterLinkWithHref, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjYW5jZWxsZWQuY29tcG9uZW50LnNjc3MifQ== */"] });
364
+
365
+
366
+ /***/ }),
367
+
368
+ /***/ 8474:
369
+ /*!**************************************************************!*\
370
+ !*** ./src/app/menu/orders/delivered/delivered.component.ts ***!
371
+ \**************************************************************/
372
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
373
+
374
+ __webpack_require__.r(__webpack_exports__);
375
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
376
+ /* harmony export */ "DeliveredComponent": () => (/* binding */ DeliveredComponent)
377
+ /* harmony export */ });
378
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
379
+ /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
380
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
381
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
382
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
383
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124);
384
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
385
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
386
+
387
+
388
+
389
+
390
+
391
+
392
+
393
+
394
+ const _c0 = function () { return ["/menu/Order/detail"]; };
395
+ const _c1 = function (a0, a1) { return { Number: a0, Outlet: a1 }; };
396
+ function DeliveredComponent_tr_34_Template(rf, ctx) { if (rf & 1) {
397
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td");
398
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
399
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
400
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td")(4, "a", 13);
401
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
402
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
403
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "td");
404
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
405
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
406
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "td");
407
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
408
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](10, "number");
409
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
410
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td");
411
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
412
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "date");
413
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
414
+ } if (rf & 2) {
415
+ const item_r1 = ctx.$implicit;
416
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
417
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
418
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
419
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](12, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](13, _c1, item_r1.Number, item_r1.Outlet));
420
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
421
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
422
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
423
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
424
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
425
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](10, 7, item_r1.Amount));
426
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
427
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](13, 9, item_r1.Created, "dd MMM yyyy HH:mm"));
428
+ } }
429
+ class DeliveredComponent {
430
+ constructor(http) {
431
+ this.http = http;
432
+ this.filter = {
433
+ PageNumber: null,
434
+ PageSize: null
435
+ };
436
+ this.totaldata = 0;
437
+ this.paginationTotal = 0;
438
+ }
439
+ ngOnInit() {
440
+ this.Load();
441
+ }
442
+ Load() {
443
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
444
+ this.filter.PageNumber = result.Filter.PageNumber;
445
+ this.filter.PageSize = result.Filter.RowCount;
446
+ this.outlets = result.Options.Outlet;
447
+ this.Get();
448
+ });
449
+ }
450
+ Get(event) {
451
+ var params = {
452
+ Number: event,
453
+ PageNumber: this.filter.PageNumber,
454
+ PageSize: this.filter.PageSize,
455
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
456
+ };
457
+ this.http.post('api/orders/GetDelivered ', params).subscribe(result => {
458
+ this.data = result.Data;
459
+ this.totaldata = this.data.length;
460
+ });
461
+ }
462
+ changePage(pageEvent) {
463
+ this.filter.PageNumber = pageEvent.pageIndex + 1;
464
+ this.Get();
465
+ }
466
+ StoreRowsCountAPIResult() {
467
+ var params = {
468
+ PaymentState: "Paid",
469
+ DeliveryState: "Sent",
470
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
471
+ };
472
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
473
+ this.paginationTotal = result.Total;
474
+ });
475
+ }
476
+ NextPage() {
477
+ this.filter.PageNumber = this.filter.PageNumber + 1;
478
+ this.Get();
479
+ }
480
+ PreviousPage() {
481
+ this.filter.PageNumber = this.filter.PageNumber - 1;
482
+ this.Get();
483
+ }
484
+ }
485
+ DeliveredComponent.ɵfac = function DeliveredComponent_Factory(t) { return new (t || DeliveredComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
486
+ DeliveredComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: DeliveredComponent, selectors: [["app-delivered"]], decls: 36, vars: 11, consts: [["searchBoxPlaceHolder", "Search Orders...", 3, "Title", "hideSearchBox", "onSubmit"], ["container", "", 1, ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"], [3, "routerLink", "queryParams"]], template: function DeliveredComponent_Template(rf, ctx) { if (rf & 1) {
487
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
488
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function DeliveredComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
489
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
490
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
491
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
492
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
493
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function DeliveredComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
494
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
495
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
496
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
497
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
498
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
499
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function DeliveredComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
500
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
501
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
502
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
503
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
504
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
505
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function DeliveredComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
506
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
507
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "content")(16, "div", 5)(17, "div", 6)(18, "div", 7)(19, "div", 8)(20, "table", 9)(21, "thead")(22, "tr", 10)(23, "th");
508
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Outlet");
509
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
510
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "th");
511
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Order number");
512
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
513
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "th");
514
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Customer");
515
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
516
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "th");
517
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Amount");
518
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
519
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "th");
520
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Created On");
521
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
522
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "tbody");
523
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](34, DeliveredComponent_tr_34_Template, 14, 16, "tr", 11);
524
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
525
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "app-mat-paginator-no-count", 12);
526
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function DeliveredComponent_Template_app_mat_paginator_no_count_total_35_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function DeliveredComponent_Template_app_mat_paginator_no_count_next_35_listener() { return ctx.NextPage(); })("previous", function DeliveredComponent_Template_app_mat_paginator_no_count_previous_35_listener() { return ctx.PreviousPage(); });
527
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
528
+ } if (rf & 2) {
529
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "4 - Completed")("hideSearchBox", true);
530
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
531
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
532
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
533
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
534
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
535
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
536
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](20);
537
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
538
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
539
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
540
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterLinkWithHref, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJkZWxpdmVyZWQuY29tcG9uZW50LnNjc3MifQ== */"] });
541
+
542
+
543
+ /***/ }),
544
+
545
+ /***/ 9241:
546
+ /*!********************************************************************!*\
547
+ !*** ./src/app/menu/orders/detail-order/detail-order.component.ts ***!
548
+ \********************************************************************/
549
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
550
+
551
+ __webpack_require__.r(__webpack_exports__);
552
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
553
+ /* harmony export */ "DetailOrderComponent": () => (/* binding */ DetailOrderComponent)
554
+ /* harmony export */ });
555
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
556
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
557
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 124);
558
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
559
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
560
+
561
+
562
+
563
+
564
+
565
+ function DetailOrderComponent_tr_72_Template(rf, ctx) { if (rf & 1) {
566
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr")(1, "td");
567
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
568
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
569
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
570
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
571
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](5, "number");
572
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
573
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
574
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7);
575
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](8, "number");
576
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
577
+ } if (rf & 2) {
578
+ const item_r1 = ctx.$implicit;
579
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
580
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r1.Code);
581
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
582
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](5, 3, item_r1.Quantity));
583
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
584
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](8, 5, item_r1.Price));
585
+ } }
586
+ const _c0 = function () { return ["/menu/Order"]; };
587
+ class DetailOrderComponent {
588
+ constructor(http, url) {
589
+ this.http = http;
590
+ this.url = url;
591
+ this.number = this.url.snapshot.queryParams.Number;
592
+ this.outlet = this.url.snapshot.queryParams.Outlet;
593
+ }
594
+ ngOnInit() {
595
+ this.Load();
596
+ }
597
+ Load() {
598
+ var obj = {
599
+ Number: this.number,
600
+ Outlet: this.outlet
601
+ };
602
+ this.http.post('/api/orders/GetInvoiceDetail', obj).subscribe(result => {
603
+ this.model = result;
604
+ });
605
+ }
606
+ }
607
+ DetailOrderComponent.ɵfac = function DetailOrderComponent_Factory(t) { return new (t || DetailOrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.ActivatedRoute)); };
608
+ DetailOrderComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: DetailOrderComponent, selectors: [["app-detail-order"]], decls: 73, vars: 20, consts: [[3, "Title", "hideSearchBox", "hideSearchDropdown"], ["role", "button", 1, "btn", "btn-secondary", "btn-fill", "btn-lg", "me-3", 3, "routerLink"], [1, "container"], [1, "row"], [1, "col-4"], [1, "border", "my-3", "py-3", "col-12"], [1, "row", "m-2"], [1, "text-center"], [1, "col"], [1, "col-8"], [1, "text-center", "my-3", "py-3"], [1, "table-responsive"], [1, "table"], [1, "table-light"], [4, "ngFor", "ngForOf"]], template: function DetailOrderComponent_Template(rf, ctx) { if (rf & 1) {
609
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mainpanel", 0)(1, "actions")(2, "a", 1);
610
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Back");
611
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
612
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "content")(5, "div", 2)(6, "div", 3)(7, "div", 4)(8, "div", 5)(9, "div", 6)(10, "h3", 7);
613
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Outlet Info");
614
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
615
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 3)(13, "div", 8);
616
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, " Outlet : ");
617
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
618
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "div", 8);
619
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16);
620
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
621
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 3)(18, "div", 8);
622
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](19, " Date : ");
623
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
624
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "div", 8);
625
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21);
626
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](22, "date");
627
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
628
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](23, "div", 3)(24, "div", 8);
629
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, " Status : ");
630
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
631
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div", 8);
632
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27);
633
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
634
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "div", 3)(29, "div", 8);
635
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](30, " Tax Type : ");
636
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
637
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "div", 8);
638
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32);
639
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
640
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div", 3)(34, "div", 8);
641
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35, " Due Date : ");
642
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
643
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 8);
644
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](37);
645
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](38, "date");
646
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
647
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](39, "div", 5)(40, "div", 6)(41, "h3", 7);
648
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42, "Customer Info");
649
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
650
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 3)(44, "div", 8);
651
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](45, " Name : ");
652
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
653
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](46, "div", 8);
654
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](47);
655
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
656
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](48, "div", 3)(49, "div", 8);
657
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](50, " Email : ");
658
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
659
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](51, "div", 8);
660
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](52);
661
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
662
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](53, "div", 3)(54, "div", 8);
663
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](55, " Mobile : ");
664
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
665
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](56, "div", 8);
666
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](57);
667
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
668
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](58, "div", 9)(59, "h3", 10);
669
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](60, "Products Sold");
670
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
671
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](61, "div", 11)(62, "table", 12)(63, "thead")(64, "tr", 13)(65, "th");
672
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](66, "Code");
673
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
674
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](67, "th");
675
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](68, "Quantity");
676
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
677
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "th");
678
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](70, "Price");
679
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
680
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "tbody");
681
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](72, DetailOrderComponent_tr_72_Template, 9, 7, "tr", 14);
682
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()()()()();
683
+ } if (rf & 2) {
684
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("Title", "Order #" + ctx.number)("hideSearchBox", true)("hideSearchDropdown", true);
685
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
686
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction0"](19, _c0));
687
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](14);
688
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.Outlet, " ");
689
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
690
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](22, 13, ctx.model.Date, "dd MMM yyyy"), " ");
691
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
692
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.Delivery, " ");
693
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
694
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.TaxType, " ");
695
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
696
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](38, 16, ctx.model.DueDate, "dd MMM yyyy"), " ");
697
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
698
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.Customer.Name, " ");
699
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
700
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.Customer.Email, " ");
701
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
702
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", ctx.model.Customer.Mobile, " ");
703
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](15);
704
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.model.Variants);
705
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterLinkWithHref, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJkZXRhaWwtb3JkZXIuY29tcG9uZW50LnNjc3MifQ== */"] });
706
+
707
+
708
+ /***/ }),
709
+
710
+ /***/ 7633:
711
+ /*!************************************************************!*\
712
+ !*** ./src/app/menu/orders/download/download.component.ts ***!
713
+ \************************************************************/
714
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
715
+
716
+ __webpack_require__.r(__webpack_exports__);
717
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
718
+ /* harmony export */ "DownloadComponent": () => (/* binding */ DownloadComponent)
719
+ /* harmony export */ });
720
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
721
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
722
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ngx-toastr */ 4817);
723
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
724
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 124);
725
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
726
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
727
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
728
+ /* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/datepicker */ 2298);
729
+
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+ function DownloadComponent_button_2_Template(rf, ctx) {
740
+ if (rf & 1) {
741
+ const _r6 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
742
+
743
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 8);
744
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_button_2_Template_button_click_0_listener() {
745
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r6);
746
+ const ctx_r5 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
747
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r5.preview());
748
+ });
749
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 9);
750
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Preview");
751
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
752
+ }
753
+ }
754
+
755
+ function DownloadComponent_button_3_Template(rf, ctx) {
756
+ if (rf & 1) {
757
+ const _r8 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
758
+
759
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "button", 10);
760
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_button_3_Template_button_click_0_listener() {
761
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r8);
762
+ const ctx_r7 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
763
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r7.download());
764
+ });
765
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 11);
766
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2, " Download ");
767
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
768
+ }
769
+ }
770
+
771
+ function DownloadComponent_div_9_ng_option_9_Template(rf, ctx) {
772
+ if (rf & 1) {
773
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ng-option", 25);
774
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "img", 26);
775
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
776
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
777
+ }
778
+
779
+ if (rf & 2) {
780
+ const c_r11 = ctx.$implicit;
781
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("value", c_r11.ID);
782
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
783
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate"]("src", c_r11.Img, _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsanitizeUrl"]);
784
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
785
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](c_r11.Name);
786
+ }
787
+ }
788
+
789
+ function DownloadComponent_div_9_Template(rf, ctx) {
790
+ if (rf & 1) {
791
+ const _r13 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
792
+
793
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 12)(1, "div", 13)(2, "div", 12)(3, "div", 14)(4, "div")(5, "label", 15)(6, "h5");
794
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Select a Channel");
795
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
796
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "ng-select", 16);
797
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DownloadComponent_div_9_Template_ng_select_ngModelChange_8_listener($event) {
798
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13);
799
+ const ctx_r12 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
800
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r12.ChannelID = $event);
801
+ });
802
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, DownloadComponent_div_9_ng_option_9_Template, 3, 3, "ng-option", 17);
803
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
804
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "div", 18)(11, "div", 19)(12, "label", 20)(13, "h5");
805
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14, "Enter date range ");
806
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](15, "small");
807
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](16, "(Maximum two weeks)");
808
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
809
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](17, "div", 19)(18, "mat-date-range-input", 21)(19, "input", 22);
810
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DownloadComponent_div_9_Template_input_ngModelChange_19_listener($event) {
811
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13);
812
+ const ctx_r14 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
813
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r14.startDate = $event);
814
+ })("click", function DownloadComponent_div_9_Template_input_click_19_listener() {
815
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13);
816
+
817
+ const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](22);
818
+
819
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](_r10.open());
820
+ });
821
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
822
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "input", 23);
823
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("ngModelChange", function DownloadComponent_div_9_Template_input_ngModelChange_20_listener($event) {
824
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13);
825
+ const ctx_r16 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
826
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r16.endDate = $event);
827
+ })("click", function DownloadComponent_div_9_Template_input_click_20_listener() {
828
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r13);
829
+
830
+ const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](22);
831
+
832
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](_r10.open());
833
+ });
834
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
835
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](21, "mat-date-range-picker", null, 24);
836
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
837
+ }
838
+
839
+ if (rf & 2) {
840
+ const _r10 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵreference"](22);
841
+
842
+ const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
843
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
844
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("clearable", false)("ngModel", ctx_r2.ChannelID);
845
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
846
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r2.Channel);
847
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
848
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("rangePicker", _r10);
849
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
850
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r2.startDate);
851
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
852
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngModel", ctx_r2.endDate);
853
+ }
854
+ }
855
+
856
+ const _c0 = function (a0) {
857
+ return {
858
+ "over-due": a0
859
+ };
860
+ };
861
+
862
+ function DownloadComponent_div_10_tr_13_Template(rf, ctx) {
863
+ if (rf & 1) {
864
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr", 33)(1, "td");
865
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
866
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
867
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
868
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
869
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
870
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
871
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
872
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
873
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "td");
874
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](8);
875
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
876
+ }
877
+
878
+ if (rf & 2) {
879
+ const order_r19 = ctx.$implicit;
880
+ const i_r20 = ctx.index;
881
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction1"](5, _c0, order_r19.Exception));
882
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
883
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r20 + 1);
884
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
885
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r19.Number);
886
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
887
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r19.Status);
888
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
889
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](order_r19.Exception);
890
+ }
891
+ }
892
+
893
+ function DownloadComponent_div_10_Template(rf, ctx) {
894
+ if (rf & 1) {
895
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 27)(1, "div", 28)(2, "table", 29)(3, "thead", 30)(4, "tr");
896
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "th", 31);
897
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "th");
898
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7, "Order Number");
899
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
900
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "th");
901
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9, "Status");
902
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
903
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "th");
904
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Exception");
905
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
906
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "tbody");
907
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](13, DownloadComponent_div_10_tr_13_Template, 9, 7, "tr", 32);
908
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
909
+ }
910
+
911
+ if (rf & 2) {
912
+ const ctx_r3 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
913
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](13);
914
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r3.infodownload);
915
+ }
916
+ }
917
+
918
+ function DownloadComponent_div_11_tr_32_span_17_Template(rf, ctx) {
919
+ if (rf & 1) {
920
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span");
921
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
922
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
923
+ }
924
+
925
+ if (rf & 2) {
926
+ const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
927
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
928
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"](" ", item_r22.ActionString, " ");
929
+ }
930
+ }
931
+
932
+ function DownloadComponent_div_11_tr_32_ul_18_li_1_Template(rf, ctx) {
933
+ if (rf & 1) {
934
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "li");
935
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1);
936
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
937
+ }
938
+
939
+ if (rf & 2) {
940
+ const action_r29 = ctx.$implicit;
941
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
942
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](action_r29);
943
+ }
944
+ }
945
+
946
+ function DownloadComponent_div_11_tr_32_ul_18_Template(rf, ctx) {
947
+ if (rf & 1) {
948
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "ul", 45);
949
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](1, DownloadComponent_div_11_tr_32_ul_18_li_1_Template, 2, 1, "li", 41);
950
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
951
+ }
952
+
953
+ if (rf & 2) {
954
+ const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
955
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
956
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", item_r22.ActionString);
957
+ }
958
+ }
959
+
960
+ function DownloadComponent_div_11_tr_32_span_20_Template(rf, ctx) {
961
+ if (rf & 1) {
962
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "span", 46);
963
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "i", 47);
964
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
965
+ }
966
+
967
+ if (rf & 2) {
968
+ const item_r22 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]().$implicit;
969
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpropertyInterpolate2"]("title", "Delivery : ", item_r22.DeliveryState, " \nPayment : ", item_r22.PaymentState, "");
970
+ }
971
+ }
972
+
973
+ const _c1 = function (a0, a1) {
974
+ return {
975
+ "over-due-today": a0,
976
+ "over-due": a1
977
+ };
978
+ };
979
+
980
+ function DownloadComponent_div_11_tr_32_Template(rf, ctx) {
981
+ if (rf & 1) {
982
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr")(1, "td");
983
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](2);
984
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
985
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](3, "td");
986
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](4);
987
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
988
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](5, "td");
989
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
990
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](7, "date");
991
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
992
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "td")(9, "span");
993
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10);
994
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
995
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11);
996
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
997
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "td", 33)(13, "span");
998
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](14);
999
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1000
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15);
1001
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1002
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "td");
1003
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](17, DownloadComponent_div_11_tr_32_span_17_Template, 2, 1, "span", 42);
1004
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](18, DownloadComponent_div_11_tr_32_ul_18_Template, 2, 1, "ul", 43);
1005
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1006
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](19, "td");
1007
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](20, DownloadComponent_div_11_tr_32_span_20_Template, 2, 2, "span", 44);
1008
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1009
+ }
1010
+
1011
+ if (rf & 2) {
1012
+ const item_r22 = ctx.$implicit;
1013
+ const i_r23 = ctx.index;
1014
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1015
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](i_r23 + 1);
1016
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1017
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r22.Number);
1018
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1019
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](7, 11, item_r22.Date, "dd MMM yyyy HH:mm:ss"));
1020
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](4);
1021
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", item_r22.ChannelStatus, " - ");
1022
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1023
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r22.ChannelStatusDescription);
1024
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1025
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpureFunction2"](14, _c1, item_r22.Update, item_r22.Create));
1026
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1027
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("", item_r22.POSStatus, " - ");
1028
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1029
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r22.POSStatusDescription);
1030
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1031
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", item_r22.ActionString.length == 1);
1032
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1033
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", item_r22.ActionString.length > 1);
1034
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1035
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", item_r22.ChannelStatus != 99 && item_r22.POSStatus != 99);
1036
+ }
1037
+ }
1038
+
1039
+ function DownloadComponent_div_11_Template(rf, ctx) {
1040
+ if (rf & 1) {
1041
+ const _r33 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
1042
+
1043
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "div", 12)(1, "div", 28)(2, "div", 34)(3, "ul", 35)(4, "li", 36)(5, "button", 37);
1044
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_div_11_Template_button_click_5_listener() {
1045
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33);
1046
+ const ctx_r32 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1047
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r32.filter("all"));
1048
+ });
1049
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6);
1050
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1051
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "li", 36)(8, "button", 37);
1052
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_div_11_Template_button_click_8_listener() {
1053
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33);
1054
+ const ctx_r34 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1055
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r34.filter("sync"));
1056
+ });
1057
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](9);
1058
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1059
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](10, "li", 36)(11, "button", 37);
1060
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_div_11_Template_button_click_11_listener() {
1061
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33);
1062
+ const ctx_r35 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1063
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r35.filter("wrong"));
1064
+ });
1065
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12);
1066
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1067
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](13, "li", 36)(14, "button", 37);
1068
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_div_11_Template_button_click_14_listener() {
1069
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r33);
1070
+ const ctx_r36 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1071
+ return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r36.filter("unsync"));
1072
+ });
1073
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15);
1074
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1075
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "table", 29)(17, "thead", 30)(18, "tr");
1076
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](19, "th", 31);
1077
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "th", 38);
1078
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](21, "Number");
1079
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1080
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "th", 39);
1081
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](23);
1082
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1083
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](24, "th", 40);
1084
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Channel Status");
1085
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1086
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "th", 40);
1087
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](27, "POS Status");
1088
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1089
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](28, "th");
1090
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](29, "Action");
1091
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1092
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](30, "th", 31);
1093
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1094
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](31, "tbody");
1095
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](32, DownloadComponent_div_11_tr_32_Template, 21, 17, "tr", 41);
1096
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1097
+ }
1098
+
1099
+ if (rf & 2) {
1100
+ const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"]();
1101
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](5);
1102
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r4.pillStatus == "all" ? "btn-secondary text-white" : "btn-outline-dark");
1103
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1104
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("All (", ctx_r4.data.length, ")");
1105
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1106
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r4.pillStatus == "sync" ? "btn-success" : "btn-outline-success");
1107
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1108
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Existing (", ctx_r4.data.length - ctx_r4.updateQty - ctx_r4.createQty, ")");
1109
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1110
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r4.pillStatus == "wrong" ? "btn-warning text-white" : "btn-outline-warning");
1111
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1112
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Wrong Status (", ctx_r4.updateQty, ")");
1113
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1114
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngClass", ctx_r4.pillStatus == "unsync" ? "btn-danger" : "btn-outline-danger");
1115
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1116
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate1"]("Missing (", ctx_r4.createQty, ")");
1117
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
1118
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx_r4.getTypeID() == 0 ? "Last Status Update" : "Created Date");
1119
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](9);
1120
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx_r4.displayData);
1121
+ }
1122
+ }
1123
+
1124
+ class DownloadComponent {
1125
+ constructor(http, toastr, datePipe, url) {
1126
+ this.http = http;
1127
+ this.toastr = toastr;
1128
+ this.datePipe = datePipe;
1129
+ this.url = url;
1130
+ this.ispreview = false;
1131
+ this.isresult = false;
1132
+ this.PageTitle = "Download to POS";
1133
+ this.pillStatus = "all";
1134
+ this.filterfromDashboard = false;
1135
+ this.downloadOrderData = [];
1136
+ this.filterfromDashboard = false;
1137
+ }
1138
+
1139
+ ngOnInit() {
1140
+ this.maxDate = new Date();
1141
+ this.async = true;
1142
+ this.loadChannel();
1143
+ this.url.queryParams.subscribe(m => {
1144
+ this.ChannelID = m.ChannelID;
1145
+ this.startDate = new Date(m.Date);
1146
+ this.endDate = new Date(m.Date);
1147
+ this.async = false;
1148
+ this.filterfromDashboard = true;
1149
+ this.LoadPreview();
1150
+ });
1151
+ } //Function: loadChannel() will get the Channel list
1152
+
1153
+
1154
+ loadChannel() {
1155
+ this.http.post("/api/product/Load", {}).subscribe(result => {
1156
+ this.Channel = result.Options.Channel;
1157
+ });
1158
+ } //Function: getDayDiff() will get the difference between two dates
1159
+ //Source: https://www.geeksforgeeks.org/how-to-calculate-the-number-of-days-between-two-dates-in-javascript/
1160
+
1161
+
1162
+ getDayDiff(dateStart, dateEnd) {
1163
+ var timeDiff = dateEnd.getTime() - dateStart.getTime();
1164
+ var dayDiff = timeDiff / (1000 * 60 * 60 * 24);
1165
+ return dayDiff;
1166
+ } //Function: download() will call the download API with params
1167
+ //If successful, will show success toaster
1168
+
1169
+
1170
+ download() {
1171
+ this.callApi("Download");
1172
+ }
1173
+
1174
+ LoadPreview() {
1175
+ this.async = false;
1176
+ this.filterfromDashboard = false;
1177
+
1178
+ if (!isNaN(this.startDate) && !isNaN(this.endDate)) {
1179
+ this.callApi("Preview");
1180
+ }
1181
+ }
1182
+
1183
+ preview() {
1184
+ this.async = false;
1185
+ this.filterfromDashboard = false;
1186
+
1187
+ if (!isNaN(this.startDate) && !isNaN(this.endDate)) {
1188
+ this.callApi("Preview");
1189
+ } else {
1190
+ this.toastr.warning("please select a date and outlet", "Information");
1191
+ }
1192
+ }
1193
+
1194
+ getTypeID() {
1195
+ var typeID = this.Channel.find(x => x.ID == this.ChannelID).TypeID;
1196
+
1197
+ if (typeID != null) {
1198
+ return typeID;
1199
+ } else return 0;
1200
+ }
1201
+
1202
+ callApi(api) {
1203
+ if (this.ChannelID == null && this.filterfromDashboard) {
1204
+ this.toastr.warning("Channel cannot be empty!", "Failed");
1205
+ return;
1206
+ }
1207
+
1208
+ if (this.startDate == null || this.endDate == null) {
1209
+ this.toastr.warning("Please enter both the start and end dates!", "Failed");
1210
+ return;
1211
+ }
1212
+
1213
+ if (this.getDayDiff(this.startDate, this.endDate) > 14) {
1214
+ this.toastr.warning("Dates cannot be more than 14 days apart!", "Failed");
1215
+ return;
1216
+ }
1217
+
1218
+ let params = null;
1219
+
1220
+ if (api == "Download") {
1221
+ params = {
1222
+ ID: this.ChannelID,
1223
+ From: this.startDate,
1224
+ To: this.endDate,
1225
+ Async: this.async,
1226
+ ListPreview: this.downloadOrderData
1227
+ };
1228
+ } else {
1229
+ params = {
1230
+ ID: this.ChannelID,
1231
+ From: this.startDate,
1232
+ To: this.endDate,
1233
+ Async: this.async
1234
+ };
1235
+ }
1236
+
1237
+ this.http.post("/api/Orders/" + api, params).subscribe(result => {
1238
+ if (this.async) {
1239
+ this.toastr.success("Download is successful", "Success!");
1240
+ this.new();
1241
+ } else {
1242
+ if (!this.ispreview) {
1243
+ if (result.length == 0 && api == "Preview") {
1244
+ this.toastr.info("There is no orders from " + this.datePipe.transform(this.startDate, "dd MMM yyyy") + " to " + this.datePipe.transform(this.endDate, "dd MMM yyyy") + " !", "No Orders!");
1245
+ return;
1246
+ }
1247
+
1248
+ this.updateQty = 0;
1249
+ this.createQty = 0;
1250
+ this.data = result;
1251
+ this.displayData = result;
1252
+ this.hasAction = this.data.some(x => x.ActionString != "Do Nothing");
1253
+
1254
+ for (let i of this.data) {
1255
+ if (i.Action === 1) {
1256
+ i.Create = true;
1257
+ i.Update = false;
1258
+ this.createQty++;
1259
+ }
1260
+
1261
+ if (i.Action > 1) {
1262
+ i.Create = false;
1263
+ i.Update = true;
1264
+ this.updateQty++;
1265
+ }
1266
+ }
1267
+
1268
+ this.ispreview = true;
1269
+ this.isresult = false;
1270
+ this.PageTitle = "Preview (" + this.datePipe.transform(this.startDate, "dd MMM yyyy") + " - " + this.datePipe.transform(this.endDate, "dd MMM yyyy" + ")");
1271
+ } else {
1272
+ this.infodownload = result.Body;
1273
+ this.data = null;
1274
+ this.isresult = true;
1275
+ this.ispreview = false;
1276
+ this.PageTitle = "Result (" + this.datePipe.transform(this.startDate, "dd MMM yyyy") + " - " + this.datePipe.transform(this.endDate, "dd MMM yyyy" + ")");
1277
+ }
1278
+ } // filter download order
1279
+
1280
+
1281
+ if (api == "Preview") {
1282
+ this.filterDownloadedOrder();
1283
+ }
1284
+ });
1285
+ }
1286
+
1287
+ filterDownloadedOrder() {
1288
+ let unsyncData = this.filterDataByStatus("unsync");
1289
+ let wrongData = this.filterDataByStatus("wrong");
1290
+ this.downloadOrderData = [...unsyncData, ...wrongData];
1291
+ } //Function: new() will reset the download page
1292
+
1293
+
1294
+ new() {
1295
+ this.ispreview = false;
1296
+ this.isresult = false;
1297
+ this.data = null;
1298
+ this.infodownload = null;
1299
+ this.ChannelID = null;
1300
+ this.startDate = null;
1301
+ this.endDate = null;
1302
+ this.hasAction = true;
1303
+ this.PageTitle = "Download to POS";
1304
+ }
1305
+
1306
+ filter(status) {
1307
+ this.pillStatus = status;
1308
+ this.displayData = this.filterDataByStatus(status);
1309
+ }
1310
+
1311
+ filterDataByStatus(status) {
1312
+ let filteredData = [];
1313
+
1314
+ switch (status) {
1315
+ case "all":
1316
+ filteredData = this.data;
1317
+ break;
1318
+
1319
+ case "sync":
1320
+ filteredData = this.data.filter(x => !x.Update && !x.Create);
1321
+ break;
1322
+
1323
+ case "wrong":
1324
+ filteredData = this.data.filter(x => x.Update);
1325
+ break;
1326
+
1327
+ case "unsync":
1328
+ filteredData = this.data.filter(x => x.Create);
1329
+ break;
1330
+ }
1331
+
1332
+ return filteredData;
1333
+ }
1334
+
1335
+ }
1336
+
1337
+ DownloadComponent.ɵfac = function DownloadComponent_Factory(t) {
1338
+ return new (t || DownloadComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_3__.ToastrService), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.ActivatedRoute));
1339
+ };
1340
+
1341
+ DownloadComponent.ɵcmp = /*@__PURE__*/_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({
1342
+ type: DownloadComponent,
1343
+ selectors: [["app-download"]],
1344
+ decls: 12,
1345
+ vars: 8,
1346
+ consts: [[3, "Title", "hideSearchBox", "hideSearchDropdown"], ["class", "btn btn-success btn-fill btn-lg text-white", 3, "click", 4, "ngIf"], ["class", "btn btn-success btn-fill btn-lg text-white", "type", "button", 3, "click", 4, "ngIf"], [1, "btn", "btn-outline-secondary", "btn-fill", "btn-lg", "ms-2", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-file-alt", "me-2"], [1, "container-fluid", "pt-5", "mt-5"], ["class", "row", 4, "ngIf"], ["class", "row mt-4", 4, "ngIf"], [1, "btn", "btn-success", "btn-fill", "btn-lg", "text-white", 3, "click"], [1, "fas", "fa-search"], ["type", "button", 1, "btn", "btn-success", "btn-fill", "btn-lg", "text-white", 3, "click"], ["aria-hidden", "true", 1, "fa", "fa-download", "me-2"], [1, "row"], [1, "col-6"], [1, "col"], ["for", "channelSelect"], [3, "clearable", "ngModel", "ngModelChange"], [3, "value", 4, "ngFor", "ngForOf"], [1, "row", "mt-1rem"], [1, "col-12"], ["for", "dates"], ["id", "dates", 1, "form-control", "rounded", "dateRange", "w-75", 3, "rangePicker"], ["matStartDate", "", "placeholder", "Start date", 3, "ngModel", "ngModelChange", "click"], ["matEndDate", "", "placeholder", "End date", 3, "ngModel", "ngModelChange", "click"], ["picker", ""], [3, "value"], [2, "width", "18px", "margin-right", "10px", 3, "src"], [1, "row", "mt-4"], [1, "col-md-12"], [1, "table"], [1, "thead-light", "sticky-top-thead"], ["width", "1%"], [3, "ngClass", 4, "ngFor", "ngForOf"], [3, "ngClass"], [1, "row", "mx-1", "mb-5"], [1, "nav", "nav-pills"], [1, "nav-item", "mx-3"], [1, "btn", "btn-sm", "rounded-pill", 3, "ngClass", "click"], ["width", "25%"], ["width", "15%"], ["width", "10%"], [4, "ngFor", "ngForOf"], [4, "ngIf"], ["class", "ps-5", 4, "ngIf"], [3, "title", 4, "ngIf"], [1, "ps-5"], [3, "title"], [1, "fas", "fa-info-circle", "ms-2"]],
1347
+ template: function DownloadComponent_Template(rf, ctx) {
1348
+ if (rf & 1) {
1349
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mainpanel", 0)(1, "actions");
1350
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, DownloadComponent_button_2_Template, 3, 0, "button", 1);
1351
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, DownloadComponent_button_3_Template, 3, 0, "button", 2);
1352
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "button", 3);
1353
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function DownloadComponent_Template_button_click_4_listener() {
1354
+ return ctx.new();
1355
+ });
1356
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](5, "i", 4);
1357
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](6, " New ");
1358
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1359
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](7, "content")(8, "div", 5);
1360
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](9, DownloadComponent_div_9_Template, 23, 6, "div", 6);
1361
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](10, DownloadComponent_div_10_Template, 14, 1, "div", 7);
1362
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](11, DownloadComponent_div_11_Template, 33, 10, "div", 6);
1363
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
1364
+ }
1365
+
1366
+ if (rf & 2) {
1367
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("Title", ctx.PageTitle)("hideSearchBox", true)("hideSearchDropdown", true);
1368
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
1369
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.ispreview && !ctx.isresult);
1370
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1371
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ispreview && ctx.hasAction && ctx.downloadOrderData.length !== 0);
1372
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](6);
1373
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", !ctx.ispreview && !ctx.isresult);
1374
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1375
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.isresult);
1376
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
1377
+ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ispreview);
1378
+ }
1379
+ },
1380
+ dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgOptionComponent, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_8__.MatDateRangeInput, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_8__.MatStartDate, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_8__.MatEndDate, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_8__.MatDateRangePicker, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe],
1381
+ styles: [".vertical-radio[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n margin: 15px 0;\n}\n\n.mt-1rem[_ngcontent-%COMP%] {\n margin-top: 1rem;\n}\n\n.dateRange[_ngcontent-%COMP%] {\n padding-top: 0.8rem;\n padding-bottom: 0.8rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRvd25sb2FkLmNvbXBvbmVudC5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksYUFBQTtFQUNBLHNCQUFBO0VBQ0EsY0FBQTtBQUNKOztBQUVBO0VBQ0ksZ0JBQUE7QUFDSjs7QUFFQTtFQUNJLG1CQUFBO0VBQ0Esc0JBQUE7QUFDSiIsImZpbGUiOiJkb3dubG9hZC5jb21wb25lbnQuc2NzcyIsInNvdXJjZXNDb250ZW50IjpbIi52ZXJ0aWNhbC1yYWRpb3tcclxuICAgIGRpc3BsYXk6IGZsZXg7XHJcbiAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xyXG4gICAgbWFyZ2luOiAxNXB4IDA7XHJcbn1cclxuXHJcbi5tdC0xcmVte1xyXG4gICAgbWFyZ2luLXRvcDogMXJlbTtcclxufVxyXG5cclxuLmRhdGVSYW5nZXtcclxuICAgIHBhZGRpbmctdG9wOiAwLjhyZW07XHJcbiAgICBwYWRkaW5nLWJvdHRvbTogMC44cmVtO1xyXG59Il19 */"]
1382
+ });
1383
+
1384
+ /***/ }),
1385
+
1386
+ /***/ 414:
1387
+ /*!**************************************************************!*\
1388
+ !*** ./src/app/menu/orders/new-order/new-order.component.ts ***!
1389
+ \**************************************************************/
1390
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1391
+
1392
+ __webpack_require__.r(__webpack_exports__);
1393
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1394
+ /* harmony export */ "NewOrderComponent": () => (/* binding */ NewOrderComponent)
1395
+ /* harmony export */ });
1396
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
1397
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
1398
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ 4817);
1399
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
1400
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
1401
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
1402
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1403
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ function NewOrderComponent_tr_35_Template(rf, ctx) { if (rf & 1) {
1413
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td");
1414
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
1415
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1416
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td");
1417
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
1418
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1419
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "td");
1420
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
1421
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1422
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "td");
1423
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
1424
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](9, "number");
1425
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1426
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "td");
1427
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11);
1428
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](12, "date");
1429
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1430
+ } if (rf & 2) {
1431
+ const item_r1 = ctx.$implicit;
1432
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1433
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
1434
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1435
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
1436
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1437
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
1438
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1439
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](9, 5, item_r1.Amount));
1440
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
1441
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](12, 7, item_r1.Created, "dd MMM yyyy HH:mm"));
1442
+ } }
1443
+ class NewOrderComponent {
1444
+ constructor(http, toastr) {
1445
+ this.http = http;
1446
+ this.toastr = toastr;
1447
+ this.filter = {
1448
+ PageNumber: null,
1449
+ PageSize: null
1450
+ };
1451
+ this.totaldata = 0;
1452
+ this.paginationTotal = 0;
1453
+ this.checkboxState = false;
1454
+ }
1455
+ ngOnInit() {
1456
+ this.Load();
1457
+ }
1458
+ /**
1459
+ * Load will get the filter options and outlets list, then will call get
1460
+ */
1461
+ Load() {
1462
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
1463
+ this.filter.PageNumber = result.Filter.PageNumber;
1464
+ this.filter.PageSize = result.Filter.RowCount;
1465
+ this.outlets = result.Options.Outlet;
1466
+ this.Get();
1467
+ });
1468
+ }
1469
+ /**
1470
+ * Calls GetNewOrder API to get the Orders list
1471
+ * @param event
1472
+ */
1473
+ Get(event) {
1474
+ var params = {
1475
+ Number: event,
1476
+ PageNumber: this.filter.PageNumber,
1477
+ PageSize: this.filter.PageSize,
1478
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
1479
+ };
1480
+ this.http.post('api/orders/GetNewOrder', params).subscribe(result => {
1481
+ this.data = result.Data;
1482
+ this.totaldata = this.data.length;
1483
+ });
1484
+ }
1485
+ changePage(pageEvent) {
1486
+ }
1487
+ /**
1488
+ * Updates the state of delivery
1489
+ */
1490
+ UpdateDelivery() {
1491
+ let listSelected = this.getSelected();
1492
+ if (listSelected.length > 0) {
1493
+ let listIds = [];
1494
+ listSelected.forEach(m => listIds.push(m));
1495
+ this.http.post('/api/Orders/UpdateStateDelivery', listIds).subscribe(result => {
1496
+ this.toastr.success("Successfully updated", "Success");
1497
+ });
1498
+ }
1499
+ }
1500
+ /**
1501
+ * Get the total amount of orders
1502
+ */
1503
+ StoreRowsCountAPIResult() {
1504
+ var params = {
1505
+ PaymentState: "Unpaid",
1506
+ DeliveryState: "Unsent",
1507
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
1508
+ };
1509
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
1510
+ this.paginationTotal = result.Total;
1511
+ });
1512
+ }
1513
+ /**
1514
+ * Selects the item when clicking the checkbox
1515
+ * @param Number The item's number
1516
+ */
1517
+ onCheckboxStateProduct(Number) {
1518
+ let selectedProduct = this.data.filter(x => x.Number == Number);
1519
+ if (selectedProduct.length > 0) {
1520
+ for (let item of selectedProduct) {
1521
+ item.selected = item.selected;
1522
+ }
1523
+ }
1524
+ else {
1525
+ }
1526
+ }
1527
+ /**
1528
+ * Checks all variants in the product
1529
+ */
1530
+ onCheckboxStateChange() {
1531
+ for (let item of this.data) {
1532
+ item.selected = this.checkboxState;
1533
+ }
1534
+ }
1535
+ /**
1536
+ * Returns the list of all selected item
1537
+ * @returns the selected variants list
1538
+ */
1539
+ getSelected() {
1540
+ let listvariant = [];
1541
+ if (this.data) {
1542
+ for (let p of this.data) {
1543
+ if (p.selected) {
1544
+ listvariant.push(p);
1545
+ }
1546
+ }
1547
+ return listvariant;
1548
+ }
1549
+ else {
1550
+ return [];
1551
+ }
1552
+ }
1553
+ /**
1554
+ * Check if any variant has been selected or not
1555
+ * @returns true or false
1556
+ */
1557
+ hasSelection() {
1558
+ if (this.data) {
1559
+ let selected = this.getSelected();
1560
+ if (selected.length > 0) {
1561
+ return true;
1562
+ }
1563
+ else {
1564
+ return false;
1565
+ }
1566
+ }
1567
+ else {
1568
+ return false;
1569
+ }
1570
+ }
1571
+ /**
1572
+ * Opens the next page
1573
+ */
1574
+ NextPage() {
1575
+ this.filter.PageNumber = this.filter.PageNumber + 1;
1576
+ this.Get();
1577
+ }
1578
+ /**
1579
+ * Opens the previous page
1580
+ */
1581
+ PreviousPage() {
1582
+ this.filter.PageNumber = this.filter.PageNumber - 1;
1583
+ this.Get();
1584
+ }
1585
+ }
1586
+ NewOrderComponent.ɵfac = function NewOrderComponent_Factory(t) { return new (t || NewOrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__.ToastrService)); };
1587
+ NewOrderComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: NewOrderComponent, selectors: [["app-new-order"]], decls: 37, vars: 11, consts: [["searchBoxPlaceHolder", "Search Orders...", 3, "Title", "hideSearchBox", "onSubmit"], ["container", "", 1, ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"]], template: function NewOrderComponent_Template(rf, ctx) { if (rf & 1) {
1588
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
1589
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function NewOrderComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
1590
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
1591
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
1592
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1593
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
1594
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function NewOrderComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
1595
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1596
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
1597
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
1598
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1599
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
1600
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function NewOrderComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
1601
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1602
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
1603
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
1604
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1605
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
1606
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function NewOrderComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
1607
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1608
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](15, "actions");
1609
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "content")(17, "div", 5)(18, "div", 6)(19, "div", 7)(20, "div", 8)(21, "table", 9)(22, "thead")(23, "tr", 10)(24, "th");
1610
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25, "Outlet");
1611
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1612
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "th");
1613
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](27, "Order number");
1614
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1615
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "th");
1616
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](29, "Customer");
1617
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1618
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](30, "th");
1619
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31, "Amount");
1620
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1621
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "th");
1622
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Created On");
1623
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
1624
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "tbody");
1625
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](35, NewOrderComponent_tr_35_Template, 13, 10, "tr", 11);
1626
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1627
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "app-mat-paginator-no-count", 12);
1628
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function NewOrderComponent_Template_app_mat_paginator_no_count_total_36_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function NewOrderComponent_Template_app_mat_paginator_no_count_next_36_listener() { return ctx.NextPage(); })("previous", function NewOrderComponent_Template_app_mat_paginator_no_count_previous_36_listener() { return ctx.PreviousPage(); });
1629
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
1630
+ } if (rf & 2) {
1631
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "1 - New Order")("hideSearchBox", true);
1632
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
1633
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
1634
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
1635
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
1636
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
1637
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
1638
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](21);
1639
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
1640
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
1641
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
1642
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJuZXctb3JkZXIuY29tcG9uZW50LnNjc3MifQ== */"] });
1643
+
1644
+
1645
+ /***/ }),
1646
+
1647
+ /***/ 1901:
1648
+ /*!******************************************************!*\
1649
+ !*** ./src/app/menu/orders/orders-routing.module.ts ***!
1650
+ \******************************************************/
1651
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1652
+
1653
+ __webpack_require__.r(__webpack_exports__);
1654
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1655
+ /* harmony export */ "OrdersRoutingModule": () => (/* binding */ OrdersRoutingModule)
1656
+ /* harmony export */ });
1657
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 4666);
1658
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ 124);
1659
+ /* harmony import */ var _orders_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./orders.component */ 6385);
1660
+ /* harmony import */ var _new_order_new_order_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./new-order/new-order.component */ 414);
1661
+ /* harmony import */ var _detail_order_detail_order_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./detail-order/detail-order.component */ 9241);
1662
+ /* harmony import */ var _ready_to_ship_ready_to_ship_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ready-to-ship/ready-to-ship.component */ 7133);
1663
+ /* harmony import */ var _shipped_shipped_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shipped/shipped.component */ 7595);
1664
+ /* harmony import */ var _delivered_delivered_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./delivered/delivered.component */ 8474);
1665
+ /* harmony import */ var _all_order_all_order_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./all-order/all-order.component */ 1144);
1666
+ /* harmony import */ var _cancelled_cancelled_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancelled/cancelled.component */ 4632);
1667
+ /* harmony import */ var _download_download_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./download/download.component */ 7633);
1668
+ /* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
1669
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 2560);
1670
+
1671
+
1672
+
1673
+
1674
+
1675
+
1676
+
1677
+
1678
+
1679
+
1680
+
1681
+
1682
+
1683
+
1684
+ const routes = [
1685
+ {
1686
+ path: "",
1687
+ component: _orders_component__WEBPACK_IMPORTED_MODULE_0__.OrdersComponent,
1688
+ children: [
1689
+ {
1690
+ path: "",
1691
+ redirectTo: "new",
1692
+ pathMatch: "full",
1693
+ },
1694
+ {
1695
+ path: "new",
1696
+ component: _new_order_new_order_component__WEBPACK_IMPORTED_MODULE_1__.NewOrderComponent,
1697
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1698
+ data: { title: "New Order" },
1699
+ },
1700
+ {
1701
+ path: "detail",
1702
+ component: _detail_order_detail_order_component__WEBPACK_IMPORTED_MODULE_2__.DetailOrderComponent,
1703
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1704
+ data: { title: "Orders detail" },
1705
+ },
1706
+ {
1707
+ path: "ready_to_ship",
1708
+ component: _ready_to_ship_ready_to_ship_component__WEBPACK_IMPORTED_MODULE_3__.ReadyToShipComponent,
1709
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1710
+ data: { title: "Ready To Ship" },
1711
+ },
1712
+ {
1713
+ path: "Shipped",
1714
+ component: _shipped_shipped_component__WEBPACK_IMPORTED_MODULE_4__.ShippedComponent,
1715
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1716
+ data: { title: "Shipped" },
1717
+ },
1718
+ {
1719
+ path: "Delivered",
1720
+ component: _delivered_delivered_component__WEBPACK_IMPORTED_MODULE_5__.DeliveredComponent,
1721
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1722
+ data: { title: "Delivered" },
1723
+ },
1724
+ {
1725
+ path: "All",
1726
+ component: _all_order_all_order_component__WEBPACK_IMPORTED_MODULE_6__.AllOrderComponent,
1727
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1728
+ data: { title: "All Order" },
1729
+ },
1730
+ {
1731
+ path: "Cancelled",
1732
+ component: _cancelled_cancelled_component__WEBPACK_IMPORTED_MODULE_7__.CancelledComponent,
1733
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1734
+ data: { title: "Cancelled" },
1735
+ },
1736
+ {
1737
+ path: "Download",
1738
+ component: _download_download_component__WEBPACK_IMPORTED_MODULE_8__.DownloadComponent,
1739
+ canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_9__.AuthGuard],
1740
+ data: { title: "Download" },
1741
+ },
1742
+ ],
1743
+ },
1744
+ ];
1745
+ class OrdersRoutingModule {
1746
+ }
1747
+ OrdersRoutingModule.ɵfac = function OrdersRoutingModule_Factory(t) { return new (t || OrdersRoutingModule)(); };
1748
+ OrdersRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineNgModule"]({ type: OrdersRoutingModule });
1749
+ OrdersRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule,
1750
+ _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule.forChild(routes)] });
1751
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsetNgModuleScope"](OrdersRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule] }); })();
1752
+
1753
+
1754
+ /***/ }),
1755
+
1756
+ /***/ 6385:
1757
+ /*!*************************************************!*\
1758
+ !*** ./src/app/menu/orders/orders.component.ts ***!
1759
+ \*************************************************/
1760
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1761
+
1762
+ __webpack_require__.r(__webpack_exports__);
1763
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1764
+ /* harmony export */ "OrdersComponent": () => (/* binding */ OrdersComponent)
1765
+ /* harmony export */ });
1766
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
1767
+ /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1768
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
1769
+
1770
+
1771
+
1772
+ class OrdersComponent {
1773
+ constructor() {
1774
+ this.ObjectOrderTabs = [
1775
+ { Title: '1 - New Order', Url: '/menu/Order/new' },
1776
+ { Title: '2 - Ready to Ship', Url: '/menu/Order/ready_to_ship' },
1777
+ { Title: '3 - Shipped', Url: '/menu/Order/Shipped' },
1778
+ { Title: '4 - Completed', Url: '/menu/Order/Delivered' },
1779
+ { Title: 'All', Url: '/menu/Order/All' },
1780
+ { Title: '99 - Cancelled', Url: '/menu/Order/Cancelled' },
1781
+ { Title: 'Download', Url: '/menu/Order/Download' }
1782
+ ];
1783
+ }
1784
+ ngOnInit() {
1785
+ }
1786
+ }
1787
+ OrdersComponent.ɵfac = function OrdersComponent_Factory(t) { return new (t || OrdersComponent)(); };
1788
+ OrdersComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: OrdersComponent, selectors: [["app-orders"]], decls: 5, vars: 1, consts: [[1, "navbar", "page-nav", "navbar-default", "py-0", "navbar-expand-lg"], [1, "container-fluid"], [3, "Tabs"]], template: function OrdersComponent_Template(rf, ctx) { if (rf & 1) {
1789
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
1790
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
1791
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
1792
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
1793
+ } if (rf & 2) {
1794
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
1795
+ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.ObjectOrderTabs);
1796
+ } }, dependencies: [_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__.NavTabComponent, _angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJvcmRlcnMuY29tcG9uZW50LnNjc3MifQ== */"] });
1797
+
1798
+
1799
+ /***/ }),
1800
+
1801
+ /***/ 7889:
1802
+ /*!**********************************************!*\
1803
+ !*** ./src/app/menu/orders/orders.module.ts ***!
1804
+ \**********************************************/
1805
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1806
+
1807
+ __webpack_require__.r(__webpack_exports__);
1808
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1809
+ /* harmony export */ "OrdersModule": () => (/* binding */ OrdersModule)
1810
+ /* harmony export */ });
1811
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
1812
+ /* harmony import */ var _orders_routing_module__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./orders-routing.module */ 1901);
1813
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
1814
+ /* harmony import */ var _new_order_new_order_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./new-order/new-order.component */ 414);
1815
+ /* harmony import */ var _detail_order_detail_order_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./detail-order/detail-order.component */ 9241);
1816
+ /* harmony import */ var _ready_to_ship_ready_to_ship_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ready-to-ship/ready-to-ship.component */ 7133);
1817
+ /* harmony import */ var _shipped_shipped_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./shipped/shipped.component */ 7595);
1818
+ /* harmony import */ var _delivered_delivered_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./delivered/delivered.component */ 8474);
1819
+ /* harmony import */ var _all_order_all_order_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./all-order/all-order.component */ 1144);
1820
+ /* harmony import */ var _cancelled_cancelled_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./cancelled/cancelled.component */ 4632);
1821
+ /* harmony import */ var _download_download_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./download/download.component */ 7633);
1822
+ /* harmony import */ var _orders_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./orders.component */ 6385);
1823
+ /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
1824
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
1825
+ /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
1826
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/router */ 124);
1827
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1828
+ /* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @angular/material/datepicker */ 2298);
1829
+ /* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! @angular/material/core */ 9121);
1830
+ /* harmony import */ var src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! src/app/sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
1831
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 2560);
1832
+
1833
+
1834
+
1835
+
1836
+
1837
+
1838
+
1839
+
1840
+
1841
+
1842
+
1843
+
1844
+
1845
+
1846
+
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+ class OrdersModule {
1854
+ }
1855
+ OrdersModule.ɵfac = function OrdersModule_Factory(t) { return new (t || OrdersModule)(); };
1856
+ OrdersModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineNgModule"]({ type: OrdersModule });
1857
+ OrdersModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
1858
+ _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
1859
+ _orders_routing_module__WEBPACK_IMPORTED_MODULE_0__.OrdersRoutingModule,
1860
+ _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_10__.NavTabModule,
1861
+ _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_11__.MainPanelModule,
1862
+ _angular_material_paginator__WEBPACK_IMPORTED_MODULE_16__.MatPaginatorModule,
1863
+ _angular_router__WEBPACK_IMPORTED_MODULE_17__.RouterModule,
1864
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__.NgSelectModule,
1865
+ _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_19__.MatDatepickerModule,
1866
+ _angular_material_core__WEBPACK_IMPORTED_MODULE_20__.MatNativeDateModule,
1867
+ src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_12__.MatPaginatorNoCountModule] });
1868
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵsetNgModuleScope"](OrdersModule, { declarations: [_orders_component__WEBPACK_IMPORTED_MODULE_9__.OrdersComponent,
1869
+ _new_order_new_order_component__WEBPACK_IMPORTED_MODULE_1__.NewOrderComponent,
1870
+ _detail_order_detail_order_component__WEBPACK_IMPORTED_MODULE_2__.DetailOrderComponent,
1871
+ _ready_to_ship_ready_to_ship_component__WEBPACK_IMPORTED_MODULE_3__.ReadyToShipComponent,
1872
+ _shipped_shipped_component__WEBPACK_IMPORTED_MODULE_4__.ShippedComponent,
1873
+ _delivered_delivered_component__WEBPACK_IMPORTED_MODULE_5__.DeliveredComponent,
1874
+ _all_order_all_order_component__WEBPACK_IMPORTED_MODULE_6__.AllOrderComponent,
1875
+ _cancelled_cancelled_component__WEBPACK_IMPORTED_MODULE_7__.CancelledComponent,
1876
+ _download_download_component__WEBPACK_IMPORTED_MODULE_8__.DownloadComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
1877
+ _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
1878
+ _orders_routing_module__WEBPACK_IMPORTED_MODULE_0__.OrdersRoutingModule,
1879
+ _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_10__.NavTabModule,
1880
+ _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_11__.MainPanelModule,
1881
+ _angular_material_paginator__WEBPACK_IMPORTED_MODULE_16__.MatPaginatorModule,
1882
+ _angular_router__WEBPACK_IMPORTED_MODULE_17__.RouterModule,
1883
+ _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_18__.NgSelectModule,
1884
+ _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_19__.MatDatepickerModule,
1885
+ _angular_material_core__WEBPACK_IMPORTED_MODULE_20__.MatNativeDateModule,
1886
+ src_app_sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_12__.MatPaginatorNoCountModule] }); })();
1887
+
1888
+
1889
+ /***/ }),
1890
+
1891
+ /***/ 7133:
1892
+ /*!**********************************************************************!*\
1893
+ !*** ./src/app/menu/orders/ready-to-ship/ready-to-ship.component.ts ***!
1894
+ \**********************************************************************/
1895
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1896
+
1897
+ __webpack_require__.r(__webpack_exports__);
1898
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1899
+ /* harmony export */ "ReadyToShipComponent": () => (/* binding */ ReadyToShipComponent)
1900
+ /* harmony export */ });
1901
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
1902
+ /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
1903
+ /* harmony import */ var ngx_toastr__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ngx-toastr */ 4817);
1904
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
1905
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
1906
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
1907
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124);
1908
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1909
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
1910
+
1911
+
1912
+
1913
+
1914
+
1915
+
1916
+
1917
+
1918
+
1919
+ const _c0 = function () { return ["/menu/Order/detail"]; };
1920
+ const _c1 = function (a0, a1) { return { Number: a0, Outlet: a1 }; };
1921
+ function ReadyToShipComponent_tr_39_Template(rf, ctx) { if (rf & 1) {
1922
+ const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵgetCurrentView"]();
1923
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td")(2, "input", 16);
1924
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ReadyToShipComponent_tr_39_Template_input_ngModelChange_2_listener($event) { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3); const item_r1 = restoredCtx.$implicit; return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](item_r1.selected = $event); })("ngModelChange", function ReadyToShipComponent_tr_39_Template_input_ngModelChange_2_listener() { const restoredCtx = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵrestoreView"](_r3); const item_r1 = restoredCtx.$implicit; const ctx_r4 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵresetView"](ctx_r4.onCheckboxStateProduct(item_r1.Number)); });
1925
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1926
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td");
1927
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4);
1928
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1929
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "td")(6, "a", 17);
1930
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
1931
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1932
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "td");
1933
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
1934
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1935
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "td");
1936
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11);
1937
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](12, "number");
1938
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1939
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](13, "td");
1940
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](14);
1941
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](15, "date");
1942
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1943
+ } if (rf & 2) {
1944
+ const item_r1 = ctx.$implicit;
1945
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1946
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", item_r1.selected);
1947
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1948
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
1949
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1950
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](13, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](14, _c1, item_r1.Number, item_r1.Outlet));
1951
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
1952
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
1953
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1954
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
1955
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1956
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](12, 8, item_r1.Amount));
1957
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
1958
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](15, 10, item_r1.Created, "dd MMM yyyy HH:mm"));
1959
+ } }
1960
+ class ReadyToShipComponent {
1961
+ constructor(http, toastr) {
1962
+ this.http = http;
1963
+ this.toastr = toastr;
1964
+ this.filter = {
1965
+ PageNumber: null,
1966
+ PageSize: null
1967
+ };
1968
+ this.totaldata = 0;
1969
+ this.paginationTotal = 0;
1970
+ this.checkboxState = false;
1971
+ }
1972
+ ngOnInit() {
1973
+ this.Load();
1974
+ }
1975
+ /**
1976
+ * Load will get the filter options and outlets list, then will call get
1977
+ */
1978
+ Load() {
1979
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
1980
+ this.filter.PageNumber = result.Filter.PageNumber;
1981
+ this.filter.PageSize = result.Filter.RowCount;
1982
+ this.outlets = result.Options.Outlet;
1983
+ this.Get();
1984
+ });
1985
+ }
1986
+ /**
1987
+ * Calls GetNewOrder API to get the Orders list
1988
+ * @param event
1989
+ */
1990
+ Get(event) {
1991
+ var params = {
1992
+ Number: event,
1993
+ PageNumber: this.filter.PageNumber,
1994
+ PageSize: this.filter.PageSize,
1995
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
1996
+ };
1997
+ this.http.post('api/orders/GetReadyToShip', params).subscribe(result => {
1998
+ this.data = result.Data;
1999
+ this.totaldata = this.data.length;
2000
+ });
2001
+ }
2002
+ changePage(pageEvent) {
2003
+ }
2004
+ /**
2005
+ * Updates the state of delivery
2006
+ */
2007
+ UpdateDelivery() {
2008
+ let listSelected = this.getSelected();
2009
+ if (listSelected.length > 0) {
2010
+ let listIds = [];
2011
+ listSelected.forEach(m => listIds.push(m));
2012
+ this.http.post('/api/Orders/UpdateStateDelivery', listIds).subscribe(result => {
2013
+ this.toastr.success("Successfully updated", "Success");
2014
+ });
2015
+ }
2016
+ }
2017
+ /**
2018
+ * Get the total amount of orders
2019
+ */
2020
+ StoreRowsCountAPIResult() {
2021
+ var params = {
2022
+ PaymentState: "Paid",
2023
+ DeliveryState: "Unsent",
2024
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
2025
+ };
2026
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
2027
+ this.paginationTotal = result.Total;
2028
+ });
2029
+ }
2030
+ /**
2031
+ * Selects the item when clicking the checkbox
2032
+ * @param Number The item's number
2033
+ */
2034
+ onCheckboxStateProduct(Number) {
2035
+ let selectedProduct = this.data.filter(x => x.Number == Number);
2036
+ if (selectedProduct.length > 0) {
2037
+ for (let item of selectedProduct) {
2038
+ item.selected = item.selected;
2039
+ }
2040
+ }
2041
+ else {
2042
+ }
2043
+ }
2044
+ /**
2045
+ * Checks all variants in the product
2046
+ */
2047
+ onCheckboxStateChange() {
2048
+ for (let item of this.data) {
2049
+ item.selected = this.checkboxState;
2050
+ }
2051
+ }
2052
+ /**
2053
+ * Returns the list of all selected item
2054
+ * @returns the selected variants list
2055
+ */
2056
+ getSelected() {
2057
+ let listvariant = [];
2058
+ if (this.data) {
2059
+ for (let p of this.data) {
2060
+ if (p.selected) {
2061
+ listvariant.push(p);
2062
+ }
2063
+ }
2064
+ return listvariant;
2065
+ }
2066
+ else {
2067
+ return [];
2068
+ }
2069
+ }
2070
+ /**
2071
+ * Check if any variant has been selected or not
2072
+ * @returns true or false
2073
+ */
2074
+ hasSelection() {
2075
+ if (this.data) {
2076
+ let selected = this.getSelected();
2077
+ if (selected.length > 0) {
2078
+ return true;
2079
+ }
2080
+ else {
2081
+ return false;
2082
+ }
2083
+ }
2084
+ else {
2085
+ return false;
2086
+ }
2087
+ }
2088
+ /**
2089
+ * Opens the next page
2090
+ */
2091
+ NextPage() {
2092
+ this.filter.PageNumber = this.filter.PageNumber + 1;
2093
+ this.Get();
2094
+ }
2095
+ /**
2096
+ * Opens the previous page
2097
+ */
2098
+ PreviousPage() {
2099
+ this.filter.PageNumber = this.filter.PageNumber - 1;
2100
+ this.Get();
2101
+ }
2102
+ }
2103
+ ReadyToShipComponent.ɵfac = function ReadyToShipComponent_Factory(t) { return new (t || ReadyToShipComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](ngx_toastr__WEBPACK_IMPORTED_MODULE_4__.ToastrService)); };
2104
+ ReadyToShipComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: ReadyToShipComponent, selectors: [["app-ready-to-ship"]], decls: 41, vars: 12, consts: [["searchBoxPlaceHolder", "Search Ready To Ship...", 3, "Title", "onSubmit"], ["container", "", 1, ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "button", 1, "btn", "btn-success", "shadow-sm", "rounded", "me-3", 3, "hidden", "click"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [2, "width", "5px"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"], ["type", "checkbox", 1, "me-3", 3, "ngModel", "ngModelChange"], [3, "routerLink", "queryParams"]], template: function ReadyToShipComponent_Template(rf, ctx) { if (rf & 1) {
2105
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
2106
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function ReadyToShipComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
2107
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
2108
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
2109
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2110
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
2111
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ReadyToShipComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
2112
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2113
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
2114
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
2115
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2116
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
2117
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ReadyToShipComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
2118
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2119
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
2120
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
2121
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2122
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
2123
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ReadyToShipComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
2124
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
2125
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "actions")(16, "button", 5);
2126
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("click", function ReadyToShipComponent_Template_button_click_16_listener() { return ctx.UpdateDelivery(); });
2127
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](17, " Dispatch ");
2128
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2129
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](18, "content")(19, "div", 6)(20, "div", 7)(21, "div", 8)(22, "div", 9)(23, "table", 10)(24, "thead")(25, "tr", 11)(26, "th", 12)(27, "input", 13);
2130
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ReadyToShipComponent_Template_input_ngModelChange_27_listener($event) { return ctx.checkboxState = $event; })("ngModelChange", function ReadyToShipComponent_Template_input_ngModelChange_27_listener() { return ctx.onCheckboxStateChange(); });
2131
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2132
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](28, "th");
2133
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](29, "Outlet");
2134
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2135
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](30, "th");
2136
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](31, "Order number");
2137
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2138
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](32, "th");
2139
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33, "Customer");
2140
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2141
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "th");
2142
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](35, "Amount");
2143
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2144
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](36, "th");
2145
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37, "Created On");
2146
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
2147
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "tbody");
2148
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](39, ReadyToShipComponent_tr_39_Template, 16, 17, "tr", 14);
2149
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2150
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](40, "app-mat-paginator-no-count", 15);
2151
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function ReadyToShipComponent_Template_app_mat_paginator_no_count_total_40_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function ReadyToShipComponent_Template_app_mat_paginator_no_count_next_40_listener() { return ctx.NextPage(); })("previous", function ReadyToShipComponent_Template_app_mat_paginator_no_count_previous_40_listener() { return ctx.PreviousPage(); });
2152
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
2153
+ } if (rf & 2) {
2154
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "2 - Ready to Ship");
2155
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
2156
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
2157
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
2158
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
2159
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
2160
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
2161
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
2162
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("hidden", !ctx.hasSelection());
2163
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
2164
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.checkboxState);
2165
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](12);
2166
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
2167
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
2168
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
2169
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.CheckboxControlValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterLinkWithHref, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_8__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJyZWFkeS10by1zaGlwLmNvbXBvbmVudC5zY3NzIn0= */"] });
2170
+
2171
+
2172
+ /***/ }),
2173
+
2174
+ /***/ 7595:
2175
+ /*!**********************************************************!*\
2176
+ !*** ./src/app/menu/orders/shipped/shipped.component.ts ***!
2177
+ \**********************************************************/
2178
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2179
+
2180
+ __webpack_require__.r(__webpack_exports__);
2181
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2182
+ /* harmony export */ "ShippedComponent": () => (/* binding */ ShippedComponent)
2183
+ /* harmony export */ });
2184
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
2185
+ /* harmony import */ var src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! src/app/services/http.service */ 6858);
2186
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
2187
+ /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/forms */ 2508);
2188
+ /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
2189
+ /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/router */ 124);
2190
+ /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
2191
+ /* harmony import */ var _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../sharing-module/mat-paginator-no-count/mat-paginator-no-count.component */ 2594);
2192
+
2193
+
2194
+
2195
+
2196
+
2197
+
2198
+
2199
+
2200
+ const _c0 = function () { return ["/menu/Order/detail"]; };
2201
+ const _c1 = function (a0, a1) { return { Number: a0, Outlet: a1 }; };
2202
+ function ShippedComponent_tr_34_Template(rf, ctx) { if (rf & 1) {
2203
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td");
2204
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](2);
2205
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2206
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](3, "td")(4, "a", 13);
2207
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5);
2208
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2209
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "td");
2210
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7);
2211
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2212
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "td");
2213
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9);
2214
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](10, "number");
2215
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2216
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td");
2217
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
2218
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](13, "date");
2219
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2220
+ } if (rf & 2) {
2221
+ const item_r1 = ctx.$implicit;
2222
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
2223
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Outlet);
2224
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
2225
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](12, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction2"](13, _c1, item_r1.Number, item_r1.Outlet));
2226
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
2227
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Number);
2228
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
2229
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](item_r1.Customer);
2230
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
2231
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](10, 7, item_r1.Amount));
2232
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
2233
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](13, 9, item_r1.Created, "dd MMM yyyy HH:mm"));
2234
+ } }
2235
+ class ShippedComponent {
2236
+ constructor(http) {
2237
+ this.http = http;
2238
+ this.filter = {
2239
+ PageNumber: null,
2240
+ PageSize: null
2241
+ };
2242
+ this.totaldata = 0;
2243
+ this.paginationTotal = 0;
2244
+ }
2245
+ ngOnInit() {
2246
+ this.Load();
2247
+ }
2248
+ Load() {
2249
+ this.http.post('/api/ordersLoader/GetOrder', {}).subscribe(result => {
2250
+ this.filter.PageNumber = result.Filter.PageNumber;
2251
+ this.filter.PageSize = result.Filter.RowCount;
2252
+ this.outlets = result.Options.Outlet;
2253
+ this.Get();
2254
+ });
2255
+ }
2256
+ Get(event) {
2257
+ var params = {
2258
+ Number: event,
2259
+ PageNumber: this.filter.PageNumber,
2260
+ PageSize: this.filter.PageSize,
2261
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
2262
+ };
2263
+ this.http.post('api/orders/GetShipped', params).subscribe(result => {
2264
+ this.data = result.Data;
2265
+ this.totaldata = this.data.length;
2266
+ });
2267
+ }
2268
+ changePage(pageEvent) {
2269
+ this.filter.PageNumber = pageEvent.pageIndex + 1;
2270
+ this.Get();
2271
+ }
2272
+ StoreRowsCountAPIResult() {
2273
+ var params = {
2274
+ PaymentState: "Unpaid",
2275
+ DeliveryState: "Sent",
2276
+ Outlet: (this.selectedOutlets != null ? this.selectedOutlets : this.outlets)
2277
+ };
2278
+ this.http.post('api/orders/GetRowCount', params).subscribe(result => {
2279
+ this.paginationTotal = result.Total;
2280
+ });
2281
+ }
2282
+ NextPage() {
2283
+ this.filter.PageNumber = this.filter.PageNumber + 1;
2284
+ this.Get();
2285
+ }
2286
+ PreviousPage() {
2287
+ this.filter.PageNumber = this.filter.PageNumber - 1;
2288
+ this.Get();
2289
+ }
2290
+ }
2291
+ ShippedComponent.ɵfac = function ShippedComponent_Factory(t) { return new (t || ShippedComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
2292
+ ShippedComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: ShippedComponent, selectors: [["app-shipped"]], decls: 36, vars: 10, consts: [["searchBoxPlaceHolder", "Search Orders...", 3, "Title", "onSubmit"], ["container", ""], ["bindLabel", "Name", "bindValue", "ID", "placeholder", "Choose...", 1, "outlet-multiple", 3, "multiple", "ngModel", "items", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageSize", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "filter", "totaldata", "paginationTotal", "total", "next", "previous"], [3, "routerLink", "queryParams"]], template: function ShippedComponent_Template(rf, ctx) { if (rf & 1) {
2293
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
2294
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("onSubmit", function ShippedComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
2295
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
2296
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](5, "Outlet");
2297
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2298
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](6, "ng-select", 2);
2299
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ShippedComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.selectedOutlets = $event; });
2300
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2301
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "div")(8, "h6");
2302
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Page Number");
2303
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2304
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "input", 3);
2305
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ShippedComponent_Template_input_ngModelChange_10_listener($event) { return ctx.filter.PageNumber = $event; });
2306
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2307
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "h6");
2308
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Page Size");
2309
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2310
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "input", 4);
2311
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("ngModelChange", function ShippedComponent_Template_input_ngModelChange_14_listener($event) { return ctx.filter.PageSize = $event; });
2312
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
2313
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "content")(16, "div", 5)(17, "div", 6)(18, "div", 7)(19, "div", 8)(20, "table", 9)(21, "thead")(22, "tr", 10)(23, "th");
2314
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Outlet");
2315
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2316
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "th");
2317
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26, "Order number");
2318
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2319
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "th");
2320
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28, "Customer");
2321
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2322
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "th");
2323
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Amount");
2324
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
2325
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "th");
2326
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Created On");
2327
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
2328
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "tbody");
2329
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](34, ShippedComponent_tr_34_Template, 14, 16, "tr", 11);
2330
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
2331
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](35, "app-mat-paginator-no-count", 12);
2332
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("total", function ShippedComponent_Template_app_mat_paginator_no_count_total_35_listener() { return ctx.StoreRowsCountAPIResult(); })("next", function ShippedComponent_Template_app_mat_paginator_no_count_next_35_listener() { return ctx.NextPage(); })("previous", function ShippedComponent_Template_app_mat_paginator_no_count_previous_35_listener() { return ctx.PreviousPage(); });
2333
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
2334
+ } if (rf & 2) {
2335
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "3 - Shipped");
2336
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
2337
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("multiple", true)("ngModel", ctx.selectedOutlets)("items", ctx.outlets);
2338
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
2339
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
2340
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
2341
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngModel", ctx.filter.PageSize);
2342
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](20);
2343
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx.data);
2344
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
2345
+ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("filter", ctx.filter)("totaldata", ctx.totaldata)("paginationTotal", ctx.paginationTotal);
2346
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_5__.NgModel, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_router__WEBPACK_IMPORTED_MODULE_6__.RouterLinkWithHref, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_7__.NgSelectComponent, _sharing_module_mat_paginator_no_count_mat_paginator_no_count_component__WEBPACK_IMPORTED_MODULE_2__.MatPaginatorNoCountComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DecimalPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzaGlwcGVkLmNvbXBvbmVudC5zY3NzIn0= */"] });
2347
+
2348
+
2349
+ /***/ }),
2350
+
2351
+ /***/ 2594:
2352
+ /*!*******************************************************************************************!*\
2353
+ !*** ./src/app/sharing-module/mat-paginator-no-count/mat-paginator-no-count.component.ts ***!
2354
+ \*******************************************************************************************/
2355
+ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
2356
+
2357
+ __webpack_require__.r(__webpack_exports__);
2358
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2359
+ /* harmony export */ "MatPaginatorNoCountComponent": () => (/* binding */ MatPaginatorNoCountComponent),
2360
+ /* harmony export */ "MatPaginatorNoCountModule": () => (/* binding */ MatPaginatorNoCountModule)
2361
+ /* harmony export */ });
2362
+ /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 4666);
2363
+ /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
2364
+
2365
+
2366
+
2367
+
2368
+ function MatPaginatorNoCountComponent_span_6_Template(rf, ctx) { if (rf & 1) {
2369
+ const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵgetCurrentView"]();
2370
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span", 10);
2371
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginatorNoCountComponent_span_6_Template_span_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"](); ctx_r2.getTotal(); return _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵresetView"](ctx_r2.hasClicked = true); });
2372
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](1, "i", 11);
2373
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](2, "?");
2374
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
2375
+ } }
2376
+ function MatPaginatorNoCountComponent_span_7_Template(rf, ctx) { if (rf & 1) {
2377
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "span");
2378
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](1);
2379
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](2, "number");
2380
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
2381
+ } if (rf & 2) {
2382
+ const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵnextContext"]();
2383
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
2384
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](2, 1, ctx_r1.paginationTotal));
2385
+ } }
2386
+ class MatPaginatorNoCountComponent {
2387
+ constructor() {
2388
+ this.get = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2389
+ this.change = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2390
+ this.next = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2391
+ this.previous = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2392
+ this.total = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
2393
+ this.hasClicked = false;
2394
+ }
2395
+ changePage(pageEvent) {
2396
+ this.filter.PageNumber = pageEvent.pageIndex + 1;
2397
+ this.change.emit(this.filter);
2398
+ }
2399
+ getTotal() {
2400
+ this.total.emit();
2401
+ }
2402
+ PreviousPage() {
2403
+ this.previous.emit();
2404
+ }
2405
+ NextPage() {
2406
+ this.next.emit();
2407
+ }
2408
+ }
2409
+ MatPaginatorNoCountComponent.ɵfac = function MatPaginatorNoCountComponent_Factory(t) { return new (t || MatPaginatorNoCountComponent)(); };
2410
+ MatPaginatorNoCountComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: MatPaginatorNoCountComponent, selectors: [["app-mat-paginator-no-count"]], inputs: { filter: "filter", paginationTotal: "paginationTotal", totaldata: "totaldata" }, outputs: { get: "get", change: "change", next: "next", previous: "previous", total: "total" }, decls: 13, vars: 10, consts: [[1, "d-flex", "justify-content-end", "mt-5"], [1, "d-sm-block", "collapse", "mt-3", "me-5"], [1, "text-dark", "hidden-xxs"], ["style", "cursor:pointer", 3, "click", 4, "ngIf"], [4, "ngIf"], [1, "btn-group"], ["role", "button", "title", "Load more for 500 variants", 1, "btn", "btn-outline-secondary", "btn-sm", "me-3", "border-0", 3, "disabled", "click"], [1, "fas", "fa-chevron-left"], ["role", "button", "title", "Load more for 500 variants", 1, "btn", "btn-outline-secondary", "btn-sm", "border-0", 3, "disabled", "click"], [1, "fas", "fa-chevron-right"], [2, "cursor", "pointer", 3, "click"], ["title", "Retreive rows count", 1, "border", "p-3"]], template: function MatPaginatorNoCountComponent_Template(rf, ctx) { if (rf & 1) {
2411
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](0, "div", 0)(1, "div", 1)(2, "div", 2);
2412
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtext"](3);
2413
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](4, "number");
2414
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipe"](5, "number");
2415
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](6, MatPaginatorNoCountComponent_span_6_Template, 3, 0, "span", 3);
2416
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtemplate"](7, MatPaginatorNoCountComponent_span_7_Template, 3, 3, "span", 4);
2417
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()();
2418
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](8, "div", 5)(9, "button", 6);
2419
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginatorNoCountComponent_Template_button_click_9_listener() { return ctx.PreviousPage(); });
2420
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](10, "i", 7);
2421
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]();
2422
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementStart"](11, "button", 8);
2423
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function MatPaginatorNoCountComponent_Template_button_click_11_listener() { return ctx.NextPage(); });
2424
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](12, "i", 9);
2425
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelementEnd"]()()();
2426
+ } if (rf & 2) {
2427
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
2428
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵtextInterpolate2"](" Showing ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](4, 6, ctx.filter.PageSize * (ctx.filter.PageNumber - 1) + 1), " - ", _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵpipeBind1"](5, 8, ctx.filter.PageSize * (ctx.filter.PageNumber - 1) + ctx.totaldata), " of ");
2429
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](3);
2430
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", !ctx.hasClicked);
2431
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](1);
2432
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("ngIf", ctx.hasClicked);
2433
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
2434
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.filter.PageNumber == 1);
2435
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵadvance"](2);
2436
+ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵproperty"]("disabled", ctx.filter.PageSize * (ctx.filter.PageNumber - 1) + ctx.totaldata == ctx.paginationTotal || ctx.totaldata < ctx.filter.PageSize);
2437
+ } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.NgIf, _angular_common__WEBPACK_IMPORTED_MODULE_1__.DecimalPipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJtYXQtcGFnaW5hdG9yLW5vLWNvdW50LmNvbXBvbmVudC5zY3NzIn0= */"] });
2438
+ class MatPaginatorNoCountModule {
2439
+ }
2440
+ MatPaginatorNoCountModule.ɵfac = function MatPaginatorNoCountModule_Factory(t) { return new (t || MatPaginatorNoCountModule)(); };
2441
+ MatPaginatorNoCountModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({ type: MatPaginatorNoCountModule });
2442
+ MatPaginatorNoCountModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule] });
2443
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵsetNgModuleScope"](MatPaginatorNoCountModule, { declarations: [MatPaginatorNoCountComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.CommonModule], exports: [MatPaginatorNoCountComponent] }); })();
2444
+
2445
+
2446
+ /***/ })
2447
+
2448
+ }]);
2449
+ //# sourceMappingURL=src_app_menu_orders_orders_module_ts.js.map