@colijnit/transaction 256.1.58 → 256.1.59
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 +64 -5
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-header/transaction-header-popup/cash-on-delivery-modal.component.js +10 -3
- package/esm2015/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.js +7 -2
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.js +4 -1
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +13 -1
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction.service.js +6 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +53 -5
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/co-transaction-article-stock/style/_layout.scss +0 -19
- package/lib/component/transaction-header/transaction-header-popup/cash-on-delivery-modal.component.d.ts +1 -0
- package/lib/component/transaction-header/transaction-header-popup/transaction-header-popup-payment.component.d.ts +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-overview/transaction-quick-access-overview.component.d.ts +2 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +4 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -0
- package/lib/style/_variables.scss +3 -3
- package/package.json +1 -1
|
@@ -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.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "256.1.59";
|
|
7
|
+
this.publishDate = "25-2-2025 11:49:30";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuNTlcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyNS0yLTIwMjUgMTE6NDk6MzBcIjtcbn0iXX0=
|
|
@@ -283,8 +283,8 @@ class Version {
|
|
|
283
283
|
constructor() {
|
|
284
284
|
this.name = "@colijnit/transaction";
|
|
285
285
|
this.description = "Colijn IT transaction package";
|
|
286
|
-
this.symVer = "256.1.
|
|
287
|
-
this.publishDate = "
|
|
286
|
+
this.symVer = "256.1.59";
|
|
287
|
+
this.publishDate = "25-2-2025 11:49:30";
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -5613,6 +5613,18 @@ class TransactionConnectorAdapterService {
|
|
|
5613
5613
|
}
|
|
5614
5614
|
});
|
|
5615
5615
|
}
|
|
5616
|
+
getDefaultPrinter(reportId, type) {
|
|
5617
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5618
|
+
const response = yield this.connector.getStandardPrinter(reportId, type);
|
|
5619
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5620
|
+
return response.resultObject;
|
|
5621
|
+
}
|
|
5622
|
+
else {
|
|
5623
|
+
this._handleExceptionFromResponse(response);
|
|
5624
|
+
return null;
|
|
5625
|
+
}
|
|
5626
|
+
});
|
|
5627
|
+
}
|
|
5616
5628
|
getCurrencies(active = true) {
|
|
5617
5629
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5618
5630
|
const response = yield this.mainConnector.getCurrencies(active);
|
|
@@ -7959,6 +7971,11 @@ class TransactionConnectorService {
|
|
|
7959
7971
|
}).getValue();
|
|
7960
7972
|
});
|
|
7961
7973
|
}
|
|
7974
|
+
getDefaultPrinter(reportId, type) {
|
|
7975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7976
|
+
return this._adapterService.functionCall(this._adapterService.getDefaultPrinter, [reportId, type]);
|
|
7977
|
+
});
|
|
7978
|
+
}
|
|
7962
7979
|
getCurrencies(active = true) {
|
|
7963
7980
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7964
7981
|
return this._adapterService.functionCall(this._adapterService.getCurrencies, [active]);
|
|
@@ -13133,6 +13150,11 @@ class TransactionService extends PendingReasonService {
|
|
|
13133
13150
|
return yield this.connector.getPrinters();
|
|
13134
13151
|
});
|
|
13135
13152
|
}
|
|
13153
|
+
getDefaultPrinter(reportId, type) {
|
|
13154
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13155
|
+
return yield this.connector.getDefaultPrinter(reportId, type);
|
|
13156
|
+
});
|
|
13157
|
+
}
|
|
13136
13158
|
getCashTypes(type) {
|
|
13137
13159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13138
13160
|
return yield this.connector.getCashTypes(type);
|
|
@@ -18969,6 +18991,18 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
18969
18991
|
}
|
|
18970
18992
|
});
|
|
18971
18993
|
}
|
|
18994
|
+
onShowFilePreview(layoutCode) {
|
|
18995
|
+
let reportId = 0;
|
|
18996
|
+
this.defaultPrinterName = undefined;
|
|
18997
|
+
if (layoutCode) {
|
|
18998
|
+
this.transactionService.getDefaultPrinter(reportId, layoutCode).then((printer) => {
|
|
18999
|
+
if (printer) {
|
|
19000
|
+
this.defaultPrinterName = printer;
|
|
19001
|
+
this.changeDetector.detectChanges();
|
|
19002
|
+
}
|
|
19003
|
+
});
|
|
19004
|
+
}
|
|
19005
|
+
}
|
|
18972
19006
|
_getPrinters() {
|
|
18973
19007
|
this.transactionService.getPrinters().then((printerList) => {
|
|
18974
19008
|
this.printerList = printerList;
|
|
@@ -19320,6 +19354,7 @@ class TransactionQuickAccessOverviewComponent extends TransactionQuickAccessSend
|
|
|
19320
19354
|
this.reportDocumentEmailRequest = new ReportingDocumentEmailSignDocBaseRequest();
|
|
19321
19355
|
this.reportDocumentPrintRequest = new ReportingDocumentPrintSignDocBaseRequest();
|
|
19322
19356
|
this.reportDocumentPdfRequest = new ReportingDocumentPdfBaseRequest();
|
|
19357
|
+
this.LayoutCode = LayoutCode;
|
|
19323
19358
|
}
|
|
19324
19359
|
showClass() {
|
|
19325
19360
|
return true;
|
|
@@ -19439,6 +19474,7 @@ TransactionQuickAccessOverviewComponent.decorators = [
|
|
|
19439
19474
|
(additionalFileChangeEvent)="upsertDocument($event)"
|
|
19440
19475
|
(closeClick)="showSendMethodDialog = false"
|
|
19441
19476
|
(okClick)="handleSendMethodOkClick($event)"
|
|
19477
|
+
(showFilePreview)="onShowFilePreview(LayoutCode.OrderConfirmation)"
|
|
19442
19478
|
></co-send-method-dialog>
|
|
19443
19479
|
<co-digital-signature
|
|
19444
19480
|
[documentId]="signatureDocumentId"
|
|
@@ -49874,6 +49910,9 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
49874
49910
|
this.showPaymentDialog = false;
|
|
49875
49911
|
this.transactionService.rollback();
|
|
49876
49912
|
}
|
|
49913
|
+
isDirectSellEnabled() {
|
|
49914
|
+
return this.transactionLines.some(line => line.directSell);
|
|
49915
|
+
}
|
|
49877
49916
|
transactionSet() {
|
|
49878
49917
|
super.transactionSet();
|
|
49879
49918
|
this._getDepositInfo();
|
|
@@ -49985,10 +50024,12 @@ TransactionHeaderPopupPaymentComponent.decorators = [
|
|
|
49985
50024
|
<co-input-text
|
|
49986
50025
|
[placeholder]="'CASH_ON_DELIVERY' | localize"
|
|
49987
50026
|
[forceReadonly]="true"
|
|
49988
|
-
[model]="cashOnDelivery"
|
|
50027
|
+
[model]="cashOnDelivery"
|
|
50028
|
+
[formatPipe]="currencyPipe">
|
|
49989
50029
|
</co-input-text>
|
|
49990
50030
|
<co-button
|
|
49991
50031
|
class="save-button"
|
|
50032
|
+
[disabled]="!isDirectSellEnabled()"
|
|
49992
50033
|
[iconData]="iconCacheService.getIcon(icons.TruckMovingRegular)"
|
|
49993
50034
|
(click)="cashOnDeliveryModalVisible = true">
|
|
49994
50035
|
</co-button>
|
|
@@ -50167,6 +50208,7 @@ class CashOnDeliveryModalComponent extends TransactionInputLineFieldBaseComponen
|
|
|
50167
50208
|
this.cashOnDeliveryAmount = this.input.model;
|
|
50168
50209
|
this.changeAmountRequest.transactionUuid = this.transactionInfoUuid;
|
|
50169
50210
|
this.changeAmountRequest.newCashOnDeliveryAmount = this.cashOnDeliveryAmount;
|
|
50211
|
+
this.hideModal();
|
|
50170
50212
|
this.transactionService.changeHeaderCashOnDeliveryAmount(this.changeAmountRequest).then((response) => {
|
|
50171
50213
|
this.cashAmount.emit(this.cashOnDeliveryAmount);
|
|
50172
50214
|
});
|
|
@@ -50174,6 +50216,10 @@ class CashOnDeliveryModalComponent extends TransactionInputLineFieldBaseComponen
|
|
|
50174
50216
|
hideModal() {
|
|
50175
50217
|
this.showCashOnDeliveryModal.emit(false);
|
|
50176
50218
|
}
|
|
50219
|
+
onEnterKey(event) {
|
|
50220
|
+
event.preventDefault();
|
|
50221
|
+
this.updateCashOnDeliveryAmount();
|
|
50222
|
+
}
|
|
50177
50223
|
_getCashOnDeliveryData() {
|
|
50178
50224
|
this.transactionService.getCashOnDeliveryData(this.transactionInfoUuid).then((response) => {
|
|
50179
50225
|
if (response) {
|
|
@@ -50234,9 +50280,11 @@ CashOnDeliveryModalComponent.decorators = [
|
|
|
50234
50280
|
<div class="cash-on-delivery-field">
|
|
50235
50281
|
<co-input-text
|
|
50236
50282
|
#input
|
|
50237
|
-
type="number"
|
|
50283
|
+
[type]="'number'"
|
|
50238
50284
|
[placeholder]="'CASH_ON_DELIVERY_AMOUNT' | localize"
|
|
50239
|
-
[model]="cashOnDeliveryAmount"
|
|
50285
|
+
[model]="cashOnDeliveryAmount"
|
|
50286
|
+
[formatPipe]="currencyPipe"
|
|
50287
|
+
(keydown.enter)="onEnterKey($event)">
|
|
50240
50288
|
</co-input-text>
|
|
50241
50289
|
</div>
|
|
50242
50290
|
</section>
|