@colijnit/transaction 12.1.31 → 12.1.32

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.
@@ -429,10 +429,9 @@ class Dictionary {
429
429
  "SAME_AS_DELIVERY": "Hetzelfde als bezorgadres",
430
430
  "SAVE": "Opslaan",
431
431
  "SEARCH": "Zoeken",
432
- "SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
433
- "SEARCH_DELIVERY_METHOD": "Zoek levermethode",
434
- "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
435
432
  "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Zoeken op nummer, klant of datum",
433
+ "SEARCH_IN_COLLECTION": "Zoek binnen collectie...",
434
+ "SEARCH_ADD_ARTICLE": "Zoeken en toevoegen artikel",
436
435
  "SEARCH_WAREHOUSE": "Zoek magazijn",
437
436
  "SELECT": "Selecteren",
438
437
  "SELECT_A": "Selecteer een",
@@ -741,10 +740,9 @@ class Dictionary {
741
740
  "SAME_AS_DELIVERY": "Same as delivery address",
742
741
  "SAVE": "Save",
743
742
  "SEARCH": "Search",
743
+ "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
744
744
  "SEARCH_ADD_ARTICLE": "Search and add article",
745
- "SEARCH_DELIVERY_METHOD": "Search deliverymethod",
746
745
  "SEARCH_IN_COLLECTION": "Search in collection...",
747
- "SEARCH_NUMBER_CUSTOMER_OR_DATE": "Search for number, customer or date",
748
746
  "SEARCH_WAREHOUSE": "Search warehouse",
749
747
  "SELECT": "Select",
750
748
  "SELECT_A": "Select a",
@@ -2000,14 +1998,14 @@ class TransactionConnectorService {
2000
1998
  getDeliveryMethods() {
2001
1999
  return __awaiter(this, void 0, void 0, function* () {
2002
2000
  return new Promise((resolve, reject) => {
2003
- // const collection = this._collectionService.getCollection(DeliveryMethod.name);
2004
- // if (collection) {
2005
- // return resolve(collection);
2006
- // }
2001
+ const collection = this._collectionService.getCollection(DeliveryMethod.name);
2002
+ if (collection) {
2003
+ return resolve(collection);
2004
+ }
2007
2005
  return this.connector.getDeliveryMethods().then((result) => {
2008
2006
  if (result.validationResult && result.validationResult.success) {
2009
2007
  const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(DeliveryMethod, result.resultObjects);
2010
- // this._collectionService.cacheCollection(DeliveryMethod.name, collection);
2008
+ this._collectionService.cacheCollection(DeliveryMethod.name, collection);
2011
2009
  resolve(collection);
2012
2010
  }
2013
2011
  else {
@@ -2378,14 +2376,14 @@ class TransactionConnectorService {
2378
2376
  getWarehouses(branchNr) {
2379
2377
  return __awaiter(this, void 0, void 0, function* () {
2380
2378
  return new Promise((resolve, reject) => {
2381
- // const collection = this._collectionService.getCollection(Warehouse.name);
2382
- // if (collection) {
2383
- // return resolve(collection);
2384
- // }
2379
+ const collection = this._collectionService.getCollection(Warehouse.name);
2380
+ if (collection) {
2381
+ return resolve(collection);
2382
+ }
2385
2383
  return this.connector.getWarehouses(branchNr).then((result) => {
2386
2384
  if (result.validationResult && result.validationResult.success) {
2387
2385
  const collection = this._boFactory.makeBOArrayFromRawBackendDataArray(Warehouse, result.resultObjects);
2388
- // this._collectionService.cacheCollection(Warehouse.name, collection);
2386
+ this._collectionService.cacheCollection(Warehouse.name, collection);
2389
2387
  resolve(collection);
2390
2388
  }
2391
2389
  else {
@@ -12486,14 +12484,9 @@ class TransactionLineDeliveryMethodComponent extends TransactionLineBaseComponen
12486
12484
  this._transactionService.getDeliveryMethods().then((methods) => {
12487
12485
  this.data = methods.slice();
12488
12486
  this.data.forEach((d, index) => {
12489
- this.viewModels.push({
12490
- value: d.code,
12491
- text: d.description,
12492
- label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
12493
- checked: this.useTransactionLine ? this.transactionLine.deliveryMethodCode === d.code : index === 0
12494
- });
12487
+ this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.deliveryMethodCode === d.code : index === 0 });
12488
+ super.ngOnInit();
12495
12489
  });
12496
- super.ngOnInit();
12497
12490
  });
12498
12491
  }
12499
12492
  commitDeliveryMethod(method) {
@@ -12536,7 +12529,7 @@ TransactionLineDeliveryMethodComponent.decorators = [
12536
12529
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
12537
12530
  <co-input-checkbox
12538
12531
  [model]="row.checked"
12539
- [label]="row.label"
12532
+ [label]="row.value + ' ' + row.text"
12540
12533
  (click)="handleChecked($event, row)"
12541
12534
  ></co-input-checkbox>
12542
12535
  </div>
@@ -12710,12 +12703,7 @@ class TransactionLineCommissionCodeComponent extends TransactionLineBaseComponen
12710
12703
  this._transactionService.getCommissionCodes("NL").then((codes) => {
12711
12704
  this.data = codes.slice();
12712
12705
  this.data.forEach((d, index) => {
12713
- this.viewModels.push({
12714
- value: d.code,
12715
- text: d.description,
12716
- label: ((d.code !== null && d.code !== undefined) ? d.code + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
12717
- checked: this.useTransactionLine ? this.transactionLine.commissionCode === d.code : index === 0
12718
- });
12706
+ this.viewModels.push({ value: d.code, text: d.description, checked: this.useTransactionLine ? this.transactionLine.commissionCode === d.code : index === 0 });
12719
12707
  });
12720
12708
  });
12721
12709
  }
@@ -12759,7 +12747,7 @@ TransactionLineCommissionCodeComponent.decorators = [
12759
12747
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModels">
12760
12748
  <co-input-checkbox
12761
12749
  [model]="row.checked"
12762
- [label]="row.label"
12750
+ [label]="row.value + ' ' + row.text"
12763
12751
  (click)="handleChecked($event, row)"
12764
12752
  ></co-input-checkbox>
12765
12753
  </div>
@@ -12794,21 +12782,16 @@ class TransactionLineWarehouseComponent extends TransactionLineBaseComponent {
12794
12782
  constructor(_transactionService) {
12795
12783
  super();
12796
12784
  this._transactionService = _transactionService;
12797
- this.collection = [];
12785
+ this.data = [];
12798
12786
  }
12799
12787
  ngOnInit() {
12800
12788
  this.viewModels.length = 0;
12801
12789
  this._transactionService.getWarehouses(this.branch).then((warehouses) => {
12802
- this.collection = warehouses.slice();
12803
- this.collection.forEach((d, index) => {
12804
- this.viewModels.push({
12805
- value: d.warehouseNo,
12806
- text: d.description,
12807
- label: ((d.warehouseNo !== null && d.warehouseNo !== undefined) ? d.warehouseNo + ' ' : '') + ((d.description !== null && d.description !== undefined) ? d.description : ''),
12808
- checked: this.useTransactionLine ? this.transactionLine.warehouseNumber === d.warehouseNo : index === 0
12809
- });
12790
+ this.data = warehouses.slice();
12791
+ this.data.forEach((d, index) => {
12792
+ this.viewModels.push({ value: d.warehouseNo, text: d.description, checked: this.useTransactionLine ? this.transactionLine.warehouseNumber === d.warehouseNo : index === 0 });
12793
+ super.ngOnInit();
12810
12794
  });
12811
- super.ngOnInit();
12812
12795
  });
12813
12796
  }
12814
12797
  commitWarehouse(warehouse) {
@@ -12848,7 +12831,7 @@ TransactionLineWarehouseComponent.decorators = [
12848
12831
  <div class="co-transaction-default-flex-row" *ngFor="let row of viewModelsFiltered">
12849
12832
  <co-input-checkbox
12850
12833
  [model]="row.checked"
12851
- [label]="row.label"
12834
+ [label]="row.value + ' ' + row.text"
12852
12835
  (click)="handleChecked($event, row)"></co-input-checkbox>
12853
12836
  </div>
12854
12837
  `,
@@ -16662,6 +16645,19 @@ TransactionPurchaseOrderFilterContentArticleComponent.decorators = [
16662
16645
  <co-input-text [(model)]="searchRequest.batchNumber" [placeholder]="searchPlaceholder | localize"></co-input-text>
16663
16646
  </co-filter-item>
16664
16647
 
16648
+ <!--Leverancier-->
16649
+ <co-filter-item
16650
+ [placeholder]="'SUPPLIER' | localize"
16651
+ [expanded]="true"
16652
+ [collection]="suppliers"
16653
+ [searchPlaceholder]="searchCollectionPlaceholder | localize"
16654
+ [noResultsLabel]="noResultsLabel | localize"
16655
+ [showMoreLabel]="showMoreLabel | localize"
16656
+ [showLessLabel]="showLessLabel | localize"
16657
+ (collectionChange)="filterRequestService.handleCollectionChangeForRange($event, 'rangeSupplier')"
16658
+ >
16659
+ </co-filter-item>
16660
+
16665
16661
  <div class="filter-button-container">
16666
16662
  <co-button class="clickable" [label]="'Filter'" (click)="onFilterButtonClick()"></co-button>
16667
16663
  </div>