@colijnit/transaction 257.1.71 → 257.1.73
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 +38 -10
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +3 -5
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +5 -2
- package/esm2015/lib/component/payment/payment.component.js +10 -3
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +25 -15
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.js +3 -1
- package/esm2015/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line.component.js +2 -3
- package/esm2015/lib/component/transaction-line-purchase-receive-goods/transaction-line-purchase-receive-goods.component.js +3 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.js +10 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +53 -27
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/deposit-payment/deposit-payment.component.d.ts +2 -1
- package/lib/component/payment/payment.component.d.ts +2 -0
- package/lib/component/relation/relation-address/relation-address.component.d.ts +5 -0
- package/lib/component/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.d.ts +1 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-send-method-base.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -295,8 +295,8 @@ class Version {
|
|
|
295
295
|
constructor() {
|
|
296
296
|
this.name = "@colijnit/transaction";
|
|
297
297
|
this.description = "Colijn IT transaction package";
|
|
298
|
-
this.symVer = "257.1.
|
|
299
|
-
this.publishDate = "
|
|
298
|
+
this.symVer = "257.1.73";
|
|
299
|
+
this.publishDate = "23-6-2025 12:23:33";
|
|
300
300
|
}
|
|
301
301
|
}
|
|
302
302
|
|
|
@@ -15173,9 +15173,7 @@ CheckoutOverviewRelationEditComponent.decorators = [
|
|
|
15173
15173
|
(inputChangeForSuggestions)="handleInputChange($event)"
|
|
15174
15174
|
></co-relation-address>
|
|
15175
15175
|
</div>
|
|
15176
|
-
|
|
15177
|
-
<div class="checkout-data-column" *ngIf="relationKind === relKind.Customer">
|
|
15178
|
-
<div class="checkout-data-row">
|
|
15176
|
+
<div *ngIf="relationKind === relKind.Customer">
|
|
15179
15177
|
<co-vat-payment [model]="vatPayment"
|
|
15180
15178
|
[screenConfigurationObject]="cfgNames.RelationVatPayment"
|
|
15181
15179
|
(modelChange)="handleVatPaymentChange($event)"
|
|
@@ -15184,7 +15182,7 @@ CheckoutOverviewRelationEditComponent.decorators = [
|
|
|
15184
15182
|
[screenConfigurationObject]="cfgNames.RelationVatCode"
|
|
15185
15183
|
(modelChange)="handleVatCodeChange($event)"
|
|
15186
15184
|
></co-vat-code>
|
|
15187
|
-
|
|
15185
|
+
</div>
|
|
15188
15186
|
</div>
|
|
15189
15187
|
<ng-container *ngIf="showAddresses">
|
|
15190
15188
|
<div class="checkout-data-column">
|
|
@@ -16718,7 +16716,7 @@ class RelationAddressComponent extends RelationBaseComponent {
|
|
|
16718
16716
|
this.transactionService = transactionService;
|
|
16719
16717
|
this.addressChange = new EventEmitter();
|
|
16720
16718
|
this.countries = [];
|
|
16721
|
-
|
|
16719
|
+
this.addressTypes = [];
|
|
16722
16720
|
this.fields = { text: "description", value: "code" };
|
|
16723
16721
|
this.postalCodeCheckErrorMessage = "";
|
|
16724
16722
|
this._prevPostalCodeForCheck = "";
|
|
@@ -16741,9 +16739,9 @@ class RelationAddressComponent extends RelationBaseComponent {
|
|
|
16741
16739
|
this.countries = countries;
|
|
16742
16740
|
this._setSelectedAddress();
|
|
16743
16741
|
});
|
|
16744
|
-
|
|
16745
|
-
|
|
16746
|
-
|
|
16742
|
+
this._connector.getAddressTypes('NL').then((codes) => {
|
|
16743
|
+
this.addressTypes = codes;
|
|
16744
|
+
});
|
|
16747
16745
|
});
|
|
16748
16746
|
}
|
|
16749
16747
|
checkForPostalCodeCheckError() {
|
|
@@ -16807,6 +16805,14 @@ class RelationAddressComponent extends RelationBaseComponent {
|
|
|
16807
16805
|
this.inputChangeForSuggestions.next(this.suggestionRequest);
|
|
16808
16806
|
}
|
|
16809
16807
|
}
|
|
16808
|
+
handleAddressTypeChange(addressType) {
|
|
16809
|
+
if (Object.values(AddressType).includes(addressType.code)) {
|
|
16810
|
+
this.address.addressType = addressType.code;
|
|
16811
|
+
}
|
|
16812
|
+
}
|
|
16813
|
+
addressTypeForCode(addressType) {
|
|
16814
|
+
return this.addressTypes.find((addressTypeListItem) => addressTypeListItem.code === addressType);
|
|
16815
|
+
}
|
|
16810
16816
|
_setSelectedAddress() {
|
|
16811
16817
|
if (!this.address || !this.countries) {
|
|
16812
16818
|
return;
|
|
@@ -16866,16 +16872,17 @@ RelationAddressComponent.decorators = [
|
|
|
16866
16872
|
(modelChange)="handleCountryChange($event)"
|
|
16867
16873
|
></co-list-of-values>
|
|
16868
16874
|
</div>
|
|
16869
|
-
|
|
16870
|
-
|
|
16871
|
-
|
|
16872
|
-
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16875
|
+
<div class="relation-address-data-row default single">
|
|
16876
|
+
<co-list-of-values
|
|
16877
|
+
[model]="addressTypeForCode(address.addressType)"
|
|
16878
|
+
(modelChange)="handleAddressTypeChange($event)"
|
|
16879
|
+
[collection]="addressTypes"
|
|
16880
|
+
[displayField]="'description'"
|
|
16881
|
+
[label]="'ADDRESS_TYPE' | localize"
|
|
16882
|
+
[required]="true"
|
|
16883
|
+
></co-list-of-values>
|
|
16884
|
+
</div>
|
|
16885
|
+
|
|
16879
16886
|
`,
|
|
16880
16887
|
encapsulation: ViewEncapsulation.None
|
|
16881
16888
|
},] }
|
|
@@ -19782,6 +19789,7 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19782
19789
|
this.additionalFileName = '';
|
|
19783
19790
|
this.pdfDoc = '';
|
|
19784
19791
|
this.disablePdfPreview = false;
|
|
19792
|
+
this.isAdditionalDocAllowedByScreenConfig = false;
|
|
19785
19793
|
}
|
|
19786
19794
|
ngOnInit() {
|
|
19787
19795
|
super.ngOnInit();
|
|
@@ -19870,6 +19878,9 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19870
19878
|
this.transactionService.getTermsAndConditionsForm(this.transactionInfo.id).then(result => {
|
|
19871
19879
|
this.additionalFileContents = result;
|
|
19872
19880
|
this.additionalFileName = this.transactionInfo.transactionKind + '_' + this.transactionInfo.transactionNr.toString();
|
|
19881
|
+
// @ts-ignore
|
|
19882
|
+
this.isAdditionalDocEnabled = this.isAdditionalDocAllowedByScreenConfig && !!result;
|
|
19883
|
+
this.detectChanges();
|
|
19873
19884
|
});
|
|
19874
19885
|
}
|
|
19875
19886
|
upsertDocument(doc) {
|
|
@@ -19900,7 +19911,11 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
19900
19911
|
this._getEmailLayouts();
|
|
19901
19912
|
this._getPrintLayouts();
|
|
19902
19913
|
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
19903
|
-
this.
|
|
19914
|
+
this.isAdditionalDocAllowedByScreenConfig =
|
|
19915
|
+
this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
19916
|
+
if (this.isAdditionalDocAllowedByScreenConfig) {
|
|
19917
|
+
this.getTermsAndConditionsForm();
|
|
19918
|
+
}
|
|
19904
19919
|
this.getHistoricDocuments();
|
|
19905
19920
|
}
|
|
19906
19921
|
_getPrinters() {
|
|
@@ -21476,6 +21491,7 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
|
|
|
21476
21491
|
this.transactionTypeCategory = TransactionTypeCategory;
|
|
21477
21492
|
this.warehouseLocationButtonDisabled = false;
|
|
21478
21493
|
this.showCheckboxForLine = false;
|
|
21494
|
+
this.returnStockMode = false;
|
|
21479
21495
|
this._subscriptions = [];
|
|
21480
21496
|
}
|
|
21481
21497
|
ngOnInit() {
|
|
@@ -21503,6 +21519,7 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
|
|
|
21503
21519
|
transactionLineSet() {
|
|
21504
21520
|
super.transactionLineSet();
|
|
21505
21521
|
this._handleTransactionLineSet(this.transactionLine);
|
|
21522
|
+
this.returnStockMode = this.transactionLine.amount < 0;
|
|
21506
21523
|
}
|
|
21507
21524
|
_handleTransactionLineSet(transLine) {
|
|
21508
21525
|
this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
|
|
@@ -21589,9 +21606,8 @@ TransactionReceiveGoodsLineComponent.decorators = [
|
|
|
21589
21606
|
<co-transaction-line-label [insideLabel]="'BATCH_NR'"></co-transaction-line-label>
|
|
21590
21607
|
<co-input-text class="side-panel-input"
|
|
21591
21608
|
[(model)]="transactionLine.batchNr"
|
|
21592
|
-
[type]="'number'"
|
|
21593
21609
|
[hideArrowButtons]="true"
|
|
21594
|
-
[readonly]="
|
|
21610
|
+
[readonly]="this.returnStockMode || readonly"
|
|
21595
21611
|
[required]="true"
|
|
21596
21612
|
[customHeight]="true"
|
|
21597
21613
|
></co-input-text>
|
|
@@ -36933,7 +36949,8 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
|
|
|
36933
36949
|
this.receiptDetails.lineNr = this.transactionLine.lineNr;
|
|
36934
36950
|
this.receiptDetails.quantityToReceive = this.lineQuantityToReceive;
|
|
36935
36951
|
this.receiptDetails.locationNr = this.transactionLine.locationNr;
|
|
36936
|
-
this.returnStockMode
|
|
36952
|
+
this.returnStockMode = this.transactionLine.amount < 0;
|
|
36953
|
+
this.receiptDetails.batchNr = this.transactionLine.batchNr;
|
|
36937
36954
|
this.getGoodsReceiptHistory();
|
|
36938
36955
|
}
|
|
36939
36956
|
_getAvailableStock() {
|
|
@@ -36990,7 +37007,6 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
|
|
|
36990
37007
|
></co-transaction-labeled-warehouse-location-button>
|
|
36991
37008
|
-->
|
|
36992
37009
|
<co-input-text class="side-panel-input" [(model)]="receiptDetails.batchNr" *ngIf="transactionLine.isBatchNrRequired"
|
|
36993
|
-
[type]="'number'"
|
|
36994
37010
|
[hideArrowButtons]="true"
|
|
36995
37011
|
[readonly]="readonly || returnStockMode"
|
|
36996
37012
|
[disabled]="returnStockMode"
|
|
@@ -48869,6 +48885,9 @@ class PaymentComponent extends TransactionPaymentBaseComponent {
|
|
|
48869
48885
|
super.cashRegisterSelected(cashRegister, index);
|
|
48870
48886
|
this.activeCashRegister = cashRegister;
|
|
48871
48887
|
}
|
|
48888
|
+
onDepositPaymentFetched(depositAmount) {
|
|
48889
|
+
this.depositAmount = depositAmount;
|
|
48890
|
+
}
|
|
48872
48891
|
}
|
|
48873
48892
|
PaymentComponent.decorators = [
|
|
48874
48893
|
{ type: Component, args: [{
|
|
@@ -48912,7 +48931,7 @@ PaymentComponent.decorators = [
|
|
|
48912
48931
|
<div class="payment-to-pay-total">
|
|
48913
48932
|
<div class="payment-to-pay-header">
|
|
48914
48933
|
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
48915
|
-
<span class="payment-total-pay" [textContent]="
|
|
48934
|
+
<span class="payment-total-pay" [textContent]="depositAmount ? (depositAmount | coCurrency: true) : (paymentService.amount | coCurrency: true)"></span>
|
|
48916
48935
|
</div>
|
|
48917
48936
|
<div class="payment-input-button-wrapper">
|
|
48918
48937
|
<div class="payment-input-button">
|
|
@@ -48935,7 +48954,11 @@ PaymentComponent.decorators = [
|
|
|
48935
48954
|
</div>
|
|
48936
48955
|
|
|
48937
48956
|
<div class="payment-deposit">
|
|
48938
|
-
<co-deposit-payment
|
|
48957
|
+
<co-deposit-payment
|
|
48958
|
+
[branch]="branch"
|
|
48959
|
+
[transactionUuid]="transactionUuid"
|
|
48960
|
+
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
48961
|
+
</co-deposit-payment>
|
|
48939
48962
|
</div>
|
|
48940
48963
|
<co-key-pad class="payment-to-pay-keypad" *ngIf="showKeyPad"
|
|
48941
48964
|
[showValue]="false"
|
|
@@ -49097,6 +49120,7 @@ class DepositPaymentComponent {
|
|
|
49097
49120
|
this._transactionEventService = _transactionEventService;
|
|
49098
49121
|
this.transKind = TransactionKind;
|
|
49099
49122
|
this.showTitle = true;
|
|
49123
|
+
this.depositPaymentFetched = new EventEmitter();
|
|
49100
49124
|
this.paymentMethods = [];
|
|
49101
49125
|
this.depositPayments = [];
|
|
49102
49126
|
this.showLoader = true;
|
|
@@ -49120,6 +49144,7 @@ class DepositPaymentComponent {
|
|
|
49120
49144
|
this._paymentConnectorService.getDepositPaymentInfo(this.transactionUuid).then((info) => {
|
|
49121
49145
|
this.depositPayments.length = 0;
|
|
49122
49146
|
if (info && info.depositPayments) {
|
|
49147
|
+
this.depositPaymentFetched.emit(info.depositAmount);
|
|
49123
49148
|
info.depositPayments.sort((a, b) => a.id > b.id ? 1 : -1);
|
|
49124
49149
|
info.depositPayments.forEach((dp) => {
|
|
49125
49150
|
const paymentMethod = this.paymentMethods.find(pm => pm.payment.code === dp.paymentMethodCode);
|
|
@@ -49173,6 +49198,7 @@ DepositPaymentComponent.propDecorators = {
|
|
|
49173
49198
|
transactionKind: [{ type: Input }],
|
|
49174
49199
|
showTitle: [{ type: Input }],
|
|
49175
49200
|
transactionUuid: [{ type: Input }],
|
|
49201
|
+
depositPaymentFetched: [{ type: Output }],
|
|
49176
49202
|
showClass: [{ type: HostBinding, args: ["class.co-deposit-payment",] }]
|
|
49177
49203
|
};
|
|
49178
49204
|
|