@colijnit/transaction 257.1.78 → 257.1.79
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.
- package/bundles/colijnit-transaction.umd.js +82 -24
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line-base.component.js +2 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-confirmed-delivery-date-button.component.js +36 -21
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +39 -22
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line-fields/transaction-line-confirmed-delivery-date-button.component.d.ts +1 -0
- package/lib/service/transaction-event.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "257.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "257.1.79";
|
|
37
|
+
this.publishDate = "9-7-2025 17:42:56";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -1535,6 +1535,7 @@
|
|
|
1535
1535
|
this.transactionLineChanged = new rxjs.Subject();
|
|
1536
1536
|
this.transactionLineCheckboxChanged = new rxjs.Subject();
|
|
1537
1537
|
this.transactionLineRefTransactionsChanged = new rxjs.BehaviorSubject(undefined);
|
|
1538
|
+
this.transactionLinePurchaseRefTransactionsChanged = new rxjs.BehaviorSubject(undefined);
|
|
1538
1539
|
this.transactionLineAdded = new rxjs.BehaviorSubject(undefined);
|
|
1539
1540
|
this.openArticleTextOverview = new rxjs.Subject();
|
|
1540
1541
|
this.addArticleText = new rxjs.Subject();
|
|
@@ -27514,6 +27515,7 @@
|
|
|
27514
27515
|
});
|
|
27515
27516
|
}
|
|
27516
27517
|
_this.hasPurchaseOrder = _this.transactionLine.refTransactionsPurchase.filter(function (r) { return r.refTransactionType === transactionKind_enum.TransactionKind.PurchaseOrder; }).length > 0;
|
|
27518
|
+
_this.transactionEventService.transactionLinePurchaseRefTransactionsChanged.next(_this.transactionLine);
|
|
27517
27519
|
_this.detectChanges();
|
|
27518
27520
|
});
|
|
27519
27521
|
}
|
|
@@ -27540,7 +27542,7 @@
|
|
|
27540
27542
|
__extends(TransactionPurchaseLineComponent, _super);
|
|
27541
27543
|
function TransactionPurchaseLineComponent() {
|
|
27542
27544
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
27543
|
-
_this.showConfirmedDeliveryDate =
|
|
27545
|
+
_this.showConfirmedDeliveryDate = true;
|
|
27544
27546
|
_this.statusBarConfigNames = {
|
|
27545
27547
|
statusBarBT: _this.cfgNames.StatusBarBT,
|
|
27546
27548
|
statusBarTG: _this.cfgNames.StatusBarTG,
|
|
@@ -37531,7 +37533,7 @@
|
|
|
37531
37533
|
_this._overlayService = _overlayService;
|
|
37532
37534
|
_this.icons = Icon;
|
|
37533
37535
|
_this.showConfirmedDeliveryDateChange = new i0.EventEmitter();
|
|
37534
|
-
_this.showConfirmedDeliveryDate =
|
|
37536
|
+
_this.showConfirmedDeliveryDate = true;
|
|
37535
37537
|
_this.isConfirmedDateLater = false;
|
|
37536
37538
|
_this._subs = [];
|
|
37537
37539
|
_this._handled = false;
|
|
@@ -37543,7 +37545,7 @@
|
|
|
37543
37545
|
TransactionLineConfirmedDeliveryDateButtonComponent.prototype.ngOnInit = function () {
|
|
37544
37546
|
var _this = this;
|
|
37545
37547
|
_super.prototype.ngOnInit.call(this);
|
|
37546
|
-
this._subs.push(this.transactionEventService.
|
|
37548
|
+
this._subs.push(this.transactionEventService.transactionLinePurchaseRefTransactionsChanged.subscribe(function (line) {
|
|
37547
37549
|
_this._checkConfirmedDeliveryDate(line);
|
|
37548
37550
|
}));
|
|
37549
37551
|
};
|
|
@@ -37560,24 +37562,80 @@
|
|
|
37560
37562
|
this._checkDates();
|
|
37561
37563
|
};
|
|
37562
37564
|
TransactionLineConfirmedDeliveryDateButtonComponent.prototype._checkConfirmedDeliveryDate = function (line) {
|
|
37563
|
-
|
|
37564
|
-
|
|
37565
|
-
|
|
37566
|
-
|
|
37567
|
-
|
|
37568
|
-
|
|
37569
|
-
|
|
37570
|
-
|
|
37571
|
-
|
|
37572
|
-
|
|
37573
|
-
|
|
37574
|
-
|
|
37575
|
-
|
|
37576
|
-
|
|
37577
|
-
|
|
37578
|
-
|
|
37579
|
-
|
|
37580
|
-
|
|
37565
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
37566
|
+
var _a, _b, _c, ref, refDate, e_1_1;
|
|
37567
|
+
var e_1, _d;
|
|
37568
|
+
return __generator(this, function (_e) {
|
|
37569
|
+
switch (_e.label) {
|
|
37570
|
+
case 0:
|
|
37571
|
+
if (!(line && line.lineNr === this.transactionLine.lineNr && line.refTransactionsPurchase && !this.confirmedDeliveryDate && this.visible && !this._handled)) return [3 /*break*/, 13];
|
|
37572
|
+
this.confirmedDeliveryDate = null;
|
|
37573
|
+
if (!(line.refTransactionsPurchase.length === 1)) return [3 /*break*/, 2];
|
|
37574
|
+
_a = this;
|
|
37575
|
+
return [4 /*yield*/, this._getdeliveryDate(line.refTransactionsPurchase[0])];
|
|
37576
|
+
case 1:
|
|
37577
|
+
_a.confirmedDeliveryDate = _e.sent();
|
|
37578
|
+
return [3 /*break*/, 12];
|
|
37579
|
+
case 2:
|
|
37580
|
+
if (!(line.refTransactionsPurchase.length > 1)) return [3 /*break*/, 11];
|
|
37581
|
+
_e.label = 3;
|
|
37582
|
+
case 3:
|
|
37583
|
+
_e.trys.push([3, 8, 9, 10]);
|
|
37584
|
+
_b = __values(line.refTransactionsPurchase), _c = _b.next();
|
|
37585
|
+
_e.label = 4;
|
|
37586
|
+
case 4:
|
|
37587
|
+
if (!!_c.done) return [3 /*break*/, 7];
|
|
37588
|
+
ref = _c.value;
|
|
37589
|
+
return [4 /*yield*/, this._getdeliveryDate(ref)];
|
|
37590
|
+
case 5:
|
|
37591
|
+
refDate = _e.sent();
|
|
37592
|
+
if (refDate && (this.confirmedDeliveryDate === null || this.confirmedDeliveryDate > refDate)) {
|
|
37593
|
+
this.confirmedDeliveryDate = refDate;
|
|
37594
|
+
}
|
|
37595
|
+
_e.label = 6;
|
|
37596
|
+
case 6:
|
|
37597
|
+
_c = _b.next();
|
|
37598
|
+
return [3 /*break*/, 4];
|
|
37599
|
+
case 7: return [3 /*break*/, 10];
|
|
37600
|
+
case 8:
|
|
37601
|
+
e_1_1 = _e.sent();
|
|
37602
|
+
e_1 = { error: e_1_1 };
|
|
37603
|
+
return [3 /*break*/, 10];
|
|
37604
|
+
case 9:
|
|
37605
|
+
try {
|
|
37606
|
+
if (_c && !_c.done && (_d = _b.return)) _d.call(_b);
|
|
37607
|
+
}
|
|
37608
|
+
finally { if (e_1) throw e_1.error; }
|
|
37609
|
+
return [7 /*endfinally*/];
|
|
37610
|
+
case 10: return [3 /*break*/, 12];
|
|
37611
|
+
case 11:
|
|
37612
|
+
this.confirmedDeliveryDate = null;
|
|
37613
|
+
_e.label = 12;
|
|
37614
|
+
case 12:
|
|
37615
|
+
if (this.confirmedDeliveryDate) {
|
|
37616
|
+
this.showConfirmedDeliveryDate = true;
|
|
37617
|
+
this._checkDates();
|
|
37618
|
+
}
|
|
37619
|
+
else {
|
|
37620
|
+
this.showConfirmedDeliveryDate = false;
|
|
37621
|
+
}
|
|
37622
|
+
this.showConfirmedDeliveryDateChange.emit(this.showConfirmedDeliveryDate);
|
|
37623
|
+
this._handled = true;
|
|
37624
|
+
_e.label = 13;
|
|
37625
|
+
case 13: return [2 /*return*/];
|
|
37626
|
+
}
|
|
37627
|
+
});
|
|
37628
|
+
});
|
|
37629
|
+
};
|
|
37630
|
+
TransactionLineConfirmedDeliveryDateButtonComponent.prototype._getdeliveryDate = function (ref) {
|
|
37631
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
37632
|
+
return __generator(this, function (_a) {
|
|
37633
|
+
switch (_a.label) {
|
|
37634
|
+
case 0: return [4 /*yield*/, this.service.getMaxConfirmedDeliveryDateForPurchaseOrder(ref.refTransactionId)];
|
|
37635
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
37636
|
+
}
|
|
37637
|
+
});
|
|
37638
|
+
});
|
|
37581
37639
|
};
|
|
37582
37640
|
TransactionLineConfirmedDeliveryDateButtonComponent.prototype._checkDates = function () {
|
|
37583
37641
|
if (this.transactionInfo && this.transactionLine && this.confirmedDeliveryDate) {
|
|
@@ -37595,7 +37653,7 @@
|
|
|
37595
37653
|
TransactionLineConfirmedDeliveryDateButtonComponent.decorators = [
|
|
37596
37654
|
{ type: i0.Component, args: [{
|
|
37597
37655
|
selector: 'co-transaction-line-confirmed-delivery-date-button',
|
|
37598
|
-
template: "\n <div class=\"inside-field\">\n <co-transaction-button
|
|
37656
|
+
template: "\n <div class=\"inside-field\">\n <co-transaction-button #parentComponent\n class=\"big center-align\"\n [hidden]=\"hidden\"\n [readonly]=\"readonly\"\n [class.transaction-red-label]=\"isConfirmedDateLater\"\n [iconData]=\"iconCacheService.getIcon(icons.RegularIndustryClock)\"\n [label]=\"confirmedDeliveryDate | date:'d MMM yyyy'\"\n [rightIconData]=\"iconCacheService.getIcon(icons.CalendarDayRegular)\"\n ></co-transaction-button>\n </div>\n\n ",
|
|
37599
37657
|
providers: [
|
|
37600
37658
|
corecomponents_v12.OverlayService,
|
|
37601
37659
|
{
|