@colijnit/transaction 256.1.86 → 256.1.87

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.
@@ -3,8 +3,8 @@ export class Version {
3
3
  constructor() {
4
4
  this.name = "@colijnit/transaction";
5
5
  this.description = "Colijn IT transaction package";
6
- this.symVer = "256.1.86";
7
- this.publishDate = "19/05/2025, 17:49:00";
6
+ this.symVer = "256.1.87";
7
+ this.publishDate = "29/05/2025, 16:34:37";
8
8
  }
9
9
  }
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsc0JBQXNCLENBQUM7SUFDOUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuODZcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIxOS8wNS8yMDI1LCAxNzo0OTowMFwiO1xufSJdfQ==
10
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsc0JBQXNCLENBQUM7SUFDOUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuODdcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyOS8wNS8yMDI1LCAxNjozNDozN1wiO1xufSJdfQ==
@@ -290,8 +290,8 @@ class Version {
290
290
  constructor() {
291
291
  this.name = "@colijnit/transaction";
292
292
  this.description = "Colijn IT transaction package";
293
- this.symVer = "256.1.86";
294
- this.publishDate = "19/05/2025, 17:49:00";
293
+ this.symVer = "256.1.87";
294
+ this.publishDate = "29/05/2025, 16:34:37";
295
295
  }
296
296
  }
297
297
 
@@ -10927,7 +10927,7 @@ class TransactionBaseService extends BaseModuleService {
10927
10927
  return __awaiter(this, void 0, void 0, function* () {
10928
10928
  this.transactionEventService.transactionLineAdded.next(undefined); // reset line added
10929
10929
  const transactionInfoResponse = yield this.connector.getTransactionById(transactionId);
10930
- if (transactionInfoResponse.isSuccess) {
10930
+ if (transactionInfoResponse && transactionInfoResponse.isSuccess) {
10931
10931
  yield this.rememberCurrentTransaction(transactionInfoResponse);
10932
10932
  }
10933
10933
  });
@@ -15373,20 +15373,21 @@ class CustomerGroupsComponent {
15373
15373
  return __awaiter(this, void 0, void 0, function* () {
15374
15374
  this._connector.getCustomerGroups().then((groups) => {
15375
15375
  this.customerGroups = groups;
15376
- this._setSelectedCustomerGroup();
15376
+ if (!this._model && this.defaultValue !== null) {
15377
+ this.handleCustomerGroupChange(this.customerGroups.find(c => c.groepsnummer === this.defaultValue.toString()));
15378
+ }
15377
15379
  });
15378
15380
  });
15379
15381
  }
15380
15382
  handleCustomerGroupChange(customerGroup) {
15381
15383
  this.selectedCustomerGroup = customerGroup;
15382
- this.modelChange.emit(this.selectedCustomerGroup.groepsnummer);
15384
+ this._model = this.selectedCustomerGroup.groepsnummer;
15385
+ this.modelChange.emit(this._model);
15383
15386
  }
15384
15387
  _setSelectedCustomerGroup() {
15385
- var _a, _b;
15386
15388
  if (!this.customerGroups) {
15387
15389
  return;
15388
15390
  }
15389
- (_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
15390
15391
  this.selectedCustomerGroup = this.customerGroups.find(c => c.groepsnummer === this.model);
15391
15392
  }
15392
15393
  }
@@ -32988,7 +32989,7 @@ class TransactionLineSidePanelArticleDetailsComponent {
32988
32989
  }
32989
32990
  _getAlternateSuppliers() {
32990
32991
  this.alternateSuppliers = [];
32991
- if (!this.suppliers || this.suppliers.length === 0) {
32992
+ if (!this.suppliers || this.suppliers.length === 0 || !this.purchaseAdviceLine) {
32992
32993
  return;
32993
32994
  }
32994
32995
  this.selectedSupplierId = this.purchaseAdviceLine.supplierId;