@colijnit/sharedcomponents 1.0.13 → 1.0.16

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 (48) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +721 -150
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.d.ts +1 -0
  4. package/colijnit-sharedcomponents.metadata.json +1 -1
  5. package/esm2015/colijnit-sharedcomponents.js +2 -1
  6. package/esm2015/lib/components/key-pad/key-pad.component.js +191 -0
  7. package/esm2015/lib/components/key-pad/key-pad.module.js +21 -0
  8. package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +18 -7
  9. package/esm2015/lib/components/stock/stock-information/stock-information.component.js +6 -7
  10. package/esm2015/lib/components/stock/stock-information-grid/stock-information-grid.component.js +137 -56
  11. package/esm2015/lib/components/stock/stock-location/stock-location.component.js +7 -13
  12. package/esm2015/lib/components/stock/stock-transfer/stock-change-amount.component.js +68 -0
  13. package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +52 -20
  14. package/esm2015/lib/components/stock/stock.component.js +23 -22
  15. package/esm2015/lib/components/stock/stock.module.js +9 -4
  16. package/esm2015/lib/enum/icon.enum.js +2 -11
  17. package/esm2015/lib/enum/keyboard-code.enum.js +32 -0
  18. package/esm2015/lib/model/icon-svg.js +3 -12
  19. package/esm2015/lib/service/ione-connector-adapter.service.js +121 -32
  20. package/esm2015/lib/service/stock.service.js +48 -10
  21. package/esm2015/public-api.js +3 -1
  22. package/fesm2015/colijnit-sharedcomponents.js +717 -187
  23. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  24. package/lib/components/docsign/style/material.scss +0 -1
  25. package/lib/components/key-pad/key-pad.component.d.ts +36 -0
  26. package/lib/components/key-pad/key-pad.module.d.ts +2 -0
  27. package/lib/components/key-pad/style/_layout.scss +104 -0
  28. package/lib/components/key-pad/style/_material-definition.scss +17 -0
  29. package/lib/components/key-pad/style/_theme.scss +35 -0
  30. package/lib/components/key-pad/style/material.scss +4 -0
  31. package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +9 -4
  32. package/lib/components/send-method-dialog/style/material.scss +0 -1
  33. package/lib/components/stock/stock-information/stock-information.component.d.ts +2 -3
  34. package/lib/components/stock/stock-information-grid/stock-information-grid.component.d.ts +23 -10
  35. package/lib/components/stock/stock-location/stock-location.component.d.ts +4 -5
  36. package/lib/components/stock/stock-transfer/stock-change-amount.component.d.ts +18 -0
  37. package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +18 -3
  38. package/lib/components/stock/stock.component.d.ts +7 -5
  39. package/lib/components/stock/style/_layout.scss +4 -30
  40. package/lib/components/stock/style/material.scss +0 -1
  41. package/lib/enum/icon.enum.d.ts +1 -10
  42. package/lib/enum/keyboard-code.enum.d.ts +30 -0
  43. package/lib/service/ione-connector-adapter.service.d.ts +19 -6
  44. package/lib/service/stock.service.d.ts +18 -3
  45. package/lib/style/_variables.scss +3 -13
  46. package/lib/style/sharedcomponents-globals.scss +12 -0
  47. package/package.json +1 -1
  48. package/public-api.d.ts +2 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/articleapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-flat.bo'), require('@colijnit/articleapi/build/articles-public'), require('@colijnit/sharedapi/build/model/report/print-job'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/sharedapi/build/model/print-stock-stickers')) :
3
- typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/articleapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-flat.bo', '@colijnit/articleapi/build/articles-public', '@colijnit/sharedapi/build/model/report/print-job', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/sharedapi/build/model/print-stock-stickers'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.printStockStickers, global.articleFlat_bo, global.articlesPublic, global.printJob, global.articleStock_bo, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.printStockStickers$1));
5
- })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, printStockStickers, articleFlat_bo, articlesPublic, printJob, articleStock_bo, articleStock, corecomponents_v12, i1, printStockStickers$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management')) :
3
+ typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/get-stock-history-request', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.printStockStickers, global.articleStock_bo, global.stockHistory_bo, global.stockStickersPrintLayouts_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.printStockStickers$1, global.getStockHistoryRequest, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement));
5
+ })(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, printStockStickers, articleStock_bo, stockHistory_bo, stockStickersPrintLayouts_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, printStockStickers$1, getStockHistoryRequest, articleStock, corecomponents_v12, i1, articleStockManagement) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -1415,10 +1415,12 @@
1415
1415
  IoneConnectorAdapterService.prototype.connect = function (options) {
1416
1416
  return __awaiter(this, void 0, void 0, function () {
1417
1417
  return __generator(this, function (_a) {
1418
- this.options = options;
1419
- this.connector = new articles.Articles(options);
1420
- this.sharedConnector = new sharedapi.Sharedapi(options);
1421
- this.options.session = this.connector.session && this.sharedConnector.session;
1418
+ if (this.options === undefined) {
1419
+ this.options = options;
1420
+ this.connector = new articles.Articles(options);
1421
+ this.sharedConnector = new sharedapi.Sharedapi(options);
1422
+ this.options.session = this.connector.session && this.sharedConnector.session;
1423
+ }
1422
1424
  return [2 /*return*/];
1423
1425
  });
1424
1426
  });
@@ -1470,28 +1472,15 @@
1470
1472
  });
1471
1473
  });
1472
1474
  };
1473
- // public async getPrintLayouts(defaultPrinterName: PrintJob): Promise<PrintJob> {
1474
- // return new Promise((resolve: Function, reject: Function) => {
1475
- // return this.sharedConnector.getPrintTemplates(defaultPrinterName).then((result: DataServiceResponse) => {
1476
- // if (result.validationResult && result.validationResult.success) {
1477
- // if (result.resultObject) {
1478
- // resolve(this._boFactory.makeWithRawBackendData(PrintJob, result.resultObject));
1479
- // }
1480
- // } else {
1481
- // reject(result.validationMessagesAsString);
1482
- // }
1483
- // })
1484
- // })
1485
- // }
1486
- IoneConnectorAdapterService.prototype.getStockHistory = function (request) {
1475
+ IoneConnectorAdapterService.prototype.getStockStickerPrintLayouts = function (stockStickersPrintLayoutsBo) {
1487
1476
  return __awaiter(this, void 0, void 0, function () {
1488
1477
  var _this = this;
1489
1478
  return __generator(this, function (_a) {
1490
1479
  return [2 /*return*/, new Promise(function (resolve, reject) {
1491
- return _this.connector.getStockHistory(request).then(function (result) {
1480
+ return _this.sharedConnector.getStockStickerPrintLayouts(stockStickersPrintLayoutsBo).then(function (result) {
1492
1481
  if (result.validationResult && result.validationResult.success) {
1493
1482
  if (result.resultObject) {
1494
- resolve(_this._boFactory.makeWithRawBackendData(printJob.PrintJob, result.resultObject));
1483
+ resolve(_this._boFactory.makeWithRawBackendData(stockStickersPrintLayoutsBo, result.resultObject));
1495
1484
  }
1496
1485
  }
1497
1486
  else {
@@ -1520,15 +1509,15 @@
1520
1509
  });
1521
1510
  });
1522
1511
  };
1523
- IoneConnectorAdapterService.prototype.getArticleFlatObject = function (goodId) {
1512
+ IoneConnectorAdapterService.prototype.getStockHistory = function (request) {
1524
1513
  return __awaiter(this, void 0, void 0, function () {
1525
1514
  var _this = this;
1526
1515
  return __generator(this, function (_a) {
1527
1516
  return [2 /*return*/, new Promise(function (resolve, reject) {
1528
- return _this.connector.getArticleFullObject(goodId).then(function (result) {
1517
+ return _this.connector.getStockHistory(request).then(function (result) {
1529
1518
  if (result.validationResult && result.validationResult.success) {
1530
- if (result.resultObject) {
1531
- resolve(_this._boFactory.makeWithRawBackendData(articleFlat_bo.ArticleFlat, result.resultObject));
1519
+ if (result.resultObject && result.resultObject.hasOwnProperty("stockHistory")) {
1520
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockHistory_bo.StockHistoryBo, result.resultObject.stockHistory));
1532
1521
  }
1533
1522
  }
1534
1523
  else {
@@ -1558,15 +1547,143 @@
1558
1547
  });
1559
1548
  });
1560
1549
  };
1561
- IoneConnectorAdapterService.prototype.getWarehouses = function (goodId) {
1550
+ IoneConnectorAdapterService.prototype.getStockManagementWarehouses = function () {
1551
+ return __awaiter(this, void 0, void 0, function () {
1552
+ var _this = this;
1553
+ return __generator(this, function (_a) {
1554
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1555
+ return _this.connector.getStockManagementWarehouses().then(function (result) {
1556
+ if (result.validationResult && result.validationResult.success) {
1557
+ if (result.resultObjects) {
1558
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockManagementWarehouses_bo.StockManagementWarehouses, result.resultObjects));
1559
+ }
1560
+ }
1561
+ else {
1562
+ reject(result.validationMessagesAsString);
1563
+ }
1564
+ });
1565
+ })];
1566
+ });
1567
+ });
1568
+ };
1569
+ IoneConnectorAdapterService.prototype.getStockManagementLocations = function (warehouseNo) {
1570
+ return __awaiter(this, void 0, void 0, function () {
1571
+ var _this = this;
1572
+ return __generator(this, function (_a) {
1573
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1574
+ return _this.connector.getStockManagementLocations(warehouseNo).then(function (result) {
1575
+ if (result.validationResult && result.validationResult.success) {
1576
+ if (result.resultObjects) {
1577
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockLocation_bo.StockLocation, result.resultObjects));
1578
+ }
1579
+ }
1580
+ else {
1581
+ reject(result.validationMessagesAsString);
1582
+ }
1583
+ });
1584
+ })];
1585
+ });
1586
+ });
1587
+ };
1588
+ IoneConnectorAdapterService.prototype.getArticleDetails = function (data) {
1589
+ return __awaiter(this, void 0, void 0, function () {
1590
+ var _this = this;
1591
+ return __generator(this, function (_a) {
1592
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1593
+ return _this.connector.getArticleDetails(data).then(function (result) {
1594
+ if (result.validationResult && result.validationResult.success) {
1595
+ if (result.resultObjects) {
1596
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(articleDetails_bo.ArticleDetailsBo, result.resultObjects));
1597
+ }
1598
+ }
1599
+ else {
1600
+ reject(result.validationMessagesAsString);
1601
+ }
1602
+ });
1603
+ })];
1604
+ });
1605
+ });
1606
+ };
1607
+ IoneConnectorAdapterService.prototype.updateArticleDetails = function (data) {
1608
+ return __awaiter(this, void 0, void 0, function () {
1609
+ var _this = this;
1610
+ return __generator(this, function (_a) {
1611
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1612
+ return _this.connector.updateArticleDetails(data).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1613
+ return __generator(this, function (_a) {
1614
+ switch (_a.label) {
1615
+ case 0:
1616
+ if (!(result.validationResult && result.validationResult.success)) return [3 /*break*/, 2];
1617
+ return [4 /*yield*/, this.commit()];
1618
+ case 1:
1619
+ _a.sent();
1620
+ resolve(true);
1621
+ return [3 /*break*/, 3];
1622
+ case 2:
1623
+ reject(result.validationMessagesAsString);
1624
+ _a.label = 3;
1625
+ case 3: return [2 /*return*/];
1626
+ }
1627
+ });
1628
+ }); });
1629
+ })];
1630
+ });
1631
+ });
1632
+ };
1633
+ IoneConnectorAdapterService.prototype.lockArticleDetails = function (data) {
1562
1634
  return __awaiter(this, void 0, void 0, function () {
1563
1635
  var _this = this;
1564
1636
  return __generator(this, function (_a) {
1565
1637
  return [2 /*return*/, new Promise(function (resolve, reject) {
1566
- return _this.connector.getWarehouses(goodId).then(function (result) {
1638
+ return _this.connector.lockArticleDetails(data).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
1639
+ return __generator(this, function (_a) {
1640
+ switch (_a.label) {
1641
+ case 0:
1642
+ if (!(result.validationResult && result.validationResult.success)) return [3 /*break*/, 2];
1643
+ return [4 /*yield*/, this.commit()];
1644
+ case 1:
1645
+ _a.sent();
1646
+ resolve(true);
1647
+ return [3 /*break*/, 3];
1648
+ case 2:
1649
+ reject(result.validationMessagesAsString);
1650
+ _a.label = 3;
1651
+ case 3: return [2 /*return*/];
1652
+ }
1653
+ });
1654
+ }); });
1655
+ })];
1656
+ });
1657
+ });
1658
+ };
1659
+ IoneConnectorAdapterService.prototype.getStockStatus = function () {
1660
+ return __awaiter(this, void 0, void 0, function () {
1661
+ var _this = this;
1662
+ return __generator(this, function (_a) {
1663
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1664
+ return _this.connector.getStockState().then(function (result) {
1665
+ if (result.validationResult && result.validationResult.success) {
1666
+ if (result.resultObjects) {
1667
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStatus_bo.StockStatus, result.resultObjects));
1668
+ }
1669
+ }
1670
+ else {
1671
+ reject(result.validationMessagesAsString);
1672
+ }
1673
+ });
1674
+ })];
1675
+ });
1676
+ });
1677
+ };
1678
+ IoneConnectorAdapterService.prototype.getStockStickerTemplates = function (data) {
1679
+ return __awaiter(this, void 0, void 0, function () {
1680
+ var _this = this;
1681
+ return __generator(this, function (_a) {
1682
+ return [2 /*return*/, new Promise(function (resolve, reject) {
1683
+ return _this.sharedConnector.getStockStickerPrintLayouts(data).then(function (result) {
1567
1684
  if (result.validationResult && result.validationResult.success) {
1568
1685
  if (result.resultObject) {
1569
- resolve(_this._boFactory.makeWithRawBackendData(articlesPublic.ArticlesPublic, result.resultObject));
1686
+ resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo, result.resultObject));
1570
1687
  }
1571
1688
  }
1572
1689
  else {
@@ -1577,6 +1694,9 @@
1577
1694
  });
1578
1695
  });
1579
1696
  };
1697
+ IoneConnectorAdapterService.prototype.commit = function () {
1698
+ return this.connector.commit();
1699
+ };
1580
1700
  return IoneConnectorAdapterService;
1581
1701
  }());
1582
1702
  IoneConnectorAdapterService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function IoneConnectorAdapterService_Factory() { return new IoneConnectorAdapterService(); }, token: IoneConnectorAdapterService, providedIn: "root" });
@@ -1594,18 +1714,9 @@
1594
1714
  StockService.prototype.connectConnector = function (options) {
1595
1715
  this._connector.connect(options);
1596
1716
  };
1597
- StockService.prototype.getPrintStockStickers = function (data) {
1598
- return __awaiter(this, void 0, void 0, function () {
1599
- return __generator(this, function (_a) {
1600
- switch (_a.label) {
1601
- case 0: return [4 /*yield*/, this._connector.getPrintStockStickers(data)];
1602
- case 1:
1603
- _a.sent();
1604
- return [2 /*return*/];
1605
- }
1606
- });
1607
- });
1608
- };
1717
+ // public async getPrintStockStickers(data: PrintStockStickers): Promise<void> {
1718
+ // await this._connector.getPrintStockStickers(data);
1719
+ // }
1609
1720
  StockService.prototype.getAllPrinters = function (showAll) {
1610
1721
  if (showAll === void 0) { showAll = true; }
1611
1722
  return __awaiter(this, void 0, void 0, function () {
@@ -1617,17 +1728,12 @@
1617
1728
  });
1618
1729
  });
1619
1730
  };
1620
- // public async getPrintTemplates(defaultPrinterName: PrintJob): Promise<PrintJob> {
1621
- // return await this._connector.getPrintLayouts(defaultPrinterName);
1622
- // }
1623
1731
  StockService.prototype.getStockHistory = function (data) {
1624
1732
  return __awaiter(this, void 0, void 0, function () {
1625
1733
  return __generator(this, function (_a) {
1626
1734
  switch (_a.label) {
1627
1735
  case 0: return [4 /*yield*/, this._connector.getStockHistory(data)];
1628
- case 1:
1629
- _a.sent();
1630
- return [2 /*return*/];
1736
+ case 1: return [2 /*return*/, _a.sent()];
1631
1737
  }
1632
1738
  });
1633
1739
  });
@@ -1642,6 +1748,89 @@
1642
1748
  });
1643
1749
  });
1644
1750
  };
1751
+ StockService.prototype.getStockStickerPrintLayouts = function (data) {
1752
+ return __awaiter(this, void 0, void 0, function () {
1753
+ return __generator(this, function (_a) {
1754
+ switch (_a.label) {
1755
+ case 0: return [4 /*yield*/, this._connector.getStockStickerPrintLayouts(data)];
1756
+ case 1: return [2 /*return*/, _a.sent()];
1757
+ }
1758
+ });
1759
+ });
1760
+ };
1761
+ StockService.prototype.getArticleDetails = function (data) {
1762
+ return __awaiter(this, void 0, void 0, function () {
1763
+ return __generator(this, function (_a) {
1764
+ switch (_a.label) {
1765
+ case 0: return [4 /*yield*/, this._connector.getArticleDetails(data)];
1766
+ case 1: return [2 /*return*/, _a.sent()];
1767
+ }
1768
+ });
1769
+ });
1770
+ };
1771
+ StockService.prototype.updateArticleDetails = function (data) {
1772
+ return __awaiter(this, void 0, void 0, function () {
1773
+ return __generator(this, function (_a) {
1774
+ switch (_a.label) {
1775
+ case 0: return [4 /*yield*/, this._connector.updateArticleDetails(data)];
1776
+ case 1: return [2 /*return*/, _a.sent()];
1777
+ }
1778
+ });
1779
+ });
1780
+ };
1781
+ StockService.prototype.getStockState = function () {
1782
+ return __awaiter(this, void 0, void 0, function () {
1783
+ return __generator(this, function (_a) {
1784
+ switch (_a.label) {
1785
+ case 0: return [4 /*yield*/, this._connector.getStockStatus()];
1786
+ case 1: return [2 /*return*/, _a.sent()];
1787
+ }
1788
+ });
1789
+ });
1790
+ };
1791
+ StockService.prototype.getStockStickerTemplates = function (data) {
1792
+ return __awaiter(this, void 0, void 0, function () {
1793
+ return __generator(this, function (_a) {
1794
+ switch (_a.label) {
1795
+ case 0: return [4 /*yield*/, this._connector.getStockStickerTemplates(data)];
1796
+ case 1: return [2 /*return*/, _a.sent()];
1797
+ }
1798
+ });
1799
+ });
1800
+ };
1801
+ StockService.prototype.getStockManagementWarehouses = function () {
1802
+ return __awaiter(this, void 0, void 0, function () {
1803
+ return __generator(this, function (_a) {
1804
+ switch (_a.label) {
1805
+ case 0: return [4 /*yield*/, this._connector.getStockManagementWarehouses()];
1806
+ case 1: return [2 /*return*/, _a.sent()];
1807
+ }
1808
+ });
1809
+ });
1810
+ };
1811
+ StockService.prototype.getStockManagementLocations = function (warehouseNo) {
1812
+ return __awaiter(this, void 0, void 0, function () {
1813
+ return __generator(this, function (_a) {
1814
+ switch (_a.label) {
1815
+ case 0: return [4 /*yield*/, this._connector.getStockManagementLocations(warehouseNo)];
1816
+ case 1: return [2 /*return*/, _a.sent()];
1817
+ }
1818
+ });
1819
+ });
1820
+ };
1821
+ StockService.prototype.lockArticleDetails = function (data) {
1822
+ return __awaiter(this, void 0, void 0, function () {
1823
+ return __generator(this, function (_a) {
1824
+ switch (_a.label) {
1825
+ case 0: return [4 /*yield*/, this._connector.lockArticleDetails(data)];
1826
+ case 1: return [2 /*return*/, _a.sent()];
1827
+ }
1828
+ });
1829
+ });
1830
+ };
1831
+ StockService.prototype.commit = function () {
1832
+ return this._connector.commit();
1833
+ };
1645
1834
  return StockService;
1646
1835
  }());
1647
1836
  StockService.decorators = [
@@ -1658,6 +1847,8 @@
1658
1847
  this.showStockInformationGrid = true;
1659
1848
  this.showStockLocation = false;
1660
1849
  this.showStockTransfer = false;
1850
+ this.allAvailableStock = 0;
1851
+ this.allTechnicalStock = 0;
1661
1852
  }
1662
1853
  Object.defineProperty(StockComponent.prototype, "options", {
1663
1854
  set: function (value) {
@@ -1678,59 +1869,54 @@
1678
1869
  StockComponent.prototype.showClass = function () {
1679
1870
  return true;
1680
1871
  };
1681
- // ngAfterViewInit() {
1682
- // if(this.article) {
1683
- // this.getStockInformation(this.article as any);
1684
- // }
1685
- // }
1686
1872
  StockComponent.prototype.backToStockLinesClicked = function () {
1687
1873
  this.showStockLocation = false;
1688
1874
  this.showStockInformationGrid = true;
1689
1875
  };
1690
1876
  StockComponent.prototype.handleStockTransferClick = function (event) {
1691
- this.stockTransferArticle = event;
1877
+ this.stockTransferArticleDetails = event;
1692
1878
  this.showStockTransfer = !this.showStockTransfer;
1693
1879
  this.showStockInformationGrid = !this.showStockInformationGrid;
1694
- this.stockService.stockStickers = new printStockStickers.PrintStockStickers();
1880
+ this.stockService.stockStickers = new printStockStickers$1.PrintStockStickers();
1695
1881
  };
1696
1882
  StockComponent.prototype.backToStock = function () {
1697
1883
  this.showStockTransfer = !this.showStockTransfer;
1698
1884
  this.showStockInformationGrid = !this.showStockInformationGrid;
1699
1885
  };
1700
- StockComponent.prototype.loadStockHistory = function (data) {
1701
- this.stockService.getStockHistory(data);
1702
- };
1703
- StockComponent.prototype.buttonClick = function () {
1704
- this.getStockInformation(this.article);
1705
- };
1706
- StockComponent.prototype.getStockInformation = function (data) {
1886
+ StockComponent.prototype.getStockHistory = function () {
1707
1887
  return __awaiter(this, void 0, void 0, function () {
1708
- var articleData, _a;
1888
+ var stockHistoryInformation, _a;
1709
1889
  return __generator(this, function (_b) {
1710
1890
  switch (_b.label) {
1711
1891
  case 0:
1712
- articleData = new articleStock.ArticleStock();
1713
- articleData.goodId = data.goodId.toString();
1714
- articleData.viewKind = "M";
1892
+ stockHistoryInformation = new getStockHistoryRequest.GetStockHistoryRequest();
1893
+ stockHistoryInformation.type = "B";
1894
+ stockHistoryInformation.goodId = this.articleExtended.goodId.toString();
1715
1895
  _a = this;
1716
- return [4 /*yield*/, this.stockService.getStockInformation(articleData)];
1896
+ return [4 /*yield*/, this.stockService.getStockHistory(stockHistoryInformation)];
1717
1897
  case 1:
1718
- _a.stockInformation = _b.sent();
1898
+ _a.stockHistory = _b.sent();
1719
1899
  return [2 /*return*/];
1720
1900
  }
1721
1901
  });
1722
1902
  });
1723
1903
  };
1724
- StockComponent.prototype.getStockLocationInformation = function (data) {
1904
+ StockComponent.prototype.getStockInformation = function (data) {
1725
1905
  return __awaiter(this, void 0, void 0, function () {
1726
- var _a;
1906
+ var articleData, _a;
1907
+ var _this = this;
1727
1908
  return __generator(this, function (_b) {
1728
1909
  switch (_b.label) {
1729
1910
  case 0:
1911
+ articleData = new articleStock.ArticleStock();
1912
+ articleData.goodId = data.goodId.toString();
1913
+ articleData.viewKind = "M";
1730
1914
  _a = this;
1731
- return [4 /*yield*/, this.stockService.getStockInformation(data)];
1915
+ return [4 /*yield*/, this.stockService.getStockInformation(articleData)];
1732
1916
  case 1:
1733
- _a.stockLocationInformation = _b.sent();
1917
+ _a.stockInformation = _b.sent();
1918
+ this.stockInformation.forEach(function (articleStock) { return _this.allAvailableStock += articleStock.availableStock; });
1919
+ this.stockInformation.forEach(function (articleStock) { return _this.allTechnicalStock += articleStock.technicalStock; });
1734
1920
  return [2 /*return*/];
1735
1921
  }
1736
1922
  });
@@ -1741,7 +1927,7 @@
1741
1927
  StockComponent.decorators = [
1742
1928
  { type: i0.Component, args: [{
1743
1929
  selector: "co-stock",
1744
- template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\">\n\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [stockLocationData]=\"stockLocationInformation\"\n (locationLineClicked)=\"getStockLocationInformation($event)\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\">\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleCancelClicked)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [stockSticker]=\"stockService.stockStickers\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </div>\n ",
1930
+ template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStock]=\"\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n >\n </co-stock-information>\n <hr>\n <co-stock-information-grid *ngIf=\"showStockInformationGrid\"\n [stockLocationData]=\"stockLocationInformation\"\n [articleStockInformation]=\"stockInformation\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (historyClicked)=\"getStockHistory()\"\n [stockHistoryInformation]=\"stockHistory\"\n >\n </co-stock-information-grid>\n <co-stock-location *ngIf=\"showStockLocation\"\n (backToStockLines)=\"backToStockLinesClicked()\">\n\n </co-stock-location>\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n (handleCancelClicked)=\"backToStock()\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n [stockSticker]=\"stockService.stockStickers\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </div>\n ",
1745
1931
  encapsulation: i0.ViewEncapsulation.None
1746
1932
  },] }
1747
1933
  ];
@@ -1760,44 +1946,34 @@
1760
1946
 
1761
1947
  var StockInformationComponent = /** @class */ (function () {
1762
1948
  function StockInformationComponent() {
1763
- this.stockStatus = "medium";
1764
- this.show = false;
1765
- this.hideOrShowLocationTab = false;
1766
1949
  }
1767
1950
  return StockInformationComponent;
1768
1951
  }());
1769
1952
  StockInformationComponent.decorators = [
1770
1953
  { type: i0.Component, args: [{
1771
1954
  selector: "co-stock-information",
1772
- template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"article.stockAvailable\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
1955
+ template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
1773
1956
  encapsulation: i0.ViewEncapsulation.None
1774
1957
  },] }
1775
1958
  ];
1776
1959
  StockInformationComponent.ctorParameters = function () { return []; };
1777
1960
  StockInformationComponent.propDecorators = {
1778
1961
  article: [{ type: i0.Input }],
1779
- articleStock: [{ type: i0.Input }]
1962
+ articleStock: [{ type: i0.Input }],
1963
+ allAvailableStockInformation: [{ type: i0.Input }],
1964
+ allTechnicalStockInformation: [{ type: i0.Input }]
1780
1965
  };
1781
1966
 
1782
1967
  /** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
1783
1968
  var IconSvg = {
1784
1969
  "arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
1785
- "arrow_point_down": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-280 371 51 51\" enable-background=\"new -280 371 51 51\" ><path fill=\"#29363E\" d=\"M-248.3,392.2c0.3,0,0.6,0.1,0.8,0.3c0.5,0.5,0.5,1.2,0,1.6l-6.2,6.2c-0.2,0.2-0.5,0.3-0.8,0.3c-0.3,0-0.6-0.1-0.8-0.3l-6.2-6.2c-0.2-0.2-0.3-0.5-0.3-0.8c0-0.3,0.1-0.6,0.3-0.8c0.2-0.2,0.5-0.3,0.8-0.3c0.3,0,0.6,0.1,0.8,0.3l5.4,5.4l5.4-5.4C-248.9,392.4-248.6,392.2-248.3,392.2z\"/></svg>",
1786
- "arrow_point_left": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M31.9,36.7l-14.7-9.6C17.1,27,17,26.9,17,26.7v-2.4c0-0.2,0.1-0.3,0.2-0.4l14.7-9.6c0.2-0.2,0.5-0.1,0.7,0.1l1.4,2.1c0.2,0.2,0.1,0.5-0.1,0.7l-12,7.8c-0.3,0.2-0.3,0.6,0,0.8l12,7.8c0.2,0.2,0.3,0.5,0.1,0.7l-1.4,2.1C32.4,36.8,32.1,36.8,31.9,36.7z\"/></svg>",
1787
- "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\" ><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
1788
- "calendar_day": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" ><g><path fill=\"#022D42\" d=\"M35.4,13.7H14.6c-0.6,0-1,0.5-1,1V20h22.9v-5.2C36.4,14.2,36,13.7,35.4,13.7z M19,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8C20.8,18,20,18.8,19,18.8z M31,18.8c-1,0-1.8-0.8-1.8-1.8c0-1,0.8-1.8,1.8-1.8s1.8,0.8,1.8,1.8C32.7,18,32,18.8,31,18.8z\"/><path fill=\"#022D42\" d=\"M35.4,22.3v12.6L31.3,39H14.6c0,0,0,0,0,0V22.3H35.4 M36.4,21.3H13.6V39c0,0.6,0.5,1,1,1h17.2l4.7-4.7V21.3L36.4,21.3z\"/><rect x=\"18.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"30.2\" y=\"10\" fill=\"#022D42\" width=\"1.6\" height=\"5.2\"/><rect x=\"18.6\" y=\"30.5\" fill=\"#022D42\" width=\"3.4\" height=\"3.4\"/><rect x=\"19.1\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"19.1\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"22.2\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"25.4\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"31.6\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"24.8\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"28.5\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"24.8\" opacity=\"0.1\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"27.9\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"31\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/><rect x=\"16\" y=\"34.1\" opacity=\"0.25\" fill=\"#022D42\" width=\"2.4\" height=\"2.4\"/></g></svg>",
1789
- "cancel": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"36 35.16 30.45 35.16 14 14.84 19.55 14.84 36 35.16\" fill=\"#484f60\"/><polygon points=\"14 35.16 19.55 35.16 36 14.84 30.45 14.84 14 35.16\" fill=\"#484f60\"/></svg>",
1970
+ "arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
1971
+ "delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
1790
1972
  "delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
1791
- "edit_pencil": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"12.54 38.16 12 37.62 14.85 29.64 20.52 35.31 12.54 38.16\" fill=\"#484f60\"/><rect x=\"16.33\" y=\"20.52\" width=\"17.99\" height=\"8.64\" transform=\"translate(-10.15 25.18) rotate(-45)\" fill=\"#484f60\"/><path d=\"M37.54,18.73,36,20.32l-6.11-6.1,1.59-1.59a1.55,1.55,0,0,1,2.2,0l3.91,3.9A1.55,1.55,0,0,1,37.54,18.73Z\" fill=\"#484f60\"/></svg>",
1792
1973
  "email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
1793
1974
  "pdf": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.88c-2.16,0-2.72-.56-2.72-2.72V12.88c0-2.15.56-2.71,2.72-2.71h11.6l8.66,8.88v3.43H32.8V19.6l-7.88-8.09h-11c-1.38,0-1.38,0-1.38,1.37V37.45c0,1.37,0,1.37,1.38,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M27.83,26.63v4.24h1a3.57,3.57,0,0,0,.78-.06,1.22,1.22,0,0,0,.52-.26,1.44,1.44,0,0,0,.34-.62,4.13,4.13,0,0,0,.13-1.18,3.79,3.79,0,0,0-.13-1.14,1.51,1.51,0,0,0-.37-.62,1.14,1.14,0,0,0-.6-.3,5.93,5.93,0,0,0-1.06-.06Z\" fill=\"#484f60\"/><path d=\"M21.86,26.63v1.82h.71a3.57,3.57,0,0,0,1-.1A.88.88,0,0,0,24,28a.84.84,0,0,0,.14-.5.8.8,0,0,0-.2-.57.88.88,0,0,0-.52-.29,6.36,6.36,0,0,0-.93,0Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.12,4.24a1.68,1.68,0,0,1-.54.63,1.9,1.9,0,0,1-.67.3,6.57,6.57,0,0,1-1.34.1h-.85V32H20.57V25.54h2.07a7.75,7.75,0,0,1,1.54.1,1.73,1.73,0,0,1,.93.63,2,2,0,0,1,.37,1.25A2,2,0,0,1,25.26,28.51Zm6.45,1.66A2.91,2.91,0,0,1,31,31.31a2.28,2.28,0,0,1-.91.51A4,4,0,0,1,29,32H26.54V25.54H28.9a4.21,4.21,0,0,1,1.22.13,2.08,2.08,0,0,1,1,.59,2.79,2.79,0,0,1,.61,1,4.76,4.76,0,0,1,.21,1.52A4.19,4.19,0,0,1,31.71,30.17Zm5.7-3.54h-3.1v1.52H37v1.08H34.31V32H33V25.54h4.39Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/></svg>",
1794
- "plus_round": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"-288 379 35 35\" enable-background=\"new -288 379 35 35\" ><path fill=\"#29363E\" d=\"M-270.5,381.5c-8.3,0-15,6.7-15,15c0,8.3,6.7,15,15,15s15-6.7,15-15C-255.5,388.2-262.2,381.5-270.5,381.5z M-261.1,397.3c0,0.9-0.7,1.6-1.6,1.6h-5.5v5.5c0,0.9-0.7,1.6-1.6,1.6h-1.6c-0.9,0-1.6-0.7-1.6-1.6v-5.5h-5.5c-0.9,0-1.6-0.7-1.6-1.6v-1.6c0-0.9,0.7-1.6,1.6-1.6h5.5v-5.5c0-0.9,0.7-1.6,1.6-1.6h1.6c0.9,0,1.6,0.7,1.6,1.6v5.5h5.5c0.9,0,1.6,0.7,1.6,1.6V397.3z\"/></svg>",
1795
1975
  "print": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M38,16.5H12a2,2,0,0,0-2,2v9a2,2,0,0,0,2,2h2v-5H36v5h2a2,2,0,0,0,2-2v-9A2,2,0,0,0,38,16.5ZM37,21a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,37,21Z\" fill=\"#484f60\"/><path d=\"M35,11.5v5H15v-5H35m1-1H14v7H36v-7Z\" fill=\"#484f60\"/><path d=\"M35,25.5v13H15v-13H35m1-1H14v15H36v-15Z\" fill=\"#484f60\"/><rect x=\"17\" y=\"28.3\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"31.5\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/><rect x=\"17\" y=\"34.7\" width=\"16\" height=\"0.8\" fill=\"#484f60\"/></svg>",
1796
1976
  "signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
1797
- "tag": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M40,29.15v-.68a5.28,5.28,0,0,0-1.34-3.25L24.78,11.34A5.34,5.34,0,0,0,21.53,10H11.9A1.91,1.91,0,0,0,10,11.9v9.63a5.28,5.28,0,0,0,1.34,3.25L25.22,38.66A5.28,5.28,0,0,0,28.47,40h.68a5.28,5.28,0,0,0,3.24-1.34l6.27-6.27A5.28,5.28,0,0,0,40,29.15ZM13.13,16.72a2.54,2.54,0,1,1,3.59,0A2.55,2.55,0,0,1,13.13,16.72Zm15.9,19L17.84,24.55l1.34-1.34L30.37,34.4Zm2.69-2.69L20.52,21.87l1.35-1.35,11.19,11.2Zm2.68-2.69L23.21,19.18l1.34-1.34L35.75,29Z\" fill=\"#484f60\"/></svg>",
1798
- "thick_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"12.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"21.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/><rect x=\"10\" y=\"30.67\" width=\"30\" height=\"7\" fill=\"#484f60\"/></svg>",
1799
- "thin_lines": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"10\" y=\"14.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"20.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"26.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/><rect x=\"10\" y=\"32.17\" width=\"30\" height=\"4\" fill=\"#484f60\"/></svg>",
1800
- "txt": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm6.68,2.36h-1.9V32h-1.3V26.63h-1.9V25.54h5.1ZM30.4,32,29,29.74,27.55,32H26l2.19-3.34-2-3.07h1.52L29,27.6l1.26-2.06h1.5l-2,3.12L32,32Zm6.86-5.32h-1.9V32H34.07V26.63H32.16V25.54h5.1Z\" fill=\"#484f60\"/></svg>",
1801
1977
  "xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.42,40.17H13.87c-2.15,0-2.71-.56-2.71-2.72V12.88c0-2.15.56-2.71,2.71-2.71H25.48l8.66,8.88v3.43H32.8V19.6l-7.88-8.09H13.87c-1.37,0-1.37,0-1.37,1.37V37.45c0,1.37,0,1.37,1.37,1.37H31.42c1.38,0,1.38,0,1.38-1.37V35h1.34v2.43C34.14,39.61,33.58,40.17,31.42,40.17Z\" fill=\"#484f60\"/><path d=\"M25.2,10.84v6.44c0,1.78.27,2,2,2h6.23Z\" fill=\"#484f60\"/><path d=\"M19.14,24.27v9h19.7v-9Zm5.36,7.41-1.3-2-1.3,2H20.48l2-3.06-1.81-2.8h1.38l1.18,1.88,1.15-1.88h1.37l-1.83,2.85,2,3Zm7.67,0h-1.1V27.07l-1.16,4.61H28.77l-1.16-4.61v4.61H26.52V25.82h1.76l1.07,4,1-4h1.77Zm5.33,0H33.38V25.87h1.18v4.82H37.5Z\" fill=\"#484f60\"/></svg>"
1802
1978
  };
1803
1979
 
@@ -1856,22 +2032,13 @@
1856
2032
  var Icon;
1857
2033
  (function (Icon) {
1858
2034
  Icon["ArrowFatRight"] = "arrow_fat_right";
1859
- Icon["ArrowPointDown"] = "arrow_point_down";
1860
- Icon["ArrowPointLeft"] = "arrow_point_left";
1861
2035
  Icon["ArrowPointRight"] = "arrow_point_right";
1862
- Icon["CalendarDay"] = "calendar_day";
1863
- Icon["Cancel"] = "cancel";
2036
+ Icon["DeleteLeftRegular"] = "delete_left_regular";
1864
2037
  Icon["DeliveryTruck"] = "delivery_truck";
1865
- Icon["EditPencil"] = "edit_pencil";
1866
2038
  Icon["Email"] = "email";
1867
2039
  Icon["Pdf"] = "pdf";
1868
- Icon["PlusRound"] = "plus_round";
1869
2040
  Icon["Print"] = "print";
1870
2041
  Icon["SignatureField"] = "signature_field";
1871
- Icon["Tag"] = "tag";
1872
- Icon["ThickLines"] = "thick_lines";
1873
- Icon["ThinLines"] = "thin_lines";
1874
- Icon["Txt"] = "txt";
1875
2042
  Icon["Xml"] = "xml";
1876
2043
  })(Icon || (Icon = {}));
1877
2044
 
@@ -1880,27 +2047,17 @@
1880
2047
  this.iconCacheService = iconCacheService;
1881
2048
  this._stockService = _stockService;
1882
2049
  this.icons = Icon;
1883
- this.locationLineClicked = new i0.EventEmitter();
1884
2050
  this.transferIconClicked = new i0.EventEmitter();
2051
+ this.historyClicked = new i0.EventEmitter();
1885
2052
  this.show = false;
1886
2053
  this.hideOrShowLocationTab = false;
1887
2054
  this.showStockHistory = false;
1888
2055
  this.showSendMethodDialog = false;
1889
- this.data = [
1890
- { test: "test" }
1891
- ];
1892
- this.inOrderInformation = [
1893
- { inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
1894
- { inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
1895
- { inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
1896
- { inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
1897
- { inOrder: "275432", customer: "Test customer", orderDate: "date", orderAmount: "2", warehouseNumber: "8", warehouseDescription: "A nice warehouse", amountInStock: "17", commission: "4014321" },
1898
- ];
1899
- this.orderInformation = [];
1900
2056
  this.hideOrShowTabs = true;
1901
- this.dataWareHouseCode = 0;
1902
- this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNumber" };
2057
+ this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
1903
2058
  this.articleStockSearchInfo = new articleStock.ArticleStock();
2059
+ this.showChangeStockDetails = false;
2060
+ this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
1904
2061
  this.tabs = [
1905
2062
  "STOCK",
1906
2063
  "IN_ORDER2",
@@ -1925,25 +2082,38 @@
1925
2082
  configurable: true
1926
2083
  });
1927
2084
  StockInformationGridComponent.prototype.handleTabClick = function (tabData) {
2085
+ console.log(tabData);
1928
2086
  this.activeTab = tabData;
2087
+ if (this.activeTab === "IN_ORDER2") {
2088
+ this.getInOrderData();
2089
+ }
2090
+ if (this.activeTab === "ORDERS1") {
2091
+ this.getOrderData();
2092
+ }
1929
2093
  };
1930
2094
  StockInformationGridComponent.prototype.onLocationClick = function (data) {
1931
2095
  this.articleStockSearchInfo.goodId = data.goodId.toString();
1932
2096
  this.articleStockSearchInfo.wareHouseNo = data.warehouseNo.toString();
1933
2097
  this.articleStockSearchInfo.viewKind = "D";
1934
- this.locationLineClicked.emit(this.articleStockSearchInfo);
2098
+ if (!this.dataWareHouseCode) {
2099
+ this.getStockManagementWarehouses(data);
2100
+ }
2101
+ this.getArticleDetails(data);
1935
2102
  this.hideOrShowTabs = false;
1936
2103
  this.hideOrShowLocationTab = true;
1937
- };
1938
- StockInformationGridComponent.prototype.onPopupClose = function () {
1939
- this.show = false;
2104
+ console.log(this.articleDetailsInformation);
2105
+ this._stockService.lockArticleDetails(this.articleDetailsInformation);
1940
2106
  };
1941
2107
  StockInformationGridComponent.prototype.handleHistoryClick = function () {
1942
- // console.warn('Not yet implemented');
1943
- // this.showStockHistory = true;
2108
+ this.historyClicked.emit();
2109
+ this.hideOrShowLocationTab = false;
2110
+ this.showChangeStockDetails = false;
2111
+ this.hideOrShowTabs = false;
2112
+ this.showStockHistory = true;
1944
2113
  };
1945
- StockInformationGridComponent.prototype.handleCloseClick = function () {
1946
- this.onPopupClose();
2114
+ StockInformationGridComponent.prototype.backToStockInformation = function () {
2115
+ this.showStockHistory = false;
2116
+ this.hideOrShowTabs = true;
1947
2117
  };
1948
2118
  StockInformationGridComponent.prototype.handleStockTransferClick = function (event) {
1949
2119
  this.transferIconClicked.emit(event);
@@ -1962,20 +2132,91 @@
1962
2132
  this.showSendMethodDialog = !this.showSendMethodDialog;
1963
2133
  };
1964
2134
  StockInformationGridComponent.prototype.printStockStickers = function () {
1965
- this.printSticker = new printStockStickers$1.PrintStockStickers();
2135
+ this.printSticker = new printStockStickers.PrintStockStickers();
1966
2136
  this.printSticker.goodId = 10;
1967
- this._stockService.getPrintStockStickers(this.printSticker);
2137
+ // this._stockService.getPrintStockStickers(this.printSticker);
1968
2138
  };
1969
2139
  StockInformationGridComponent.prototype.onOkClick = function () {
1970
2140
  };
1971
2141
  StockInformationGridComponent.prototype.onCancelClick = function () {
1972
2142
  };
2143
+ StockInformationGridComponent.prototype.openDialogClick = function (data) {
2144
+ this.selectedArticleDetailsData = data;
2145
+ this.showChangeStockDetails = true;
2146
+ };
2147
+ StockInformationGridComponent.prototype.getArticleDetails = function (data) {
2148
+ var _this = this;
2149
+ // const info = new ArticleStockManagement();
2150
+ this.articleDetailsInformation.goodId = data.goodId;
2151
+ this.articleDetailsInformation.lineId = data.lineId;
2152
+ this.articleDetailsInformation.warehouseNumber = data.warehouseNo;
2153
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
2154
+ _this.articleDetails = details;
2155
+ });
2156
+ };
2157
+ StockInformationGridComponent.prototype.getStockManagementWarehouses = function (data) {
2158
+ var _this = this;
2159
+ this._stockService.getStockManagementWarehouses().then(function (warehouses) {
2160
+ _this.dataWareHouseCode = warehouses;
2161
+ _this.selectedWarehouse = data.warehouseNo;
2162
+ });
2163
+ };
2164
+ StockInformationGridComponent.prototype.onSelectWarehouse = function (event) {
2165
+ var _this = this;
2166
+ this.articleDetailsInformation.warehouseNumber = event;
2167
+ console.log(event);
2168
+ if (this.dataWareHouseCode != null) {
2169
+ this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
2170
+ _this.articleDetails = details;
2171
+ });
2172
+ }
2173
+ };
2174
+ StockInformationGridComponent.prototype.getInOrderData = function () {
2175
+ return __awaiter(this, void 0, void 0, function () {
2176
+ var inOrderData, _a;
2177
+ return __generator(this, function (_b) {
2178
+ switch (_b.label) {
2179
+ case 0:
2180
+ inOrderData = new getStockHistoryRequest.GetStockHistoryRequest();
2181
+ inOrderData.type = "O";
2182
+ inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
2183
+ // inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
2184
+ _a = this;
2185
+ return [4 /*yield*/, this._stockService.getStockHistory(inOrderData)];
2186
+ case 1:
2187
+ // inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
2188
+ _a.inOrderInformation = _b.sent();
2189
+ return [2 /*return*/];
2190
+ }
2191
+ });
2192
+ });
2193
+ };
2194
+ StockInformationGridComponent.prototype.getOrderData = function () {
2195
+ return __awaiter(this, void 0, void 0, function () {
2196
+ var inOrderData, _a;
2197
+ return __generator(this, function (_b) {
2198
+ switch (_b.label) {
2199
+ case 0:
2200
+ inOrderData = new getStockHistoryRequest.GetStockHistoryRequest();
2201
+ inOrderData.type = "B";
2202
+ inOrderData.goodId = this.articleStockInformation[0].goodId.toString();
2203
+ // inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
2204
+ _a = this;
2205
+ return [4 /*yield*/, this._stockService.getStockHistory(inOrderData)];
2206
+ case 1:
2207
+ // inOrderData.wareHouseNr = Number(this.articleStockInformation[0].warehouseNo);
2208
+ _a.orderInformation = _b.sent();
2209
+ return [2 /*return*/];
2210
+ }
2211
+ });
2212
+ });
2213
+ };
1973
2214
  return StockInformationGridComponent;
1974
2215
  }());
1975
2216
  StockInformationGridComponent.decorators = [
1976
2217
  { type: i0.Component, args: [{
1977
2218
  selector: "co-stock-information-grid",
1978
- template: "\n <div class=\"tab-link show\" *ngIf=\"hideOrShowTabs\">\n <span class=\"tab-link-buttons\"\n *ngFor=\"let tab of tabs\"\n (click)=\"handleTabClick(tab)\"\n [textContent]=\"tab\"\n [class.active]=\"tab === activeTab\"\n ></span>\n </div>\n\n <div class=\"stock-line\">\n <div [textContent]=\"activeTabText\"></div>\n\n </div>\n\n <div class=\"stock-grid\">\n <co-simple-grid *ngIf=\"activeTab === tabs[0] && hideOrShowTabs\"\n [data]=\"articleStockInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseName'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'technicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK'\" [field]=\"'economicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"'bekijken'\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[1]\"\n [data]=\"inOrderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'inOrder'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CUSTOMER'\" [field]=\"'customer'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'orderDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'orderAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNumber'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'COMMISSION2'\" [field]=\"'commission'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick($event)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[2]\"\n [data]=\"orderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'purchaseOrderNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'orderDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'orderAmount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVED'\" [field]=\"'reserved'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'freeStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE1'\" [field]=\"'deliveryDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVE'\" [field]=\"'reservation'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"hideOrShowLocationTab\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></span>\n </div>\n <div class=\"stock-location-right-group\">\n <co-input-combo-box [(model)]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n [required]=\"true\"\n ></co-input-combo-box>\n </div>\n </div>\n\n<!-- TODO move to own component stock-location-->\n <co-simple-grid [data]=\"stockLocationData\"\n >\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <co-button class=\"stock-lines-button\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></co-button>\n </div>\n </div>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseName'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batchNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'notAssignedStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'economicalStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"showStockHistory\">\n <co-simple-grid [data]=\"stockHistoryInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'location'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batch'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'allocated'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'amountAvailable'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-button-toolbar\">\n <div class=\"stock-button-left-group\">\n <co-button [label]=\"'HISTORY'\" (click)=\"handleHistoryClick()\"></co-button>\n </div>\n <div class=\"stock-button-middle-group\">\n <div class=\"button-left\">\n <co-button [textContent]=\"'Ok'\" (click)=\"onOkClick()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button [textContent]=\"'Annuleren'\" (click)=\"onCancelClick()\"></co-button>\n </div>\n </div>\n </div>\n <ione-send-method-dialog\n [showDialog]=\"showSendMethodDialog\"\n (printButtonClicked)=\"printStockStickers()\"\n ></ione-send-method-dialog>\n ",
2219
+ template: "\n <div class=\"tab-link show\" *ngIf=\"hideOrShowTabs\">\n <span class=\"tab-link-buttons\"\n *ngFor=\"let tab of tabs\"\n (click)=\"handleTabClick(tab)\"\n [textContent]=\"tab\"\n [class.active]=\"tab === activeTab\"\n ></span>\n </div>\n\n <div class=\"stock-line\">\n <div [textContent]=\"activeTabText\"></div>\n\n </div>\n\n <div class=\"stock-grid\">\n <co-simple-grid *ngIf=\"activeTab === tabs[0] && hideOrShowTabs\"\n [data]=\"articleStockInformation\"\n >\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseNo'\" [order]=\"10\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'warehouseName'\" [order]=\"11\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'technicalStock'\" [order]=\"12\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'availableStock'\" [order]=\"13\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ECONOMICAL_STOCK'\" [field]=\"'economicalStock'\" [order]=\"14\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\" [order]=\"15\">\n <ng-template #template let-row=\"row\">\n <span [textContent]=\"'Bekijken'\" (click)=\"onLocationClick(row)\"></span>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[1]\"\n [data]=\"inOrderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'IN_ORDER2'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'CUSTOMER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DESCRIPTION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'COMMISSION2'\" [field]=\"'commission'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick($event)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n\n <co-simple-grid *ngIf=\"activeTab === tabs[2]\"\n [data]=\"orderInformation\"\n >\n <co-simple-grid-column [headerText]=\"'PURCHASE_ORDER_NR'\" [field]=\"'seriesNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVED'\" [field]=\"'reserved'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'FREE_STOCK'\" [field]=\"'freeStock'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DELIVERY_DATE1'\" [field]=\"'deliveryDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RESERVE'\" [field]=\"'reservation'\"></co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-grid\" *ngIf=\"hideOrShowLocationTab\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></span>\n </div>\n <div class=\"stock-location-right-group\">\n <co-drop-down-list [(model)]=\"selectedWarehouse\"\n [collection]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n [required]=\"true\"\n ></co-drop-down-list>\n </div>\n </div>\n\n<!-- TODO move to own component stock-location-->\n <co-simple-grid [data]=\"articleDetails\"\n >\n <div class=\"stock-location-group\">\n <div class=\"stock-location-left-group\">\n <co-button class=\"stock-lines-button\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"handleBackToStockClick()\"></co-button>\n </div>\n </div>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'warehouseDescription'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'BATCH'\" [field]=\"'batchNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <co-input-number-picker (keyup.enter)=\"openDialogClick(row)\" [(model)]=\"row['amountInStock']\">\n\n </co-input-number-picker>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'amountInStockFree'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'perceptibleStorage'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PHYSICAL_STOCK'\" [field]=\"'amountInStockOriginal'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currency'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE'\" [field]=\"'purchasePrice'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIER_NUMBER'\" [field]=\"'supplierNo'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\" (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <co-stock-change-amount *ngIf=\"showChangeStockDetails\"\n (closeStockChangeAmount)=\"showChangeStockDetails = false\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n >\n </co-stock-change-amount>\n\n <div class=\"stock-grid\" *ngIf=\"showStockHistory\">\n <div class=\"stock-button-left-group\">\n <span class=\"stock-button-back\" [textContent]=\"'BACK_TO_STOCK_LINES'\" (click)=\"backToStockInformation()\"></span>\n </div>\n <co-simple-grid [data]=\"stockHistoryInformation\"\n >\n <co-simple-grid-column [headerText]=\"'MUTATION_DATE'\" [field]=\"'mutationDate'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TIME'\" [field]=\"'mutationTime'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AMOUNT'\" [field]=\"'amount'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'WAREHOUSE'\" [field]=\"'wareHouseNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSACTION_TYPE'\" [field]=\"'transType'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'DOCUMENT_NUMBER'\" [field]=\"'docNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'LINE'\" [field]=\"'posLineNr'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_STATE'\" [field]=\"'stockStateId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK_REMARK'\" [field]=\"'stockStateRemarkId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currencyCode'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'RELATION_ID'\" [field]=\"'relationId'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'USER'\" [field]=\"'user'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'MUTATION_TYPE'\" [field]=\"'mutationType'\"></co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\" (click)=\"openSendMethodDialog()\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n\n <div class=\"stock-button-toolbar\">\n <div class=\"stock-button-left-group\">\n <co-button [label]=\"'HISTORY'\" (click)=\"handleHistoryClick()\"></co-button>\n </div>\n <div class=\"stock-button-middle-group\">\n <div class=\"button-left\">\n <co-button [textContent]=\"'Ok'\" (click)=\"onOkClick()\"></co-button>\n </div>\n <div class=\"button-right\">\n <co-button [textContent]=\"'Annuleren'\" (click)=\"onCancelClick()\"></co-button>\n </div>\n </div>\n </div>\n <ione-send-method-dialog\n *ngIf=\"showSendMethodDialog\"\n [showDialog]=\"showSendMethodDialog\"\n (printButtonClicked)=\"printStockStickers()\"\n ></ione-send-method-dialog>\n ",
1979
2220
  encapsulation: i0.ViewEncapsulation.None
1980
2221
  },] }
1981
2222
  ];
@@ -1986,31 +2227,22 @@
1986
2227
  StockInformationGridComponent.propDecorators = {
1987
2228
  stock: [{ type: i0.ViewChild, args: [StockInformationGridComponent,] }],
1988
2229
  articleStockInformation: [{ type: i0.Input }],
1989
- stockHistoryInformation: [{ type: i0.Input }],
1990
2230
  stockLocationData: [{ type: i0.Input }],
1991
- locationLineClicked: [{ type: i0.Output }],
1992
- transferIconClicked: [{ type: i0.Output }]
2231
+ stockHistoryInformation: [{ type: i0.Input }],
2232
+ transferIconClicked: [{ type: i0.Output }],
2233
+ historyClicked: [{ type: i0.Output }]
1993
2234
  };
1994
2235
 
1995
2236
  var StockLocationComponent = /** @class */ (function () {
1996
- function StockLocationComponent() {
2237
+ function StockLocationComponent(_stockService) {
2238
+ this._stockService = _stockService;
1997
2239
  this.backToStockLines = new i0.EventEmitter();
1998
- this.MAX_GRID_ROWS = 10;
1999
2240
  this.stockLocationColumns = [];
2000
- this.stockLocation = [
2001
- { location: "title 1", batch: "1", serieNo: "1", amountInStock: "1", allocated: "1", amountAvailable: "1" },
2002
- { location: "title 2", amountInStock: "2" },
2003
- { location: "title 3", amountInStock: "3" },
2004
- { location: "title 4", amountInStock: "4" },
2005
- { location: "title 5", amountInStock: "5" },
2006
- ];
2007
2241
  this.stockLocationColumns.push({ field: "location", headerText: "WAREHOUSE", editType: "none" }, { field: "batch", headerText: "BATCH" }, { field: "serieNo", headerText: "SERIAL_NO" }, { field: "amountInStock", headerText: "STOCK", textAlign: "Right", editType: "numericEdit" }, { field: "allocated", headerText: "ALLOCATED", textAlign: "Right" }, { field: "amountAvailable", headerText: "AVAILABLE_STOCK", textAlign: "Right" }, { field: "PhysicalStock", headerText: "PHYSICAL_STOCK", textAlign: "Right" }, { field: "Valuta", headerText: "VALUTA", textAlign: "Right" }, { field: "PurchasePrice", headerText: "PURSCHASE_PRICE", textAlign: "Right" }, { field: "SupplierNo", headerText: "SUPPLIER_NO", textAlign: "Right" }, { field: "Transfer", headerText: "TRANSFER" }, { field: "sticker", headerText: "STICKER" });
2008
2242
  }
2009
2243
  StockLocationComponent.prototype.backToStockInformation = function () {
2010
2244
  this.backToStockLines.emit();
2011
2245
  };
2012
- StockLocationComponent.prototype.onStickerClick = function (event) {
2013
- };
2014
2246
  StockLocationComponent.prototype.onOkClick = function () {
2015
2247
  };
2016
2248
  StockLocationComponent.prototype.onCancelClick = function () {
@@ -2026,7 +2258,9 @@
2026
2258
  encapsulation: i0.ViewEncapsulation.None
2027
2259
  },] }
2028
2260
  ];
2029
- StockLocationComponent.ctorParameters = function () { return []; };
2261
+ StockLocationComponent.ctorParameters = function () { return [
2262
+ { type: StockService }
2263
+ ]; };
2030
2264
  StockLocationComponent.propDecorators = {
2031
2265
  stockLocationInformation: [{ type: i0.Input }],
2032
2266
  backToStockLines: [{ type: i0.Output }]
@@ -2037,15 +2271,37 @@
2037
2271
  this._stockService = _stockService;
2038
2272
  this.handleCancelClicked = new i0.EventEmitter();
2039
2273
  this.handleStickerClicked = new i0.EventEmitter();
2040
- this.allWarehousesDropdownFields = { value: "warehouseNo", text: "description" };
2274
+ this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
2275
+ this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
2041
2276
  this.showSendMethodDialog = false;
2277
+ this.stockState = [];
2278
+ this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
2042
2279
  }
2043
- StockTransferComponent.prototype.handleOkClick = function () {
2280
+ StockTransferComponent.prototype.ngAfterViewInit = function () {
2281
+ this.getStockManagementWarehouses();
2282
+ this.getStockState();
2283
+ };
2284
+ StockTransferComponent.prototype.handleOkClick = function (data) {
2285
+ return __awaiter(this, void 0, void 0, function () {
2286
+ return __generator(this, function (_a) {
2287
+ switch (_a.label) {
2288
+ case 0:
2289
+ data.selected = true;
2290
+ data.entryDate = new Date;
2291
+ return [4 /*yield*/, this._stockService.updateArticleDetails(data)];
2292
+ case 1:
2293
+ _a.sent();
2294
+ return [2 /*return*/];
2295
+ }
2296
+ });
2297
+ });
2044
2298
  };
2045
2299
  StockTransferComponent.prototype.handleCancelClick = function () {
2046
2300
  this.handleCancelClicked.emit();
2047
2301
  };
2048
2302
  StockTransferComponent.prototype.handleSelectedWarehouse = function (event) {
2303
+ this.selectedWarehouse = event;
2304
+ this.getStockManagementLocations(this.selectedWarehouse);
2049
2305
  };
2050
2306
  StockTransferComponent.prototype.handleStickerClick = function () {
2051
2307
  return __awaiter(this, void 0, void 0, function () {
@@ -2056,12 +2312,30 @@
2056
2312
  });
2057
2313
  });
2058
2314
  };
2315
+ StockTransferComponent.prototype.getStockManagementWarehouses = function () {
2316
+ var _this = this;
2317
+ this._stockService.getStockManagementWarehouses().then(function (warehouses) {
2318
+ _this.warehouses = warehouses;
2319
+ });
2320
+ };
2321
+ StockTransferComponent.prototype.getStockManagementLocations = function (data) {
2322
+ var _this = this;
2323
+ this._stockService.getStockManagementLocations(data).then(function (locations) {
2324
+ _this.locations = locations;
2325
+ });
2326
+ };
2327
+ StockTransferComponent.prototype.getStockState = function () {
2328
+ var _this = this;
2329
+ this._stockService.getStockState().then(function (state) {
2330
+ _this.stockState = state;
2331
+ });
2332
+ };
2059
2333
  return StockTransferComponent;
2060
2334
  }());
2061
2335
  StockTransferComponent.decorators = [
2062
2336
  { type: i0.Component, args: [{
2063
2337
  selector: "co-stock-transfer",
2064
- template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <h1 [textContent]=\"'Nog niet geimplmenteerd'\"></h1>\n <div *ngIf=\"article\" class=\"stock-transfer-left-column\">\n <co-input-text disabled\n [(model)]=\"article.warehouseNo\"\n [textContent]=\"article.warehouseNo\"\n [placeholder]=\"'Standaard magazijn'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"article.locationNo\"\n [textContent]=\"article.locationNo\"\n [placeholder]=\"'Standaard locatie'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.batch\"\n [placeholder]=\"'Batch'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.serial\"\n [placeholder]=\"'Serie'\">\n </co-input-text>\n <co-input-text\n [(model)]=\"article.amountAssigned\"\n [placeholder]=\"'Aantal'\">\n\n </co-input-text>\n </div>\n\n <div class=\"stock-transfer-right-column\">\n <co-drop-down-list [collection]=\"allWarehouses\"\n [fields]=\"allWarehousesDropdownFields\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n >\n </co-drop-down-list>\n <co-drop-down-list>\n\n </co-drop-down-list>\n <co-input-text [placeholder]=\"'Voorraadstatus'\">\n\n </co-input-text>\n <co-input-text [placeholder]=\"'Omschrijving'\">\n\n </co-input-text>\n </div>\n </div>\n\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick()\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n <co-button [textContent]=\"'Sticker'\" (click)=\"handleStickerClick()\"></co-button>\n </div>\n </div>\n ",
2338
+ template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-left-column\">\n <co-input-text disabled\n [(model)]=\"articleToTransfer.warehouseDescription\"\n [textContent]=\"articleToTransfer.warehouseDescription\"\n [placeholder]=\"'Standaard magazijn'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"articleToTransfer.locationNo\"\n [textContent]=\"articleToTransfer.locationNo\"\n [placeholder]=\"'Standaard locatie'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.batch\"\n [placeholder]=\"'Batch'\">\n </co-input-text>\n <co-input-text disabled\n [(model)]=\"stockSticker.serial\"\n [placeholder]=\"'Serie'\">\n </co-input-text>\n <co-input-text\n [(model)]=\"articleToTransfer.amountTransfer\"\n [placeholder]=\"'Aantal'\">\n </co-input-text>\n </div>\n\n <div class=\"stock-transfer-right-column\">\n <co-drop-down-list [collection]=\"warehouses\"\n [fields]=\"allWarehousesDropdownFields\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [(model)]=\"articleToTransfer.targetWarehouse\">\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"locations\"\n [fields]=\"allLocationDropdownFields\"\n [(model)]=\"articleToTransfer.targetLocation\"\n >\n </co-drop-down-list>\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'Voorraadstatus'\"\n [(model)]=\"articleToTransfer.stockStateId\">\n </co-drop-down-list>\n <co-input-text [placeholder]=\"'Omschrijving'\"\n [(model)]=\"articleToTransfer.stockStateRemark\">\n </co-input-text>\n </div>\n </div>\n\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(articleToTransfer)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n <co-button [textContent]=\"'Sticker'\" (click)=\"handleStickerClick()\"></co-button>\n </div>\n </div>\n ",
2065
2339
  encapsulation: i0.ViewEncapsulation.None
2066
2340
  },] }
2067
2341
  ];
@@ -2071,6 +2345,7 @@
2071
2345
  StockTransferComponent.propDecorators = {
2072
2346
  stockSticker: [{ type: i0.Input }],
2073
2347
  article: [{ type: i0.Input }],
2348
+ articleToTransfer: [{ type: i0.Input }],
2074
2349
  articleWarehouse: [{ type: i0.Input }],
2075
2350
  allWarehouses: [{ type: i0.Input }],
2076
2351
  handleCancelClicked: [{ type: i0.Output }],
@@ -2106,6 +2381,7 @@
2106
2381
  this.showStandardPrinterOptions = false;
2107
2382
  this.showPrinterSelections = false;
2108
2383
  this.showExitButton = true;
2384
+ this.printTemplatesField = { text: "name", value: "name" };
2109
2385
  this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
2110
2386
  this.models = [false, false, true];
2111
2387
  this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
@@ -2113,9 +2389,19 @@
2113
2389
  this.startSignatureClicked = new i0.EventEmitter();
2114
2390
  this.printButtonClicked = new i0.EventEmitter();
2115
2391
  }
2392
+ Object.defineProperty(SendMethodDialogComponent.prototype, "options", {
2393
+ set: function (value) {
2394
+ this._stockService.connectConnector(value);
2395
+ },
2396
+ enumerable: false,
2397
+ configurable: true
2398
+ });
2116
2399
  SendMethodDialogComponent.prototype.showClass = function () {
2117
2400
  return true;
2118
2401
  };
2402
+ SendMethodDialogComponent.prototype.ngAfterViewInit = function () {
2403
+ this.getPrintTemplates();
2404
+ };
2119
2405
  SendMethodDialogComponent.prototype.getPrinters = function () {
2120
2406
  return __awaiter(this, void 0, void 0, function () {
2121
2407
  var _this = this;
@@ -2146,20 +2432,23 @@
2146
2432
  this.headerTitle = 'Verzendopties';
2147
2433
  }
2148
2434
  };
2149
- SendMethodDialogComponent.prototype.loadLayouts = function () {
2150
- var printJob$1 = new printJob.PrintJob();
2151
- // this.printLayouts = this._stockService.getPrintTemplates(printJob);
2152
- };
2153
2435
  SendMethodDialogComponent.prototype.onPrinterClicked = function (printer) {
2154
2436
  this.defaultPrinter = printer.name;
2155
2437
  this.showPrinterSelections = !this.showPrinterSelections;
2156
2438
  };
2439
+ SendMethodDialogComponent.prototype.getPrintTemplates = function () {
2440
+ var _this = this;
2441
+ var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo();
2442
+ this._stockService.getStockStickerTemplates(data).then(function (templates) {
2443
+ _this.printTemplates = templates;
2444
+ });
2445
+ };
2157
2446
  return SendMethodDialogComponent;
2158
2447
  }());
2159
2448
  SendMethodDialogComponent.decorators = [
2160
2449
  { type: i0.Component, args: [{
2161
2450
  selector: "ione-send-method-dialog",
2162
- template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"lov-wrapper clickable\" (click)=\"togglePrinterSelection()\">\n <div class=\"selected-printer-wrapper\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\" *ngIf=\"printerList\">\n <span class=\"printer-name\" [textContent]=\"defaultPrinter\"></span>\n <span class=\"printer-status\" [textContent]=\"defaultPrinter.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n\n <div class=\"standard-printer-wrapper\">\n <div class=\"standard-printer-link\" (click)=\"showStandardPrinterOptions = !showStandardPrinterOptions\">\n <co-icon class=\"arrow-icon\" [iconData]=\"iconCacheService.getIcon(icons.ArrowFatRight)\"></co-icon>\n <span class=\"standard-printer-message\" [textContent]=\"'Standaard printer voor lay-out instellen'\"></span>\n </div>\n\n <div class=\"standard-printer-selections\" *ngIf=\"showStandardPrinterOptions\">\n <co-input-checkbox\n [(model)]=\"models[0]\"\n [label]=\"'Per gebruiker instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n <co-input-checkbox\n [(model)]=\"models[1]\"\n [label]=\"'Voor alle gebruikers instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n </div>\n\n <div class=\"print-footer-wrapper\">\n <div class=\"input-number-wrapper\">\n <co-input-number-picker class=\"number-picker\"\n [step]=\"1\" [(model)]=\"amountToPrint\" [min]=\"1\"\n [ngModelOptions]=\"{debounce: 1}\">\n </co-input-number-picker>\n </div>\n <div class=\"custom-button-wrapper print-button\" (click)=\"handlePrintClicked()\">\n <span [textContent]=\"'Print'\"></span>\n </div>\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"printer-content-container\" @slideInOut *ngIf=\"showPrinterSelections\">\n <div class=\"selected-printer-wrapper selection clickable\" *ngFor=\"let printers of printerList\" (click)=\"onPrinterClicked(printers)\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\">\n <span class=\"printer-name\" [textContent]=\"printers.name\"></span>\n <span class=\"printer-status\" [textContent]=\"printers.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" *ngIf=\"!showPrinterSelections\"\n [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
2451
+ template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"lov-wrapper clickable\" (click)=\"togglePrinterSelection()\">\n <div class=\"selected-printer-wrapper\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\" *ngIf=\"printerList\">\n <span class=\"printer-name\" [textContent]=\"defaultPrinter\"></span>\n <span class=\"printer-status\" [textContent]=\"defaultPrinter.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n\n <div class=\"standard-printer-wrapper\">\n <div class=\"standard-printer-link\" (click)=\"showStandardPrinterOptions = !showStandardPrinterOptions\">\n <co-icon class=\"arrow-icon\" [iconData]=\"iconCacheService.getIcon(icons.ArrowFatRight)\"></co-icon>\n <span class=\"standard-printer-message\" [textContent]=\"'Standaard printer voor lay-out instellen'\"></span>\n </div>\n\n <div class=\"standard-printer-selections\" *ngIf=\"showStandardPrinterOptions\">\n <co-input-checkbox\n [(model)]=\"models[0]\"\n [label]=\"'Per gebruiker instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n <co-input-checkbox\n [(model)]=\"models[1]\"\n [label]=\"'Voor alle gebruikers instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n </div>\n\n <div class=\"print-footer-wrapper\">\n <div class=\"input-number-wrapper\">\n <co-input-number-picker class=\"number-picker\"\n [step]=\"1\" [(model)]=\"amountToPrint\" [min]=\"1\"\n [ngModelOptions]=\"{debounce: 1}\">\n </co-input-number-picker>\n </div>\n <div class=\"custom-button-wrapper print-button\" (click)=\"handlePrintClicked()\">\n <span [textContent]=\"'Print'\"></span>\n </div>\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"printer-content-container\" @slideInOut *ngIf=\"showPrinterSelections\">\n <div class=\"selected-printer-wrapper selection clickable\" *ngFor=\"let printers of printerList\" (click)=\"onPrinterClicked(printers)\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\">\n <span class=\"printer-name\" [textContent]=\"printers.name\"></span>\n <span class=\"printer-status\" [textContent]=\"printers.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" *ngIf=\"!showPrinterSelections\"\n [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
2163
2452
  encapsulation: i0.ViewEncapsulation.None,
2164
2453
  animations: [
2165
2454
  animations.trigger('slideInOut', [
@@ -2175,6 +2464,7 @@
2175
2464
  { type: StockService }
2176
2465
  ]; };
2177
2466
  SendMethodDialogComponent.propDecorators = {
2467
+ options: [{ type: i0.Input }],
2178
2468
  showDialog: [{ type: i0.Input }],
2179
2469
  headerTitle: [{ type: i0.Input }],
2180
2470
  printerList: [{ type: i0.Input }],
@@ -2209,6 +2499,57 @@
2209
2499
  },] }
2210
2500
  ];
2211
2501
 
2502
+ var StockChangeAmountComponent = /** @class */ (function () {
2503
+ function StockChangeAmountComponent(_stockService) {
2504
+ this._stockService = _stockService;
2505
+ this.closeStockChangeAmount = new i0.EventEmitter();
2506
+ this.stockState = [];
2507
+ this.stockStateDropdownField = { text: "stateDescription", value: "stockStateId" };
2508
+ }
2509
+ StockChangeAmountComponent.prototype.ngAfterViewInit = function () {
2510
+ this.getStockState();
2511
+ };
2512
+ StockChangeAmountComponent.prototype.closeDialogClick = function () {
2513
+ this.closeStockChangeAmount.emit();
2514
+ };
2515
+ StockChangeAmountComponent.prototype.handleOkClick = function (data) {
2516
+ return __awaiter(this, void 0, void 0, function () {
2517
+ return __generator(this, function (_a) {
2518
+ switch (_a.label) {
2519
+ case 0: return [4 /*yield*/, this._stockService.updateArticleDetails(data)];
2520
+ case 1:
2521
+ _a.sent();
2522
+ return [2 /*return*/];
2523
+ }
2524
+ });
2525
+ });
2526
+ };
2527
+ StockChangeAmountComponent.prototype.handleCancelClick = function () {
2528
+ this.closeStockChangeAmount.emit();
2529
+ };
2530
+ StockChangeAmountComponent.prototype.getStockState = function () {
2531
+ var _this = this;
2532
+ this._stockService.getStockState().then(function (state) {
2533
+ _this.stockState = state;
2534
+ });
2535
+ };
2536
+ return StockChangeAmountComponent;
2537
+ }());
2538
+ StockChangeAmountComponent.decorators = [
2539
+ { type: i0.Component, args: [{
2540
+ selector: "co-stock-change-amount",
2541
+ template: "\n <div class=\"stock-transfer\">\n <co-dialog-wizard [showCloseIcon]=\"true\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"'STOCK_CHANGE_REASON'\"></span>\n </ng-container>\n <div class=\"popup-wrapper\">\n <co-drop-down-list [collection]=\"stockState\"\n [fields]=\"stockStateDropdownField\"\n [placeholder]=\"'STOCK_STATE'\"\n [(model)]=\"selectedArticleDetailsData.stockStateId\"\n ></co-drop-down-list>\n\n <co-input-textarea [(model)]=\"selectedArticleDetailsData.stockStateRemark\"\n\n ></co-input-textarea>\n <div class=\"ok-cancel-buttons\">\n <co-button [textContent]=\"'Ok'\" (click)=\"handleOkClick(selectedArticleDetailsData)\"></co-button>\n <co-button [textContent]=\"'Annuleren'\" (click)=\"handleCancelClick()\"></co-button>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
2542
+ encapsulation: i0.ViewEncapsulation.None
2543
+ },] }
2544
+ ];
2545
+ StockChangeAmountComponent.ctorParameters = function () { return [
2546
+ { type: StockService }
2547
+ ]; };
2548
+ StockChangeAmountComponent.propDecorators = {
2549
+ selectedArticleDetailsData: [{ type: i0.Input }],
2550
+ closeStockChangeAmount: [{ type: i0.Output }]
2551
+ };
2552
+
2212
2553
  var StockModule = /** @class */ (function () {
2213
2554
  function StockModule() {
2214
2555
  }
@@ -2227,14 +2568,18 @@
2227
2568
  corecomponents_v12.ImageModule,
2228
2569
  corecomponents_v12.InputTextModule,
2229
2570
  SendMethodDialogModule,
2230
- corecomponents_v12.IconModule
2571
+ corecomponents_v12.IconModule,
2572
+ corecomponents_v12.InputNumberPickerModule,
2573
+ corecomponents_v12.CoDialogWizardModule,
2574
+ corecomponents_v12.InputTextareaModule
2231
2575
  ],
2232
2576
  declarations: [
2233
2577
  StockComponent,
2234
2578
  StockInformationComponent,
2235
2579
  StockInformationGridComponent,
2236
2580
  StockLocationComponent,
2237
- StockTransferComponent
2581
+ StockTransferComponent,
2582
+ StockChangeAmountComponent
2238
2583
  ],
2239
2584
  exports: [
2240
2585
  StockComponent
@@ -2246,6 +2591,229 @@
2246
2591
  },] }
2247
2592
  ];
2248
2593
 
2594
+ var KeyboardCode;
2595
+ (function (KeyboardCode) {
2596
+ KeyboardCode["Backspace"] = "Backspace";
2597
+ KeyboardCode["Digit0"] = "Digit0";
2598
+ KeyboardCode["Digit1"] = "Digit1";
2599
+ KeyboardCode["Digit2"] = "Digit2";
2600
+ KeyboardCode["Digit3"] = "Digit3";
2601
+ KeyboardCode["Digit4"] = "Digit4";
2602
+ KeyboardCode["Digit5"] = "Digit5";
2603
+ KeyboardCode["Digit6"] = "Digit6";
2604
+ KeyboardCode["Digit7"] = "Digit7";
2605
+ KeyboardCode["Digit8"] = "Digit8";
2606
+ KeyboardCode["Digit9"] = "Digit9";
2607
+ KeyboardCode["Enter"] = "Enter";
2608
+ KeyboardCode["Escape"] = "Escape";
2609
+ KeyboardCode["Minus"] = "Minus";
2610
+ KeyboardCode["Numpad0"] = "Numpad0";
2611
+ KeyboardCode["Numpad1"] = "Numpad1";
2612
+ KeyboardCode["Numpad2"] = "Numpad2";
2613
+ KeyboardCode["Numpad3"] = "Numpad3";
2614
+ KeyboardCode["Numpad4"] = "Numpad4";
2615
+ KeyboardCode["Numpad5"] = "Numpad5";
2616
+ KeyboardCode["Numpad6"] = "Numpad6";
2617
+ KeyboardCode["Numpad7"] = "Numpad7";
2618
+ KeyboardCode["Numpad8"] = "Numpad8";
2619
+ KeyboardCode["Numpad9"] = "Numpad9";
2620
+ KeyboardCode["NumpadDecimal"] = "NumpadDecimal";
2621
+ KeyboardCode["NumpadEnter"] = "NumpadEnter";
2622
+ KeyboardCode["NumpadSubtract"] = "NumpadSubtract";
2623
+ KeyboardCode["Period"] = "Period";
2624
+ })(KeyboardCode || (KeyboardCode = {}));
2625
+
2626
+ var KeyPadComponent = /** @class */ (function () {
2627
+ function KeyPadComponent(iconCacheService) {
2628
+ this.iconCacheService = iconCacheService;
2629
+ this.icons = Icon;
2630
+ this.showValue = true;
2631
+ this.emitModelChangeOnEnter = true;
2632
+ this.modelChange = new i0.EventEmitter();
2633
+ this.internalModelChange = new i0.EventEmitter();
2634
+ this.enterClick = new i0.EventEmitter();
2635
+ this._validKeyMap = new Map([
2636
+ [KeyboardCode.Digit0, "0"],
2637
+ [KeyboardCode.Digit1, "1"],
2638
+ [KeyboardCode.Digit2, "2"],
2639
+ [KeyboardCode.Digit3, "3"],
2640
+ [KeyboardCode.Digit4, "4"],
2641
+ [KeyboardCode.Digit5, "5"],
2642
+ [KeyboardCode.Digit6, "6"],
2643
+ [KeyboardCode.Digit7, "7"],
2644
+ [KeyboardCode.Digit8, "8"],
2645
+ [KeyboardCode.Digit9, "9"],
2646
+ [KeyboardCode.Numpad0, "0"],
2647
+ [KeyboardCode.Numpad1, "1"],
2648
+ [KeyboardCode.Numpad2, "2"],
2649
+ [KeyboardCode.Numpad3, "3"],
2650
+ [KeyboardCode.Numpad4, "4"],
2651
+ [KeyboardCode.Numpad5, "5"],
2652
+ [KeyboardCode.Numpad6, "6"],
2653
+ [KeyboardCode.Numpad7, "7"],
2654
+ [KeyboardCode.Numpad8, "8"],
2655
+ [KeyboardCode.Numpad9, "9"],
2656
+ [KeyboardCode.NumpadDecimal, "."],
2657
+ [KeyboardCode.Period, "."]
2658
+ ]);
2659
+ this.isNegative = false;
2660
+ this._model = 0;
2661
+ this._internalModel = "0";
2662
+ this._maxCharacters = 11;
2663
+ }
2664
+ Object.defineProperty(KeyPadComponent.prototype, "model", {
2665
+ get: function () {
2666
+ return this._model;
2667
+ },
2668
+ set: function (value) {
2669
+ this._model = value;
2670
+ this._internalModel = this._model + "";
2671
+ },
2672
+ enumerable: false,
2673
+ configurable: true
2674
+ });
2675
+ KeyPadComponent.prototype.showClass = function () {
2676
+ return true;
2677
+ };
2678
+ KeyPadComponent.prototype.handleKeyDown = function (event) {
2679
+ this._keyDown(event);
2680
+ };
2681
+ Object.defineProperty(KeyPadComponent.prototype, "internalModel", {
2682
+ get: function () {
2683
+ return this._internalModel;
2684
+ },
2685
+ set: function (value) {
2686
+ this._internalModel = value;
2687
+ this.isNegative = parseFloat(this._internalModel) < 0;
2688
+ this.internalModelChange.emit(this._internalModel);
2689
+ },
2690
+ enumerable: false,
2691
+ configurable: true
2692
+ });
2693
+ KeyPadComponent.prototype.handleMinusClick = function (event) {
2694
+ var model = parseFloat(this.internalModel);
2695
+ if (model !== 0) {
2696
+ if (model < 0) {
2697
+ this.internalModel = Math.abs(model) + "";
2698
+ }
2699
+ else {
2700
+ this.internalModel = -model + "";
2701
+ }
2702
+ }
2703
+ this._emitModelChange();
2704
+ };
2705
+ KeyPadComponent.prototype.handleClearClick = function (event) {
2706
+ this.internalModel = "0";
2707
+ this._emitModelChange();
2708
+ };
2709
+ KeyPadComponent.prototype.handleBsClick = function (event) {
2710
+ var wish = this.internalModel;
2711
+ wish = wish.slice(0, wish.length - 1) || "0";
2712
+ if (!isNaN(parseFloat(wish))) {
2713
+ this.internalModel = parseFloat(wish) + "";
2714
+ }
2715
+ this._emitModelChange();
2716
+ };
2717
+ KeyPadComponent.prototype.handleButtonClick = function (chr) {
2718
+ this._updateModel(chr);
2719
+ };
2720
+ KeyPadComponent.prototype.handleEnterClick = function (event) {
2721
+ this._emitModelChange(true);
2722
+ this.enterClick.emit();
2723
+ };
2724
+ KeyPadComponent.prototype._updateModel = function (value) {
2725
+ if (value === undefined || value === null ||
2726
+ (value === '.' && this.internalModel.indexOf('.') > -1) ||
2727
+ this.internalModel.length >= this._maxCharacters) {
2728
+ return;
2729
+ }
2730
+ this.internalModel = this.internalModel !== "0" ? this.internalModel + value : value;
2731
+ this._emitModelChange();
2732
+ };
2733
+ KeyPadComponent.prototype._keyDown = function (event) {
2734
+ if (this._isEnter(event)) {
2735
+ this.handleEnterClick(event);
2736
+ }
2737
+ else if (this._isMinus(event)) {
2738
+ this.handleMinusClick(event);
2739
+ }
2740
+ else if (this._isEscape(event)) {
2741
+ this.handleClearClick(event);
2742
+ }
2743
+ else if (this._isBackspace(event)) {
2744
+ this.handleBsClick(event);
2745
+ }
2746
+ else {
2747
+ this._updateModel(this._validKeyMap.get(event.code));
2748
+ }
2749
+ };
2750
+ KeyPadComponent.prototype._isEnter = function (event) {
2751
+ return event.code === KeyboardCode.Enter || event.code === KeyboardCode.NumpadEnter;
2752
+ };
2753
+ KeyPadComponent.prototype._isMinus = function (event) {
2754
+ return event.code === KeyboardCode.Minus || event.code === KeyboardCode.NumpadSubtract;
2755
+ };
2756
+ KeyPadComponent.prototype._isEscape = function (event) {
2757
+ return event.code === KeyboardCode.Escape;
2758
+ };
2759
+ KeyPadComponent.prototype._isBackspace = function (event) {
2760
+ return event.code === KeyboardCode.Backspace;
2761
+ };
2762
+ KeyPadComponent.prototype._emitModelChange = function (enter) {
2763
+ if (enter === void 0) { enter = false; }
2764
+ if ((enter && this.emitModelChangeOnEnter) || (!enter && !this.emitModelChangeOnEnter)) {
2765
+ var model = parseFloat(this.internalModel);
2766
+ if (!isNaN(model)) {
2767
+ if (enter && this.emitModelChangeOnEnter) {
2768
+ this.model = model;
2769
+ }
2770
+ this.modelChange.emit(model);
2771
+ }
2772
+ }
2773
+ };
2774
+ return KeyPadComponent;
2775
+ }());
2776
+ KeyPadComponent.decorators = [
2777
+ { type: i0.Component, args: [{
2778
+ selector: 'co-key-pad',
2779
+ template: "\n <div class=\"key-pad-wrapper\">\n <div class=\"key-pad-model-wrapper\" *ngIf=\"showValue\">\n <div class=\"key-pad-model\" [textContent]=\"internalModel\" [class.negative]=\"isNegative\"></div>\n </div>\n <div class=\"key-pad-button-wrapper\">\n <div class=\"key-pad-button button-7\" [textContent]=\"'7'\" (click)=\"handleButtonClick('7')\"></div>\n <div class=\"key-pad-button button-8\" [textContent]=\"'8'\" (click)=\"handleButtonClick('8')\"></div>\n <div class=\"key-pad-button button-9\" [textContent]=\"'9'\" (click)=\"handleButtonClick('9')\"></div>\n <div class=\"key-pad-button button-bs\" (click)=\"handleBsClick($event)\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.DeleteLeftRegular)\"></co-icon>\n </div>\n <div class=\"key-pad-button button-4\" [textContent]=\"'4'\" (click)=\"handleButtonClick('4')\"></div>\n <div class=\"key-pad-button button-5\" [textContent]=\"'5'\" (click)=\"handleButtonClick('5')\"></div>\n <div class=\"key-pad-button button-6\" [textContent]=\"'6'\" (click)=\"handleButtonClick('6')\"></div>\n <div class=\"key-pad-button button-minus\" [textContent]=\"'-'\" (click)=\"handleMinusClick($event)\"></div>\n <div class=\"key-pad-button button-1\" [textContent]=\"'1'\" (click)=\"handleButtonClick('1')\"></div>\n <div class=\"key-pad-button button-2\" [textContent]=\"'2'\" (click)=\"handleButtonClick('2')\"></div>\n <div class=\"key-pad-button button-3\" [textContent]=\"'3'\" (click)=\"handleButtonClick('3')\"></div>\n <div class=\"key-pad-button button-enter\" (click)=\"handleEnterClick($event)\">\n <span [textContent]=\"'enter'\"></span>\n </div>\n <div class=\"key-pad-button button-0\" [textContent]=\"'0'\" (click)=\"handleButtonClick('0')\"></div>\n <div class=\"key-pad-button button-dot\" [textContent]=\"'.'\" (click)=\"handleButtonClick('.')\"></div>\n </div>\n </div>\n ",
2780
+ encapsulation: i0.ViewEncapsulation.None
2781
+ },] }
2782
+ ];
2783
+ KeyPadComponent.ctorParameters = function () { return [
2784
+ { type: IconCacheService }
2785
+ ]; };
2786
+ KeyPadComponent.propDecorators = {
2787
+ model: [{ type: i0.Input }],
2788
+ showValue: [{ type: i0.Input }],
2789
+ emitModelChangeOnEnter: [{ type: i0.Input }],
2790
+ modelChange: [{ type: i0.Output }],
2791
+ internalModelChange: [{ type: i0.Output }],
2792
+ enterClick: [{ type: i0.Output }],
2793
+ showClass: [{ type: i0.HostBinding, args: ['class.co-key-pad',] }],
2794
+ handleKeyDown: [{ type: i0.HostListener, args: ['window:keydown', ['$event'],] }]
2795
+ };
2796
+
2797
+ var KeyPadModule = /** @class */ (function () {
2798
+ function KeyPadModule() {
2799
+ }
2800
+ return KeyPadModule;
2801
+ }());
2802
+ KeyPadModule.decorators = [
2803
+ { type: i0.NgModule, args: [{
2804
+ imports: [
2805
+ common.CommonModule,
2806
+ corecomponents_v12.IconModule
2807
+ ],
2808
+ declarations: [
2809
+ KeyPadComponent
2810
+ ],
2811
+ exports: [
2812
+ KeyPadComponent
2813
+ ]
2814
+ },] }
2815
+ ];
2816
+
2249
2817
  /*
2250
2818
  * Public API Surface of sharedcomponents
2251
2819
  */
@@ -2256,6 +2824,8 @@
2256
2824
 
2257
2825
  exports.DocsignComponent = DocsignComponent;
2258
2826
  exports.DocsignModule = DocsignModule;
2827
+ exports.KeyPadComponent = KeyPadComponent;
2828
+ exports.KeyPadModule = KeyPadModule;
2259
2829
  exports.SendMethodDialogComponent = SendMethodDialogComponent;
2260
2830
  exports.SendMethodDialogModule = SendMethodDialogModule;
2261
2831
  exports.StockComponent = StockComponent;
@@ -2269,6 +2839,7 @@
2269
2839
  exports["ɵg"] = StockInformationGridComponent;
2270
2840
  exports["ɵh"] = StockLocationComponent;
2271
2841
  exports["ɵi"] = StockTransferComponent;
2842
+ exports["ɵj"] = StockChangeAmountComponent;
2272
2843
 
2273
2844
  Object.defineProperty(exports, '__esModule', { value: true });
2274
2845