@colijnit/transaction 258.1.36 → 258.1.37
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 +16 -6
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- 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/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 +2 -1
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +20 -8
- 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/transaction-line/transaction-receive-goods-line/transaction-receive-goods-line-base.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -294,8 +294,8 @@ class Version {
|
|
|
294
294
|
constructor() {
|
|
295
295
|
this.name = "@colijnit/transaction";
|
|
296
296
|
this.description = "Colijn IT transaction package";
|
|
297
|
-
this.symVer = "258.1.
|
|
298
|
-
this.publishDate = "
|
|
297
|
+
this.symVer = "258.1.37";
|
|
298
|
+
this.publishDate = "23-6-2025 11:42:41";
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
|
|
@@ -20429,6 +20429,7 @@ class TransactionQuickAccessSendMethodBaseComponent extends TransactionHeaderBas
|
|
|
20429
20429
|
this._getDefaultSendMethod();
|
|
20430
20430
|
this._getEmailLayouts();
|
|
20431
20431
|
this._getPrintLayouts();
|
|
20432
|
+
this.isDocSignEnabled = this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsDocSignEnabled).immediatelyVisible();
|
|
20432
20433
|
this.isAdditionalDocAllowedByScreenConfig =
|
|
20433
20434
|
this.screenConfigService.getObjectConfigurationFor(this.cfgNames.IsAdditionalDocEnabled).immediatelyVisible();
|
|
20434
20435
|
if (this.isAdditionalDocAllowedByScreenConfig) {
|
|
@@ -22013,6 +22014,7 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
|
|
|
22013
22014
|
this.transactionTypeCategory = TransactionTypeCategory;
|
|
22014
22015
|
this.warehouseLocationButtonDisabled = false;
|
|
22015
22016
|
this.showCheckboxForLine = false;
|
|
22017
|
+
this.returnStockMode = false;
|
|
22016
22018
|
this._subscriptions = [];
|
|
22017
22019
|
}
|
|
22018
22020
|
ngOnInit() {
|
|
@@ -22040,6 +22042,7 @@ class TransactionReceiveGoodsLineBaseComponent extends TransactionLineBaseCompon
|
|
|
22040
22042
|
transactionLineSet() {
|
|
22041
22043
|
super.transactionLineSet();
|
|
22042
22044
|
this._handleTransactionLineSet(this.transactionLine);
|
|
22045
|
+
this.returnStockMode = this.transactionLine.amount < 0;
|
|
22043
22046
|
}
|
|
22044
22047
|
_handleTransactionLineSet(transLine) {
|
|
22045
22048
|
this.warehouseLocationButtonDisabled = transLine.articleLineStatus.quantityReceived === transLine.amount ||
|
|
@@ -22126,9 +22129,8 @@ TransactionReceiveGoodsLineComponent.decorators = [
|
|
|
22126
22129
|
<co-transaction-line-label [insideLabel]="'BATCH_NR'"></co-transaction-line-label>
|
|
22127
22130
|
<co-input-text class="side-panel-input"
|
|
22128
22131
|
[(model)]="transactionLine.batchNr"
|
|
22129
|
-
[type]="'number'"
|
|
22130
22132
|
[hideArrowButtons]="true"
|
|
22131
|
-
[readonly]="
|
|
22133
|
+
[readonly]="this.returnStockMode || readonly"
|
|
22132
22134
|
[required]="true"
|
|
22133
22135
|
[customHeight]="true"
|
|
22134
22136
|
></co-input-text>
|
|
@@ -37496,7 +37498,8 @@ class TransactionLinePurchaseReceiveGoodsComponent extends TransactionLineBaseCo
|
|
|
37496
37498
|
this.receiptDetails.lineNr = this.transactionLine.lineNr;
|
|
37497
37499
|
this.receiptDetails.quantityToReceive = this.lineQuantityToReceive;
|
|
37498
37500
|
this.receiptDetails.locationNr = this.transactionLine.locationNr;
|
|
37499
|
-
this.returnStockMode
|
|
37501
|
+
this.returnStockMode = this.transactionLine.amount < 0;
|
|
37502
|
+
this.receiptDetails.batchNr = this.transactionLine.batchNr;
|
|
37500
37503
|
this.getGoodsReceiptHistory();
|
|
37501
37504
|
}
|
|
37502
37505
|
_getAvailableStock() {
|
|
@@ -37553,7 +37556,6 @@ TransactionLinePurchaseReceiveGoodsComponent.decorators = [
|
|
|
37553
37556
|
></co-transaction-labeled-warehouse-location-button>
|
|
37554
37557
|
-->
|
|
37555
37558
|
<co-input-text class="side-panel-input" [(model)]="receiptDetails.batchNr" *ngIf="transactionLine.isBatchNrRequired"
|
|
37556
|
-
[type]="'number'"
|
|
37557
37559
|
[hideArrowButtons]="true"
|
|
37558
37560
|
[readonly]="readonly || returnStockMode"
|
|
37559
37561
|
[disabled]="returnStockMode"
|
|
@@ -49765,6 +49767,9 @@ class PaymentComponent extends TransactionPaymentBaseComponent {
|
|
|
49765
49767
|
super.cashRegisterSelected(cashRegister, index);
|
|
49766
49768
|
this.activeCashRegister = cashRegister;
|
|
49767
49769
|
}
|
|
49770
|
+
onDepositPaymentFetched(depositAmount) {
|
|
49771
|
+
this.depositAmount = depositAmount;
|
|
49772
|
+
}
|
|
49768
49773
|
}
|
|
49769
49774
|
PaymentComponent.decorators = [
|
|
49770
49775
|
{ type: Component, args: [{
|
|
@@ -49808,7 +49813,7 @@ PaymentComponent.decorators = [
|
|
|
49808
49813
|
<div class="payment-to-pay-total">
|
|
49809
49814
|
<div class="payment-to-pay-header">
|
|
49810
49815
|
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
49811
|
-
<span class="payment-total-pay" [textContent]="
|
|
49816
|
+
<span class="payment-total-pay" [textContent]="depositAmount ? (depositAmount | coCurrency: true) : (paymentService.amount | coCurrency: true)"></span>
|
|
49812
49817
|
</div>
|
|
49813
49818
|
<div class="payment-input-button-wrapper">
|
|
49814
49819
|
<div class="payment-input-button">
|
|
@@ -49831,7 +49836,11 @@ PaymentComponent.decorators = [
|
|
|
49831
49836
|
</div>
|
|
49832
49837
|
|
|
49833
49838
|
<div class="payment-deposit">
|
|
49834
|
-
<co-deposit-payment
|
|
49839
|
+
<co-deposit-payment
|
|
49840
|
+
[branch]="branch"
|
|
49841
|
+
[transactionUuid]="transactionUuid"
|
|
49842
|
+
(depositPaymentFetched)="onDepositPaymentFetched($event)">
|
|
49843
|
+
</co-deposit-payment>
|
|
49835
49844
|
</div>
|
|
49836
49845
|
<co-key-pad class="payment-to-pay-keypad" *ngIf="showKeyPad"
|
|
49837
49846
|
[showValue]="false"
|
|
@@ -49993,6 +50002,7 @@ class DepositPaymentComponent {
|
|
|
49993
50002
|
this._transactionEventService = _transactionEventService;
|
|
49994
50003
|
this.transKind = TransactionKind;
|
|
49995
50004
|
this.showTitle = true;
|
|
50005
|
+
this.depositPaymentFetched = new EventEmitter();
|
|
49996
50006
|
this.paymentMethods = [];
|
|
49997
50007
|
this.depositPayments = [];
|
|
49998
50008
|
this.showLoader = true;
|
|
@@ -50016,6 +50026,7 @@ class DepositPaymentComponent {
|
|
|
50016
50026
|
this._paymentConnectorService.getDepositPaymentInfo(this.transactionUuid).then((info) => {
|
|
50017
50027
|
this.depositPayments.length = 0;
|
|
50018
50028
|
if (info && info.depositPayments) {
|
|
50029
|
+
this.depositPaymentFetched.emit(info.depositAmount);
|
|
50019
50030
|
info.depositPayments.sort((a, b) => a.id > b.id ? 1 : -1);
|
|
50020
50031
|
info.depositPayments.forEach((dp) => {
|
|
50021
50032
|
const paymentMethod = this.paymentMethods.find(pm => pm.payment.code === dp.paymentMethodCode);
|
|
@@ -50069,6 +50080,7 @@ DepositPaymentComponent.propDecorators = {
|
|
|
50069
50080
|
transactionKind: [{ type: Input }],
|
|
50070
50081
|
showTitle: [{ type: Input }],
|
|
50071
50082
|
transactionUuid: [{ type: Input }],
|
|
50083
|
+
depositPaymentFetched: [{ type: Output }],
|
|
50072
50084
|
showClass: [{ type: HostBinding, args: ["class.co-deposit-payment",] }]
|
|
50073
50085
|
};
|
|
50074
50086
|
|