@colijnit/sharedcomponents 1.0.32 → 1.0.34

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.
@@ -1078,10 +1078,9 @@ StockComponent.decorators = [
1078
1078
 
1079
1079
  </co-stock-location>
1080
1080
  <co-stock-transfer *ngIf="showStockTransfer"
1081
- (handleCancelClicked)="backToStock()"
1081
+ (handleClick)="backToStock()"
1082
1082
  [article]="stockTransferArticle"
1083
1083
  [articleToTransfer]="stockTransferArticleDetails"
1084
- [stockSticker]="stockService.stockStickers"
1085
1084
  (handleStickerClicked)="handleStickerClicked.emit($event)"
1086
1085
  [articleWarehouse]="articleWarehouse"
1087
1086
  [allWarehouses]="allWarehouses"
@@ -1324,7 +1323,6 @@ class StockInformationGridComponent {
1324
1323
  this.getArticleDetails(data);
1325
1324
  this.hideOrShowTabs = false;
1326
1325
  this.hideOrShowLocationTab = true;
1327
- this._stockService.lockArticleDetails(this.articleDetailsInformation);
1328
1326
  }
1329
1327
  handleHistoryClick() {
1330
1328
  this.historyClicked.emit();
@@ -1402,29 +1400,39 @@ class StockInformationGridComponent {
1402
1400
  getOrderData() {
1403
1401
  return __awaiter(this, void 0, void 0, function* () {
1404
1402
  const orderData = new ArticleTransaction$1();
1405
- orderData.type = "V";
1403
+ orderData.type = "I";
1406
1404
  orderData.goodId = this.articleStockInformation[0].goodId.toString();
1407
1405
  this.orderInformation = yield this._stockService.getArticleTransaction(orderData);
1408
1406
  });
1409
1407
  }
1410
- onSelectLocation() {
1408
+ onLocationDropdownClick() {
1411
1409
  this._stockService.getStockManagementLocations(this.selectedWarehouse).then((locations) => {
1412
1410
  this.stockLocations = locations;
1413
1411
  });
1414
1412
  }
1413
+ onLocationSelected(location) {
1414
+ this.selectedArticleDetailsData.locationNo = location;
1415
+ }
1415
1416
  onOkClickSendLocations() {
1416
- console.log(this.article);
1417
- this.selectedArticleDetailsData.selected = true;
1418
- this.selectedArticleDetailsData.goodId = this.article.goodId;
1419
- this.selectedArticleDetailsData.entryDate = new Date();
1420
- this.selectedArticleDetailsData.warehouseNo = this.selectedWarehouse;
1421
- this._stockService.updateArticleDetails(this.selectedArticleDetailsData);
1417
+ return __awaiter(this, void 0, void 0, function* () {
1418
+ console.log(this.article);
1419
+ this.selectedArticleDetailsData.selected = true;
1420
+ this.selectedArticleDetailsData.goodId = this.article.goodId;
1421
+ this.selectedArticleDetailsData.entryDate = new Date();
1422
+ this.selectedArticleDetailsData.warehouseNo = this.selectedWarehouse;
1423
+ yield this._stockService.updateArticleDetails(this.selectedArticleDetailsData);
1424
+ yield this._stockService.getArticleDetails(this.articleDetailsInformation).then((details) => {
1425
+ this.articleDetails = details;
1426
+ });
1427
+ });
1422
1428
  }
1423
1429
  onCancelClickSendLocations() {
1424
1430
  }
1425
- amountInStockChanged(data, row) {
1426
- console.log(data);
1427
- console.log(row);
1431
+ amountInStockChanged(data) {
1432
+ this.selectedArticleDetailsData.amountInStock = data;
1433
+ }
1434
+ lockSelectedRow(row) {
1435
+ this._stockService.lockArticleDetails(row);
1428
1436
  }
1429
1437
  }
1430
1438
  StockInformationGridComponent.decorators = [
@@ -1458,7 +1466,7 @@ StockInformationGridComponent.decorators = [
1458
1466
  <co-simple-grid-column [headerText]="'ECONOMICAL_STOCK'" [field]="'economicalStock'" [order]="14"></co-simple-grid-column>
1459
1467
  <co-simple-grid-column [headerText]="'LOCATION'" [field]="'locationNo'" [order]="15">
1460
1468
  <ng-template #template let-row="row">
1461
- <span [textContent]="'Bekijken'" (click)="onLocationClick(row)"></span>
1469
+ <span class="location-link" [textContent]="'Bekijken'" (click)="onLocationClick(row)"></span>
1462
1470
  </ng-template>
1463
1471
  </co-simple-grid-column>
1464
1472
  </co-simple-grid>
@@ -1469,16 +1477,15 @@ StockInformationGridComponent.decorators = [
1469
1477
  [rowsPerPage]="20"
1470
1478
  >
1471
1479
  <co-simple-grid-column [headerText]="'IN_ORDER2'" [field]="'transactionNr'"></co-simple-grid-column>
1472
- <co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'user'"></co-simple-grid-column>
1480
+ <co-simple-grid-column [headerText]="'CUSTOMER'" [field]="'customerName'"></co-simple-grid-column>
1473
1481
  <co-simple-grid-column [headerText]="'DATE'">
1474
1482
  <ng-template #template let-row="row">
1475
1483
  <span [textContent]="row.transactionDate | date:'dd-MM-yyyy'"></span>
1476
1484
  </ng-template>
1477
1485
  </co-simple-grid-column>
1478
1486
  <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
1479
- <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'wareHouseNr'"></co-simple-grid-column>
1480
- <co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'locationNr'"></co-simple-grid-column>
1481
- <co-simple-grid-column [headerText]="'STOCK'" [field]="'amountInStock'"></co-simple-grid-column>
1487
+ <co-simple-grid-column [headerText]="'WAREHOUSE'" [field]="'warehouseNumber'"></co-simple-grid-column>
1488
+ <co-simple-grid-column [headerText]="'DESCRIPTION'" [field]="'warehouseDescription'"></co-simple-grid-column>
1482
1489
  <co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
1483
1490
  <ng-template #template let-row="row">
1484
1491
  <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick($event)"></co-icon>
@@ -1504,13 +1511,12 @@ StockInformationGridComponent.decorators = [
1504
1511
  </co-simple-grid-column>
1505
1512
  <co-simple-grid-column [headerText]="'AMOUNT'" [field]="'amountInOrder'"></co-simple-grid-column>
1506
1513
  <co-simple-grid-column [headerText]="'RESERVED'" [field]="'reserved'"></co-simple-grid-column>
1507
- <co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'freeStock'"></co-simple-grid-column>
1514
+ <co-simple-grid-column [headerText]="'FREE_STOCK'" [field]="'InOrderForStock'"></co-simple-grid-column>
1508
1515
  <co-simple-grid-column [headerText]="'DELIVERY_DATE1'">
1509
1516
  <ng-template #template let-row="row">
1510
1517
  <span [textContent]="row.deliveryDate | date:'dd-MM-yyyy'"></span>
1511
1518
  </ng-template>
1512
1519
  </co-simple-grid-column>
1513
- <co-simple-grid-column [headerText]="'RESERVE'" [field]="'reservation'"></co-simple-grid-column>
1514
1520
  </co-simple-grid>
1515
1521
  </div>
1516
1522
 
@@ -1538,6 +1544,7 @@ StockInformationGridComponent.decorators = [
1538
1544
  [showToolbar]="true"
1539
1545
  [showDelete]="true"
1540
1546
  [inlineEdit]="true"
1547
+ (dblClickRow)="lockSelectedRow($event)"
1541
1548
  >
1542
1549
  <div class="stock-location-group">
1543
1550
  <div class="stock-location-left-group">
@@ -1550,19 +1557,19 @@ StockInformationGridComponent.decorators = [
1550
1557
  [collection]="stockLocations"
1551
1558
  [fields]="dataLocationFields"
1552
1559
  [placeholder]="'LOCATION'"
1553
- (click)="onSelectLocation()"
1560
+ (click)="onLocationDropdownClick()"
1554
1561
  [required]="true"
1555
1562
  ></co-drop-down-list>
1556
1563
  </ng-template>
1557
1564
  </co-simple-grid-column>
1558
- <co-simple-grid-column [headerText]="'BATCH'" [field]="'batchNo'">
1565
+ <co-simple-grid-column *ngIf="articleDetails" [headerText]="'BATCH'" [field]="'batchNo'">
1559
1566
  <ng-template #editTemplate let-row="row">
1560
1567
  <co-input-text [(model)]="row.batchNo"
1561
1568
  [placeholder]="'BATCH'"
1562
1569
  ></co-input-text>
1563
1570
  </ng-template>
1564
1571
  </co-simple-grid-column>
1565
- <co-simple-grid-column [headerText]="'SERIAL_NO'" [field]="'serialNo'">
1572
+ <co-simple-grid-column *ngIf="articleDetails" [headerText]="'SERIAL_NO'" [field]="'serialNo'">
1566
1573
  <ng-template #editTemplate let-row="row">
1567
1574
  <co-input-text [(model)]="row.serialNo"
1568
1575
  [placeholder]="'SERIAL_NO'"
@@ -1573,16 +1580,35 @@ StockInformationGridComponent.decorators = [
1573
1580
  <ng-template #editTemplate let-row="row">
1574
1581
  <co-input-text [(model)]="row.amountInStock"
1575
1582
  [label]="'STOCK'"
1576
- (modelChange)="amountInStockChanged($event, row)"
1583
+ (modelChange)="amountInStockChanged($event)"
1577
1584
  ></co-input-text>
1578
1585
  </ng-template>
1579
1586
  </co-simple-grid-column>
1580
- <co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'stockAssigned'" ></co-simple-grid-column>
1581
- <co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'perceptibleStorage'"></co-simple-grid-column>
1582
- <co-simple-grid-column [headerText]="'PHYSICAL_STOCK'" [field]="'amountInStockOriginal'"></co-simple-grid-column>
1583
- <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currency'"></co-simple-grid-column>
1584
- <co-simple-grid-column [headerText]="'PURCHASE_PRICE'" [field]="'purchasePrice'"></co-simple-grid-column>
1585
- <co-simple-grid-column [headerText]="'SUPPLIER_NUMBER'" [field]="'supplierNo'"></co-simple-grid-column>
1587
+ <co-simple-grid-column [headerText]="'ALLOCATED'" [field]="'stockAssigned'">
1588
+ <ng-template #editTemplate let-row="row">
1589
+ <span [textContent]="row.stockAssigned"></span>
1590
+ </ng-template>
1591
+ </co-simple-grid-column>
1592
+ <co-simple-grid-column [headerText]="'AVAILABLE_STOCK'" [field]="'amountInStockFree'">
1593
+ <ng-template #editTemplate let-row="row">
1594
+ <span [textContent]="row.amountInStockFree"></span>
1595
+ </ng-template>
1596
+ </co-simple-grid-column>
1597
+ <co-simple-grid-column [headerText]="'VALUTA'" [field]="'currency'">
1598
+ <ng-template #editTemplate let-row="row">
1599
+ <span [textContent]="row.currency"></span>
1600
+ </ng-template>
1601
+ </co-simple-grid-column>
1602
+ <co-simple-grid-column [headerText]="'PURCHASE_PRICE'" [field]="'purchasePrice'">
1603
+ <ng-template #editTemplate let-row="row">
1604
+ <span [textContent]="row.purchasePrice"></span>
1605
+ </ng-template>
1606
+ </co-simple-grid-column>
1607
+ <co-simple-grid-column [headerText]="'SUPPLIER_NUMBER'" [field]="'supplierNo'">
1608
+ <ng-template #editTemplate let-row="row">
1609
+ <span [textContent]="row.supplierNo"></span>
1610
+ </ng-template>
1611
+ </co-simple-grid-column>
1586
1612
  <co-simple-grid-column [headerText]="'TRANSFER'" [field]="'transfer'">
1587
1613
  <ng-template #template let-row="row">
1588
1614
  <co-icon class="menu-icon" [iconData]="iconCacheService.getIcon(icons.DeliveryTruck)" (click)="handleStockTransferClick(row)"></co-icon>
@@ -1660,7 +1686,6 @@ StockInformationGridComponent.decorators = [
1660
1686
  </div>
1661
1687
  <co-send-method-dialog *ngIf="showSendMethodDialog"
1662
1688
  (closeClick)="showSendMethodDialog = false"
1663
- (printButtonClicked)="printStockStickers()"
1664
1689
  ></co-send-method-dialog>
1665
1690
  `,
1666
1691
  encapsulation: ViewEncapsulation.None
@@ -1745,7 +1770,7 @@ StockLocationComponent.propDecorators = {
1745
1770
  class StockTransferComponent {
1746
1771
  constructor(_stockService) {
1747
1772
  this._stockService = _stockService;
1748
- this.handleCancelClicked = new EventEmitter();
1773
+ this.handleClick = new EventEmitter();
1749
1774
  this.handleStickerClicked = new EventEmitter();
1750
1775
  this.allWarehousesDropdownFields = { text: "warehouseDescription", value: "warehouseNo" };
1751
1776
  this.allLocationDropdownFields = { text: "locationNo", value: "locationNo" };
@@ -1762,10 +1787,11 @@ class StockTransferComponent {
1762
1787
  data.selected = true;
1763
1788
  data.entryDate = new Date;
1764
1789
  yield this._stockService.updateArticleDetails(data);
1790
+ this.handleClick.emit();
1765
1791
  });
1766
1792
  }
1767
1793
  handleCancelClick() {
1768
- this.handleCancelClicked.emit();
1794
+ this.handleClick.emit();
1769
1795
  }
1770
1796
  handleSelectedWarehouse(event) {
1771
1797
  this.selectedWarehouse = event;
@@ -1830,17 +1856,20 @@ StockTransferComponent.decorators = [
1830
1856
  <co-drop-down-list [collection]="warehouses"
1831
1857
  [fields]="allWarehousesDropdownFields"
1832
1858
  (modelChange)="handleSelectedWarehouse($event)"
1859
+ [placeholder]="'Magazijn'"
1833
1860
  [(model)]="articleToTransfer.targetWarehouse">
1834
1861
  </co-drop-down-list>
1835
1862
  <co-drop-down-list [collection]="locations"
1836
1863
  [fields]="allLocationDropdownFields"
1837
1864
  [(model)]="articleToTransfer.targetLocation"
1865
+ [placeholder]="'Locatie'"
1838
1866
  >
1839
1867
  </co-drop-down-list>
1840
1868
  <co-drop-down-list [collection]="stockState"
1841
1869
  [fields]="stockStateDropdownField"
1842
1870
  [placeholder]="'Voorraadstatus'"
1843
- [(model)]="articleToTransfer.stockStateId">
1871
+ [(model)]="articleToTransfer.stockStateId"
1872
+ >
1844
1873
  </co-drop-down-list>
1845
1874
  <co-input-text [placeholder]="'Omschrijving'"
1846
1875
  [(model)]="articleToTransfer.stockStateRemark">
@@ -1867,7 +1896,7 @@ StockTransferComponent.propDecorators = {
1867
1896
  articleToTransfer: [{ type: Input }],
1868
1897
  articleWarehouse: [{ type: Input }],
1869
1898
  allWarehouses: [{ type: Input }],
1870
- handleCancelClicked: [{ type: Output }],
1899
+ handleClick: [{ type: Output }],
1871
1900
  handleStickerClicked: [{ type: Output }]
1872
1901
  };
1873
1902