@colijnit/transaction 255.1.5 → 255.1.6
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 +66 -22
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/add-product/add-product.component.js +2 -2
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line-base.component.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line.component.js +2 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.component.js +6 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-sales-quotation/transaction-quick-access-sales-quotation.module.js +4 -2
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-event.service.js +2 -1
- package/esm2015/lib/service/transaction-mapping.service.js +5 -5
- package/esm2015/lib/service/transaction-payment-connector.service.js +6 -1
- package/esm2015/lib/service/transaction-payment.service.js +7 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +42 -13
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-line/transaction-purchase-line/transaction-purchase-line-base.component.d.ts +1 -0
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-event.service.d.ts +1 -0
- package/lib/service/transaction-payment-connector.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 = "255.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "255.1.6";
|
|
37
|
+
this.publishDate = "8-8-2024 14:39:49";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -1325,6 +1325,7 @@
|
|
|
1325
1325
|
this.createTransaction = new rxjs.Subject();
|
|
1326
1326
|
this.transactionSet = new rxjs.Subject();
|
|
1327
1327
|
this.purchaseOrderNavigation = new rxjs.Subject();
|
|
1328
|
+
this.purchaseExistingOrderNavigation = new rxjs.Subject();
|
|
1328
1329
|
this.salesQuotationOrderNavigation = new rxjs.Subject();
|
|
1329
1330
|
this.relationNavigation = new rxjs.Subject();
|
|
1330
1331
|
this.articleNavigation = new rxjs.Subject();
|
|
@@ -8471,6 +8472,26 @@
|
|
|
8471
8472
|
});
|
|
8472
8473
|
});
|
|
8473
8474
|
};
|
|
8475
|
+
TransactionConnectorAdapterService.prototype.openDrawer = function (printerName) {
|
|
8476
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
8477
|
+
var response;
|
|
8478
|
+
return __generator(this, function (_a) {
|
|
8479
|
+
switch (_a.label) {
|
|
8480
|
+
case 0: return [4 /*yield*/, this.connector.openDrawer(printerName)];
|
|
8481
|
+
case 1:
|
|
8482
|
+
response = _a.sent();
|
|
8483
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
8484
|
+
return [2 /*return*/, response.resultObject];
|
|
8485
|
+
}
|
|
8486
|
+
else {
|
|
8487
|
+
this._handleExceptionFromResponse(response);
|
|
8488
|
+
return [2 /*return*/, null];
|
|
8489
|
+
}
|
|
8490
|
+
return [2 /*return*/];
|
|
8491
|
+
}
|
|
8492
|
+
});
|
|
8493
|
+
});
|
|
8494
|
+
};
|
|
8474
8495
|
TransactionConnectorAdapterService.prototype._openPdfContent = function (content) {
|
|
8475
8496
|
if (content) {
|
|
8476
8497
|
try {
|
|
@@ -23129,6 +23150,9 @@
|
|
|
23129
23150
|
TransactionPurchaseLineBaseComponent.prototype.handlePurchaseOrderNavigation = function (transNr) {
|
|
23130
23151
|
this.transactionEventService.purchaseOrderNavigation.next(transNr);
|
|
23131
23152
|
};
|
|
23153
|
+
TransactionPurchaseLineBaseComponent.prototype.handlePurchaseExistingOrderNavigation = function (transNr) {
|
|
23154
|
+
this.transactionEventService.purchaseExistingOrderNavigation.next(transNr);
|
|
23155
|
+
};
|
|
23132
23156
|
TransactionPurchaseLineBaseComponent.prototype.transactionLineSet = function () {
|
|
23133
23157
|
_super.prototype.transactionLineSet.call(this);
|
|
23134
23158
|
this.showCheckboxForLine = this.transactionLine.amount !== this.lineQuantityOrdered && this.transactionLine.commissionCode === '0';
|
|
@@ -23209,7 +23233,7 @@
|
|
|
23209
23233
|
TransactionPurchaseLineComponent.decorators = [
|
|
23210
23234
|
{ type: i0.Component, args: [{
|
|
23211
23235
|
selector: "co-transaction-purchase-line",
|
|
23212
|
-
template: "\n <co-transaction-base-line [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLineSelectedChanged($event)\"\n [isFirst]=\"isFirst\"\n [showPurchaseDescAndPrice]=\"true\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'SUPPLIER' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-supplier-button\n [screenConfigurationObject]=\"cfgNames.LineSupplier\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [readonly]=\"hasPurchaseOrder\"></co-transaction-line-supplier-button>\n <co-transaction-navigation-button-list *ngIf=\"transactionLine.commissionCode === '0'\"\n [screenConfigurationObject]=\"cfgNames.LineRefTransactions\"\n [refTransactions]=\"transactionLine.refTransactions\"\n [emptyLabel]=\"'NO_PURCHASE_ORDER' | localize\"\n (transactionClick)=\"
|
|
23236
|
+
template: "\n <co-transaction-base-line [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [preview]=\"preview\"\n [checkbox]=\"showCheckboxForLine && transactionInfo.transactionDefinitive\"\n [checkboxValue]=\"transactionLine.selected\"\n (checkboxValueChanged)=\"transactionLineSelectedChanged($event)\"\n [isFirst]=\"isFirst\"\n [showPurchaseDescAndPrice]=\"true\"\n observeVisibility #observer=visibilityObserve (visibilityChange)=\"handleVisibilityChange(transactionLine, $event)\">\n <div class=\"transaction-line-wrapper\" [class.transaction-not-definitive]=\"!transactionInfo.transactionDefinitive\">\n <div *ngIf=!preview class=\"transaction-line-extended-wrapper\">\n <div class=\"column1\">\n <span class=\"transaction-field-label\" [textContent]=\"'SUPPLIER' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-supplier-button\n [screenConfigurationObject]=\"cfgNames.LineSupplier\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [readonly]=\"hasPurchaseOrder\"></co-transaction-line-supplier-button>\n <co-transaction-navigation-button-list *ngIf=\"transactionLine.commissionCode === '0'\"\n [screenConfigurationObject]=\"cfgNames.LineRefTransactions\"\n [refTransactions]=\"transactionLine.refTransactions\"\n [emptyLabel]=\"'NO_PURCHASE_ORDER' | localize\"\n (transactionClick)=\"handlePurchaseExistingOrderNavigation($event)\"\n ></co-transaction-navigation-button-list>\n </div>\n <div class=\"column2\">\n <span class=\"transaction-field-label\" [textContent]=\"'WAREHOUSE_AND_STATUS' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-warehouse-button\n [screenConfigurationObject]=\"cfgNames.LineWarehouse\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"></co-transaction-line-warehouse-button>\n <co-transaction-line-statusbar\n [screenConfigurationObject]=\"cfgNames.StatusBar\"\n [configNames]=\"statusBarConfigNames\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [activeCategory]=\"category.SalesOrderPurchase\"></co-transaction-line-statusbar>\n </div>\n <div class=\"column3\">\n <span class=\"transaction-field-label\" [textContent]=\"'DELIVERY_INFORMATION' | localize\" *ngIf=\"isFirst\"></span>\n <co-transaction-line-delivery-button\n [screenConfigurationObject]=\"cfgNames.LineDeliveryMethod\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"></co-transaction-line-delivery-button>\n <co-transaction-line-confirmed-delivery-date-button\n [screenConfigurationObject]=\"cfgNames.LineConfirmedDeliveryDate\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n ></co-transaction-line-confirmed-delivery-date-button>\n <co-transaction-line-drop-shipment-button\n [screenConfigurationObject]=\"cfgNames.LineDropShipment\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"\n [class.active]=\"transactionLine.dropShipment\"></co-transaction-line-drop-shipment-button>\n </div>\n </div>\n <div class=\"transaction-line-section\">\n <span class=\"transaction-field-label\" [textContent]=\"'PURCHASE_PRICE' | localize\" *ngIf=\"isFirst\"></span>\n <div class=\"transaction-line-totals\">\n <co-transaction-line-price class=\"transaction-line-totals-price price\"\n [screenConfigurationObject]=\"cfgNames.LinePrice\"\n [transactionInfo]=\"transactionInfo\"\n [transactionLine]=\"transactionLine\"\n [showLabel]=\"false\"\n [defaultEditMode]=\"false\"\n [showPurchasePrice]=\"true\"\n\n ></co-transaction-line-price>\n <div *ngIf=!preview class=\"transaction-line-totals-amount\">\n <co-transaction-line-amount class=\"amount-number-picker\"\n [screenConfigurationObject]=\"cfgNames.LineAmount\"\n [transactionLine]=\"transactionLine\"\n [transactionInfo]=\"transactionInfo\"></co-transaction-line-amount>\n </div>\n </div>\n </div>\n </div>\n </co-transaction-base-line>\n ",
|
|
23213
23237
|
encapsulation: i0.ViewEncapsulation.None,
|
|
23214
23238
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
23215
23239
|
},] }
|
|
@@ -25633,7 +25657,7 @@
|
|
|
25633
25657
|
TransactionQuickAccessSalesQuotationComponent.decorators = [
|
|
25634
25658
|
{ type: i0.Component, args: [{
|
|
25635
25659
|
selector: "co-transaction-quick-access-sales-quotation",
|
|
25636
|
-
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [transactionInfo]=\"transactionInfo\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-button\n [label]=\"'
|
|
25660
|
+
template: "\n <div class=\"quick-access-content-wrapper\">\n <co-quick-send-button\n [defaultMethodIcon]=\"defaultSendMethodIcon\"\n [showLoader]=\"showLoader\"\n (sendIconClicked)=\"handleSend(defaultSendMethod)\"\n (openSendMethodDialog)=\"showSendMethodDialog = true\"\n ></co-quick-send-button>\n <co-transaction-send-documents\n [transactionInfo]=\"transactionInfo\"\n [transactionTypeCategory]=\"transactionTypeCategory.SalesOrderQuotation\"\n ></co-transaction-send-documents>\n <co-transaction-button\n [label]=\"'SALES_ORDER' | localize\"\n [iconData]=\"iconCacheService.getIcon(icons.CartShoppingRegular)\"\n (click)=\"createSalesOrder()\"\n class=\"sales-quote-btn custom-width\"\n ></co-transaction-button>\n <co-transaction-navigation-button-list\n [refTransactions]=\"getCurrentRefTransactions()\"\n [showRelationButton]=\"false\"\n [emptyLabel]=\"'NO_SALES_QUOTE_ORDER' | localize\"\n (transactionClick)=\"handleSalesOrderNavigation($event)\"\n ></co-transaction-navigation-button-list>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n [headerTitle]=\"'Verzendmethode'\"\n [printerList]=\"printerList\"\n [defaultSendMethod]=\"defaultSendMethod\"\n [visibleMethods]=\"[sendMethodType.Print, sendMethodType.Email, sendMethodType.Pdf]\"\n [emailAddresses]=\"emailAddresses\"\n [emailLayouts]=\"emailLayouts\"\n [printLayouts]=\"printLayouts\"\n [isDocSignEnabled]=\"true\"\n [(reportingDocumentEmailRequest)]=\"reportDocumentEmailRequest\"\n [(reportingDocumentPrintRequest)]=\"reportDocumentPrintRequest\"\n [(reportingDocumentPdfRequest)]=\"reportDocumentPdfRequest\"\n (closeClick)=\"showSendMethodDialog = false\"\n (okClick)=\"handleSendMethodOkClick($event)\"\n ></co-send-method-dialog>\n </div>\n <co-digital-signature\n [documentId]=\"signatureDocumentId\"\n (documentStored)=\"commitAndRefreshTransaction()\"\n ></co-digital-signature>\n ",
|
|
25637
25661
|
encapsulation: i0.ViewEncapsulation.None
|
|
25638
25662
|
},] }
|
|
25639
25663
|
];
|
|
@@ -26049,6 +26073,13 @@
|
|
|
26049
26073
|
});
|
|
26050
26074
|
});
|
|
26051
26075
|
};
|
|
26076
|
+
TransactionPaymentConnectorService.prototype.openDrawer = function (printerName) {
|
|
26077
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26078
|
+
return __generator(this, function (_a) {
|
|
26079
|
+
return [2 /*return*/, this._adapterService.openDrawer(printerName)];
|
|
26080
|
+
});
|
|
26081
|
+
});
|
|
26082
|
+
};
|
|
26052
26083
|
TransactionPaymentConnectorService.prototype.getPaymentMethodsViewModels = function (branchNr, transactionKind) {
|
|
26053
26084
|
if (transactionKind === void 0) { transactionKind = transactionKind_enum.TransactionKind.SalesOrder; }
|
|
26054
26085
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -26949,10 +26980,10 @@
|
|
|
26949
26980
|
{ title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: this.cfgNames.RubricDelivery },
|
|
26950
26981
|
{ title: 'INVOICE', icon: Icon.Invoice, category: TransactionTypeCategory.SalesOrderInvoice, component: TransactionSalesInvoiceButtonBarButtonComponent, cfgName: this.cfgNames.RubricInvoice }
|
|
26951
26982
|
]],
|
|
26952
|
-
[
|
|
26953
|
-
|
|
26954
|
-
|
|
26955
|
-
|
|
26983
|
+
//[TransactionKind.SalesQuotation, [
|
|
26984
|
+
// {title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderQuotation},
|
|
26985
|
+
// {title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: this.cfgNames.RubricDelivery},
|
|
26986
|
+
//]],
|
|
26956
26987
|
[transactionKind_enum.TransactionKind.ServiceOrder, [
|
|
26957
26988
|
{ title: 'SERVICE', icon: Icon.Toolbox, category: TransactionTypeCategory.ServiceOrderService, component: TransactionServiceServiceButtonBarButtonComponent },
|
|
26958
26989
|
{ title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.ServiceOrderOverview, component: TransactionSalesOverviewButtonBarButtonComponent, cfgName: this.cfgNames.RubricOverview },
|
|
@@ -32805,17 +32836,23 @@
|
|
|
32805
32836
|
request.cashRegisterNr = this.cashRegisterNr;
|
|
32806
32837
|
request.cashRegisterGroupId = this.cashRegisterGroupId;
|
|
32807
32838
|
request.cashRegisterDrawerId = this.cashRegisterDrawerId;
|
|
32808
|
-
if (!(this.currentPaymentMethod && this.currentPaymentMethod.externalSourceId)) return [3 /*break*/,
|
|
32839
|
+
if (!(this.currentPaymentMethod && this.currentPaymentMethod.externalSourceId)) return [3 /*break*/, 7];
|
|
32809
32840
|
pspTransactionUuid = "";
|
|
32810
|
-
if (!this.currentPaymentMethod.
|
|
32811
|
-
return [4 /*yield*/, this._paymentConnectorService.
|
|
32841
|
+
if (!this.currentPaymentMethod.openCashDrawer) return [3 /*break*/, 2];
|
|
32842
|
+
return [4 /*yield*/, this._paymentConnectorService.openDrawer(this.printerName)];
|
|
32812
32843
|
case 1:
|
|
32813
|
-
|
|
32814
|
-
|
|
32844
|
+
_b.sent();
|
|
32845
|
+
_b.label = 2;
|
|
32815
32846
|
case 2:
|
|
32847
|
+
if (!this.currentPaymentMethod.pinTerminal) return [3 /*break*/, 4];
|
|
32848
|
+
return [4 /*yield*/, this._paymentConnectorService.doPayment(request)];
|
|
32849
|
+
case 3:
|
|
32850
|
+
pspTransactionUuid = _b.sent();
|
|
32851
|
+
return [3 /*break*/, 6];
|
|
32852
|
+
case 4:
|
|
32816
32853
|
_a = this;
|
|
32817
32854
|
return [4 /*yield*/, this._paymentConnectorService.createIonePaymentLinkAndQRCode(this.transactionUuid, this.amountToPay, this.currentPaymentMethod.code)];
|
|
32818
|
-
case
|
|
32855
|
+
case 5:
|
|
32819
32856
|
_a._paymentResult = _b.sent();
|
|
32820
32857
|
if (this._paymentResult && this._paymentResult.imageBase64) {
|
|
32821
32858
|
this.qrCodeImage = this._dataUriToBase64(this._paymentResult.imageBase64, 'image/png');
|
|
@@ -32823,14 +32860,20 @@
|
|
|
32823
32860
|
this.showPspQrCode = true;
|
|
32824
32861
|
pspTransactionUuid = this._paymentResult.pspTransactionUUID;
|
|
32825
32862
|
}
|
|
32826
|
-
_b.label =
|
|
32827
|
-
case
|
|
32863
|
+
_b.label = 6;
|
|
32864
|
+
case 6:
|
|
32828
32865
|
if (pspTransactionUuid) {
|
|
32829
32866
|
this._paymentStatusPollIntervalCount = 0;
|
|
32830
32867
|
this._waitForPinPaymentStatus(pspTransactionUuid);
|
|
32831
32868
|
}
|
|
32832
|
-
return [3 /*break*/,
|
|
32833
|
-
case
|
|
32869
|
+
return [3 /*break*/, 10];
|
|
32870
|
+
case 7:
|
|
32871
|
+
if (!this.currentPaymentMethod.openCashDrawer) return [3 /*break*/, 9];
|
|
32872
|
+
return [4 /*yield*/, this._paymentConnectorService.openDrawer(this.printerName)];
|
|
32873
|
+
case 8:
|
|
32874
|
+
_b.sent();
|
|
32875
|
+
_b.label = 9;
|
|
32876
|
+
case 9:
|
|
32834
32877
|
this._paymentConnectorService.doPayment(request).then(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
32835
32878
|
return __generator(this, function (_a) {
|
|
32836
32879
|
switch (_a.label) {
|
|
@@ -32845,8 +32888,8 @@
|
|
|
32845
32888
|
}
|
|
32846
32889
|
});
|
|
32847
32890
|
}); });
|
|
32848
|
-
_b.label =
|
|
32849
|
-
case
|
|
32891
|
+
_b.label = 10;
|
|
32892
|
+
case 10: return [2 /*return*/];
|
|
32850
32893
|
}
|
|
32851
32894
|
});
|
|
32852
32895
|
});
|
|
@@ -42009,7 +42052,8 @@
|
|
|
42009
42052
|
TransactionNavigationButtonListModule,
|
|
42010
42053
|
PipeModule,
|
|
42011
42054
|
TransactionSendDocumentsModule,
|
|
42012
|
-
DigitalSignatureModule
|
|
42055
|
+
DigitalSignatureModule,
|
|
42056
|
+
TransactionButtonModule
|
|
42013
42057
|
],
|
|
42014
42058
|
declarations: [
|
|
42015
42059
|
TransactionQuickAccessSalesQuotationComponent
|
|
@@ -48941,7 +48985,7 @@
|
|
|
48941
48985
|
AddProductComponent.prototype._prepareCatalogRequest = function () {
|
|
48942
48986
|
this.catalogParameters.general = this.searchText;
|
|
48943
48987
|
this.catalogParameters.showRegularArticles = true;
|
|
48944
|
-
this.catalogParameters.showConfiguredArticles =
|
|
48988
|
+
this.catalogParameters.showConfiguredArticles = false;
|
|
48945
48989
|
this.catalogParameters.showConfigurableArticles = true;
|
|
48946
48990
|
this.catalogParameters.showCompositionArticles = false;
|
|
48947
48991
|
this.catalogParameters.showCustomizedArticles = false;
|