@colijnit/sharedcomponents 1.0.32 → 1.0.33

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