@colijnit/transaction 261.20.48 → 261.20.50
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.
|
@@ -224,6 +224,7 @@ import { IonePaymentStatusCode } from '@colijnit/transactionapi/build/enum/ione-
|
|
|
224
224
|
import { HttpClient } from '@angular/common/http';
|
|
225
225
|
import { CashDrawersRequest } from '@colijnit/transactionapi/build/model/cash-drawers-request';
|
|
226
226
|
import { PspType } from '@colijnit/transactionapi/build/enum/psp-type.enum';
|
|
227
|
+
import { CalculateAmountToPayRequest } from '@colijnit/transactionapi/build/model/calculate-amount-to-pay-request';
|
|
227
228
|
import { DateUtils } from '@colijnit/ioneconnector/build/utils/date-utils';
|
|
228
229
|
import { ImageUtils } from '@colijnit/ioneconnector/build/utils/image-utils';
|
|
229
230
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
@@ -273,7 +274,6 @@ import { TrueFalseDbType } from '@colijnit/mainapi/build/enum/true-false-db-type
|
|
|
273
274
|
import { OrderLineSetDTO } from '@colijnit/transactionapi/build/model/order-line-set-dto';
|
|
274
275
|
import { TransactionAddOrderLineSetTextLineRequest } from '@colijnit/transactionapi/build/model/transaction-add-order-line-set-text-line-request';
|
|
275
276
|
import { TransactionLineCopyRequest } from '@colijnit/transactionapi/build/model/transaction-line-copy-request.bo';
|
|
276
|
-
import { CalculateAmountToPayRequest } from '@colijnit/transactionapi/build/model/calculate-amount-to-pay-request';
|
|
277
277
|
import { ExternalCatalogAddArticleRequest } from '@colijnit/transactionapi/build/model/external-catalog-add-article-request';
|
|
278
278
|
import { CopyTransactionRequest } from '@colijnit/transactionapi/build/model/copy-transaction-request';
|
|
279
279
|
import { ArrayUtils } from '@colijnit/ioneconnector/build/utils/array-utils';
|
|
@@ -354,8 +354,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
354
354
|
class Version {
|
|
355
355
|
name = "@colijnit/transaction";
|
|
356
356
|
description = "Colijn IT transaction package";
|
|
357
|
-
symVer = "261.20.
|
|
358
|
-
publishDate = "
|
|
357
|
+
symVer = "261.20.50";
|
|
358
|
+
publishDate = "16/06/2026, 14:38:48";
|
|
359
359
|
}
|
|
360
360
|
|
|
361
361
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -34648,6 +34648,7 @@ class TransactionPaymentService {
|
|
|
34648
34648
|
}
|
|
34649
34649
|
else {
|
|
34650
34650
|
pspTransactionUuid = await this._paymentConnectorService.doPayment(request);
|
|
34651
|
+
await this._triggerCalculateAmountToPay();
|
|
34651
34652
|
}
|
|
34652
34653
|
if (pspTransactionUuid) {
|
|
34653
34654
|
this._paymentStatusPollIntervalCount = 0;
|
|
@@ -34660,6 +34661,9 @@ class TransactionPaymentService {
|
|
|
34660
34661
|
if (this.currentPaymentMethod.voucher) {
|
|
34661
34662
|
this._transactionEventService.posOrderVoucherPayment.next();
|
|
34662
34663
|
}
|
|
34664
|
+
else {
|
|
34665
|
+
await this._triggerCalculateAmountToPay();
|
|
34666
|
+
}
|
|
34663
34667
|
this._handlePayment(false);
|
|
34664
34668
|
if (this.amountToPay === 0) {
|
|
34665
34669
|
this._handlePayment();
|
|
@@ -34791,14 +34795,14 @@ class TransactionPaymentService {
|
|
|
34791
34795
|
}
|
|
34792
34796
|
});
|
|
34793
34797
|
}
|
|
34794
|
-
|
|
34795
|
-
|
|
34796
|
-
|
|
34797
|
-
|
|
34798
|
-
|
|
34799
|
-
|
|
34800
|
-
|
|
34801
|
-
|
|
34798
|
+
async _triggerCalculateAmountToPay() {
|
|
34799
|
+
const amountToPayRequest = new CalculateAmountToPayRequest();
|
|
34800
|
+
amountToPayRequest.transactionUuid = this.transactionUuid;
|
|
34801
|
+
amountToPayRequest.paymentMethodCode = this.currentPaymentMethod.code;
|
|
34802
|
+
this._paymentConnectorService.calculateAmountToPay(amountToPayRequest).then((result) => {
|
|
34803
|
+
this.amountToPay = result.amountToPay;
|
|
34804
|
+
});
|
|
34805
|
+
}
|
|
34802
34806
|
async _handleCashLimitCheck() {
|
|
34803
34807
|
let payedAmount = await this._transactionService.getCashPaymentValueByTransId(this.transId);
|
|
34804
34808
|
const limit = await this._transactionService.getCashLimitValue(InternalParam.ThresholdCashPaymentMessage);
|
|
@@ -41888,8 +41892,9 @@ class CashOnDeliveryModalComponent extends TransactionInputLineFieldBaseComponen
|
|
|
41888
41892
|
changeAmountRequest = new ChangeHeaderCashOnDeliveryAmountRequest();
|
|
41889
41893
|
icons = Icon;
|
|
41890
41894
|
cashOnDeliveryAmount = 0;
|
|
41891
|
-
ngOnInit() {
|
|
41895
|
+
async ngOnInit() {
|
|
41892
41896
|
this._getCashOnDeliveryData();
|
|
41897
|
+
await this.lockTransaction();
|
|
41893
41898
|
}
|
|
41894
41899
|
updateCashOnDeliveryAmount() {
|
|
41895
41900
|
this.cashOnDeliveryAmount = this.input.model;
|
|
@@ -41969,7 +41974,7 @@ class CashOnDeliveryModalComponent extends TransactionInputLineFieldBaseComponen
|
|
|
41969
41974
|
#input
|
|
41970
41975
|
[type]="'number'"
|
|
41971
41976
|
[placeholder]="'CASH_ON_DELIVERY_AMOUNT' | localize"
|
|
41972
|
-
[model]="cashOnDeliveryAmount"
|
|
41977
|
+
[model]="cashOnDeliveryAmount"
|
|
41973
41978
|
[formatPipe]="currencyPipe"
|
|
41974
41979
|
(keydown)="onEnterKey($event)">
|
|
41975
41980
|
</co-input-text>
|
|
@@ -42051,7 +42056,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42051
42056
|
#input
|
|
42052
42057
|
[type]="'number'"
|
|
42053
42058
|
[placeholder]="'CASH_ON_DELIVERY_AMOUNT' | localize"
|
|
42054
|
-
[model]="cashOnDeliveryAmount"
|
|
42059
|
+
[model]="cashOnDeliveryAmount"
|
|
42055
42060
|
[formatPipe]="currencyPipe"
|
|
42056
42061
|
(keydown)="onEnterKey($event)">
|
|
42057
42062
|
</co-input-text>
|
|
@@ -42176,6 +42181,9 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42176
42181
|
}
|
|
42177
42182
|
showCashOnDeliveryModal(value) {
|
|
42178
42183
|
this.cashOnDeliveryModalVisible = value;
|
|
42184
|
+
if (value === false) {
|
|
42185
|
+
this.transactionEventService.headerPopupSaveButtonEnableChange.next(true);
|
|
42186
|
+
}
|
|
42179
42187
|
}
|
|
42180
42188
|
getCashAmount(value) {
|
|
42181
42189
|
this.cashOnDelivery = value;
|
|
@@ -42244,6 +42252,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42244
42252
|
super.transactionSet();
|
|
42245
42253
|
this._getDepositInfo();
|
|
42246
42254
|
this._getOutstandingAmounts();
|
|
42255
|
+
this._getCashOnDeliveryData();
|
|
42247
42256
|
}
|
|
42248
42257
|
_getDepositInfo() {
|
|
42249
42258
|
this._paymentConnectorService.getDepositPaymentInfo(this.transactionInfo.uuid).then((info) => {
|
|
@@ -42312,6 +42321,15 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42312
42321
|
this.chosenAmountToPay = 0;
|
|
42313
42322
|
}
|
|
42314
42323
|
}
|
|
42324
|
+
_getCashOnDeliveryData() {
|
|
42325
|
+
this.transactionService.getCashOnDeliveryData(this.transactionInfo.uuid)
|
|
42326
|
+
.then((response) => {
|
|
42327
|
+
if (response) {
|
|
42328
|
+
this.cashOnDelivery = response.proposedCashOnDeliveryAmount;
|
|
42329
|
+
this.changeDetector.detectChanges();
|
|
42330
|
+
}
|
|
42331
|
+
});
|
|
42332
|
+
}
|
|
42315
42333
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderPopupPaymentComponent, deps: [{ token: TransactionHeaderService }, { token: TransactionEventService }, { token: TransactionService }, { token: IconCacheService }, { token: TransactionScreenConfigurationService }, { token: DictionaryService }, { token: TransactionImageService }, { token: i0.ChangeDetectorRef }, { token: TransactionDialogService }, { token: i1$1.FormMasterService }, { token: TransactionRelationService }, { token: TransactionPaymentConnectorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
42316
42334
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionHeaderPopupPaymentComponent, isStandalone: false, selector: "co-transaction-header-popup-payment", host: { properties: { "class.co-transaction-header-popup-payment": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
42317
42335
|
<div class="transaction-header-popup-category-wrapper co-small-scrollbar">
|
|
@@ -42323,7 +42341,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42323
42341
|
[textContent]="'TO_PAY_DOWN' | localize">
|
|
42324
42342
|
</div>
|
|
42325
42343
|
}
|
|
42326
|
-
|
|
42344
|
+
|
|
42327
42345
|
<div class="transaction-header-popup-two-column-grid">
|
|
42328
42346
|
<co-transaction-header-deposit-percentage
|
|
42329
42347
|
[screenConfigurationObject]="cfgNames.DepositPercentage"
|
|
@@ -42338,7 +42356,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42338
42356
|
(depositUpdated)="showOutstandingAmounts()">
|
|
42339
42357
|
</co-transaction-header-deposit-amount>
|
|
42340
42358
|
</div>
|
|
42341
|
-
|
|
42359
|
+
|
|
42342
42360
|
<div class="transaction-header-popup-three-column-grid">
|
|
42343
42361
|
@if (transactionInfo.transactionKind !== transKind.PurchaseOrder) {
|
|
42344
42362
|
<co-transaction-header-use-deposit-rule
|
|
@@ -42365,7 +42383,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42365
42383
|
</div>
|
|
42366
42384
|
}
|
|
42367
42385
|
</div>
|
|
42368
|
-
|
|
42386
|
+
|
|
42369
42387
|
<div class="transaction-header-popup-two-column-grid">
|
|
42370
42388
|
<co-transaction-header-amount-to-settle
|
|
42371
42389
|
[screenConfigurationObject]="cfgNames.AmountToSettle"
|
|
@@ -42384,7 +42402,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42384
42402
|
</co-input-text>
|
|
42385
42403
|
</div>
|
|
42386
42404
|
</div>
|
|
42387
|
-
|
|
42405
|
+
|
|
42388
42406
|
@if (showCashOnDelivery) {
|
|
42389
42407
|
<div class="transaction-header-popup-two-column-grid">
|
|
42390
42408
|
<div class="cash-on-delivery-row">
|
|
@@ -42404,7 +42422,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42404
42422
|
<div></div>
|
|
42405
42423
|
</div>
|
|
42406
42424
|
}
|
|
42407
|
-
|
|
42425
|
+
|
|
42408
42426
|
<div
|
|
42409
42427
|
class="transaction-header-popup-two-column-grid"
|
|
42410
42428
|
[screenConfigurationObject]="cfgNames.PaymentBtn"
|
|
@@ -42417,7 +42435,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42417
42435
|
}
|
|
42418
42436
|
</div>
|
|
42419
42437
|
</div>
|
|
42420
|
-
|
|
42438
|
+
|
|
42421
42439
|
@if (paymentAnalysis) {
|
|
42422
42440
|
<div class="transaction-header-popup-section">
|
|
42423
42441
|
<div class="transaction-header-popup-section-label" [textContent]="'TO_INVOICE' | localize"></div>
|
|
@@ -42439,7 +42457,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42439
42457
|
</div>
|
|
42440
42458
|
</div>
|
|
42441
42459
|
}
|
|
42442
|
-
|
|
42460
|
+
|
|
42443
42461
|
@if (orderPaymentAnalysis.length > 0) {
|
|
42444
42462
|
<div class="payment-information">
|
|
42445
42463
|
@if (showPaymentButton()) {
|
|
@@ -42570,7 +42588,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42570
42588
|
</div>
|
|
42571
42589
|
}
|
|
42572
42590
|
</co-form>
|
|
42573
|
-
|
|
42591
|
+
|
|
42574
42592
|
@if (cashOnDeliveryModalVisible) {
|
|
42575
42593
|
<co-cash-on-delivery-modal
|
|
42576
42594
|
[transactionInfoUuid]="transactionInfo.uuid"
|
|
@@ -42579,7 +42597,7 @@ class TransactionHeaderPopupPaymentComponent extends TransactionHeaderPopupBaseC
|
|
|
42579
42597
|
</co-cash-on-delivery-modal>
|
|
42580
42598
|
}
|
|
42581
42599
|
</div>
|
|
42582
|
-
|
|
42600
|
+
|
|
42583
42601
|
@if (showPaymentDialog) {
|
|
42584
42602
|
<co-dialog
|
|
42585
42603
|
class="payment-dialog"
|
|
@@ -42621,7 +42639,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42621
42639
|
[textContent]="'TO_PAY_DOWN' | localize">
|
|
42622
42640
|
</div>
|
|
42623
42641
|
}
|
|
42624
|
-
|
|
42642
|
+
|
|
42625
42643
|
<div class="transaction-header-popup-two-column-grid">
|
|
42626
42644
|
<co-transaction-header-deposit-percentage
|
|
42627
42645
|
[screenConfigurationObject]="cfgNames.DepositPercentage"
|
|
@@ -42636,7 +42654,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42636
42654
|
(depositUpdated)="showOutstandingAmounts()">
|
|
42637
42655
|
</co-transaction-header-deposit-amount>
|
|
42638
42656
|
</div>
|
|
42639
|
-
|
|
42657
|
+
|
|
42640
42658
|
<div class="transaction-header-popup-three-column-grid">
|
|
42641
42659
|
@if (transactionInfo.transactionKind !== transKind.PurchaseOrder) {
|
|
42642
42660
|
<co-transaction-header-use-deposit-rule
|
|
@@ -42663,7 +42681,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42663
42681
|
</div>
|
|
42664
42682
|
}
|
|
42665
42683
|
</div>
|
|
42666
|
-
|
|
42684
|
+
|
|
42667
42685
|
<div class="transaction-header-popup-two-column-grid">
|
|
42668
42686
|
<co-transaction-header-amount-to-settle
|
|
42669
42687
|
[screenConfigurationObject]="cfgNames.AmountToSettle"
|
|
@@ -42682,7 +42700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42682
42700
|
</co-input-text>
|
|
42683
42701
|
</div>
|
|
42684
42702
|
</div>
|
|
42685
|
-
|
|
42703
|
+
|
|
42686
42704
|
@if (showCashOnDelivery) {
|
|
42687
42705
|
<div class="transaction-header-popup-two-column-grid">
|
|
42688
42706
|
<div class="cash-on-delivery-row">
|
|
@@ -42702,7 +42720,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42702
42720
|
<div></div>
|
|
42703
42721
|
</div>
|
|
42704
42722
|
}
|
|
42705
|
-
|
|
42723
|
+
|
|
42706
42724
|
<div
|
|
42707
42725
|
class="transaction-header-popup-two-column-grid"
|
|
42708
42726
|
[screenConfigurationObject]="cfgNames.PaymentBtn"
|
|
@@ -42715,7 +42733,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42715
42733
|
}
|
|
42716
42734
|
</div>
|
|
42717
42735
|
</div>
|
|
42718
|
-
|
|
42736
|
+
|
|
42719
42737
|
@if (paymentAnalysis) {
|
|
42720
42738
|
<div class="transaction-header-popup-section">
|
|
42721
42739
|
<div class="transaction-header-popup-section-label" [textContent]="'TO_INVOICE' | localize"></div>
|
|
@@ -42737,7 +42755,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42737
42755
|
</div>
|
|
42738
42756
|
</div>
|
|
42739
42757
|
}
|
|
42740
|
-
|
|
42758
|
+
|
|
42741
42759
|
@if (orderPaymentAnalysis.length > 0) {
|
|
42742
42760
|
<div class="payment-information">
|
|
42743
42761
|
@if (showPaymentButton()) {
|
|
@@ -42868,7 +42886,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42868
42886
|
</div>
|
|
42869
42887
|
}
|
|
42870
42888
|
</co-form>
|
|
42871
|
-
|
|
42889
|
+
|
|
42872
42890
|
@if (cashOnDeliveryModalVisible) {
|
|
42873
42891
|
<co-cash-on-delivery-modal
|
|
42874
42892
|
[transactionInfoUuid]="transactionInfo.uuid"
|
|
@@ -42877,7 +42895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
42877
42895
|
</co-cash-on-delivery-modal>
|
|
42878
42896
|
}
|
|
42879
42897
|
</div>
|
|
42880
|
-
|
|
42898
|
+
|
|
42881
42899
|
@if (showPaymentDialog) {
|
|
42882
42900
|
<co-dialog
|
|
42883
42901
|
class="payment-dialog"
|
|
@@ -49130,14 +49148,12 @@ class TransactionArticleTextComponent {
|
|
|
49130
49148
|
let html = event.target.innerHTML ?? "";
|
|
49131
49149
|
html = html.replace(/ /g, " ");
|
|
49132
49150
|
if (!html.trim()) {
|
|
49133
|
-
this.transactionAddTextLineRequest.text = "
|
|
49151
|
+
this.transactionAddTextLineRequest.text = "";
|
|
49134
49152
|
return;
|
|
49135
49153
|
}
|
|
49136
49154
|
html = html.replace(/<div>/gi, "<p>");
|
|
49137
49155
|
html = html.replace(/<\/div>/gi, "</p>");
|
|
49138
49156
|
html = html.replace(/<p>\s*<br\s*\/?>\s*<\/p>/gi, "<p></p>");
|
|
49139
|
-
html = html.replace(/<br\s*\/?>\s*<\/p>/gi, "</p><p></p>");
|
|
49140
|
-
html = html.replace(/<br\s*\/?>/gi, "</p><p></p><p>");
|
|
49141
49157
|
html = html.replace(/^([^<][\s\S]*?)(?=<p>|$)/i, (match) => {
|
|
49142
49158
|
const text = match.trim();
|
|
49143
49159
|
return text ? `<p>${text}</p>` : "";
|
|
@@ -49154,12 +49170,16 @@ class TransactionArticleTextComponent {
|
|
|
49154
49170
|
updateWysiwyg() {
|
|
49155
49171
|
if (!this.wysiwyg)
|
|
49156
49172
|
return;
|
|
49157
|
-
|
|
49173
|
+
const txt = this.transactionAddTextLineRequest.text ?? "";
|
|
49158
49174
|
const isEmpty = txt.trim().length === 0;
|
|
49159
49175
|
const hasHtml = txt.includes("<");
|
|
49160
|
-
if (isEmpty
|
|
49161
|
-
|
|
49162
|
-
|
|
49176
|
+
if (isEmpty) {
|
|
49177
|
+
this.wysiwyg.nativeElement.innerHTML = "";
|
|
49178
|
+
return;
|
|
49179
|
+
}
|
|
49180
|
+
if (!hasHtml) {
|
|
49181
|
+
this.wysiwyg.nativeElement.innerHTML =
|
|
49182
|
+
"<p>" + txt.replace(/\n/g, "</p><p>") + "</p>";
|
|
49163
49183
|
}
|
|
49164
49184
|
else {
|
|
49165
49185
|
this.wysiwyg.nativeElement.innerHTML = txt;
|
|
@@ -49168,13 +49188,15 @@ class TransactionArticleTextComponent {
|
|
|
49168
49188
|
changeEditorMode() {
|
|
49169
49189
|
this.editRawText = !this.editRawText;
|
|
49170
49190
|
if (this.editRawText) {
|
|
49171
|
-
let txt = this.transactionAddTextLineRequest.text;
|
|
49172
|
-
if (!txt) {
|
|
49173
|
-
|
|
49191
|
+
let txt = this.transactionAddTextLineRequest.text ?? "";
|
|
49192
|
+
if (!txt.trim().length) {
|
|
49193
|
+
this.transactionAddTextLineRequest.text = "";
|
|
49194
|
+
this.updateWysiwyg();
|
|
49195
|
+
return;
|
|
49174
49196
|
}
|
|
49175
|
-
if (!txt.
|
|
49176
|
-
|
|
49177
|
-
|
|
49197
|
+
if (!txt.includes("<")) {
|
|
49198
|
+
this.transactionAddTextLineRequest.text =
|
|
49199
|
+
"<p>" + txt.replace(/\n/g, "</p><p>") + "</p>";
|
|
49178
49200
|
this.updateWysiwyg();
|
|
49179
49201
|
}
|
|
49180
49202
|
}
|
|
@@ -66509,21 +66531,11 @@ class TransactionPurchaseOrderFilterContentLogisticsComponent extends Transactio
|
|
|
66509
66531
|
<div class="filter-item-wrapper">
|
|
66510
66532
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
66511
66533
|
[collection]="warehouses"
|
|
66512
|
-
[(model)]="searchService.searchRequest.
|
|
66513
|
-
[mode]="modes.
|
|
66514
|
-
</co-transaction-filter-item>
|
|
66515
|
-
</div>
|
|
66516
|
-
|
|
66517
|
-
<!--Bron magazijn-->
|
|
66518
|
-
<div class="filter-item-wrapper">
|
|
66519
|
-
<co-transaction-filter-item [placeholder]="'SOURCE_WAREHOUSE'"
|
|
66520
|
-
[(model)]="searchService.searchRequest.sourceWarehouse"
|
|
66521
|
-
[mode]="modes.Filterlist"
|
|
66522
|
-
[collection]="sourceWarehouses"
|
|
66523
|
-
(modelChange)="modelChange($event)">
|
|
66534
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
66535
|
+
[mode]="modes.Filterlist">
|
|
66524
66536
|
</co-transaction-filter-item>
|
|
66525
66537
|
</div>
|
|
66526
|
-
|
|
66538
|
+
|
|
66527
66539
|
<!--Levermethode-->
|
|
66528
66540
|
<div class="filter-item-wrapper">
|
|
66529
66541
|
<co-transaction-filter-item [placeholder]="'DELIVERY_METHOD'"
|
|
@@ -66674,21 +66686,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66674
66686
|
<div class="filter-item-wrapper">
|
|
66675
66687
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
66676
66688
|
[collection]="warehouses"
|
|
66677
|
-
[(model)]="searchService.searchRequest.
|
|
66678
|
-
[mode]="modes.
|
|
66679
|
-
</co-transaction-filter-item>
|
|
66680
|
-
</div>
|
|
66681
|
-
|
|
66682
|
-
<!--Bron magazijn-->
|
|
66683
|
-
<div class="filter-item-wrapper">
|
|
66684
|
-
<co-transaction-filter-item [placeholder]="'SOURCE_WAREHOUSE'"
|
|
66685
|
-
[(model)]="searchService.searchRequest.sourceWarehouse"
|
|
66686
|
-
[mode]="modes.Filterlist"
|
|
66687
|
-
[collection]="sourceWarehouses"
|
|
66688
|
-
(modelChange)="modelChange($event)">
|
|
66689
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
66690
|
+
[mode]="modes.Filterlist">
|
|
66689
66691
|
</co-transaction-filter-item>
|
|
66690
66692
|
</div>
|
|
66691
|
-
|
|
66693
|
+
|
|
66692
66694
|
<!--Levermethode-->
|
|
66693
66695
|
<div class="filter-item-wrapper">
|
|
66694
66696
|
<co-transaction-filter-item [placeholder]="'DELIVERY_METHOD'"
|
|
@@ -66831,6 +66833,8 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66831
66833
|
workflowStatusFields = { text: "name", value: "name" };
|
|
66832
66834
|
projectCodes;
|
|
66833
66835
|
projectCodeFields = { text: "description", value: "description" };
|
|
66836
|
+
withOrWithoutLines;
|
|
66837
|
+
withOrWithoutLinesFields = { text: "description", value: "code" };
|
|
66834
66838
|
transStartDate;
|
|
66835
66839
|
transEndDate;
|
|
66836
66840
|
deliveryStartDate;
|
|
@@ -66848,6 +66852,7 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66848
66852
|
this._setOrderDepositFullyPaid();
|
|
66849
66853
|
this._setWorkFlowStatusNames();
|
|
66850
66854
|
this._setAllProjectCodes();
|
|
66855
|
+
this._setWithOrWithoutLines();
|
|
66851
66856
|
}
|
|
66852
66857
|
//Inkoper
|
|
66853
66858
|
_setPurchasePersons() {
|
|
@@ -66918,6 +66923,11 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66918
66923
|
this.suppliers = new FilterViewmodel(relationListObjects, this.supplierFields).filterItems;
|
|
66919
66924
|
});
|
|
66920
66925
|
}
|
|
66926
|
+
_setWithOrWithoutLines() {
|
|
66927
|
+
this.transactionService.getYesNo("NL").then((withOrWithoutLines) => {
|
|
66928
|
+
this.withOrWithoutLines = new FilterViewmodel(withOrWithoutLines, this.withOrWithoutLinesFields).filterItems;
|
|
66929
|
+
});
|
|
66930
|
+
}
|
|
66921
66931
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionPurchaseOrderFilterContentOrderComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
66922
66932
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionPurchaseOrderFilterContentOrderComponent, isStandalone: false, selector: "co-transaction-purchase-order-filter-content-order", host: { properties: { "class.co-transaction-search-filter-content": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
66923
66933
|
<div class="transaction-filter-content-order-wrapper transaction-filter-content-wrapper">
|
|
@@ -66930,6 +66940,15 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66930
66940
|
</co-transaction-filter-item>
|
|
66931
66941
|
</div>
|
|
66932
66942
|
|
|
66943
|
+
<div class="filter-item-wrapper">
|
|
66944
|
+
<co-transaction-filter-item [placeholder]="'HAS_LINES'"
|
|
66945
|
+
[(model)]="searchService.searchRequest.ordersWithOrWithoutLines"
|
|
66946
|
+
[mode]="modes.Filterlist"
|
|
66947
|
+
[collection]="withOrWithoutLines"
|
|
66948
|
+
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
66949
|
+
</co-transaction-filter-item>
|
|
66950
|
+
</div>
|
|
66951
|
+
|
|
66933
66952
|
<!--Orderdatum-->
|
|
66934
66953
|
<div class="filter-item-wrapper">
|
|
66935
66954
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -66937,7 +66956,7 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66937
66956
|
[mode]="modes.DateRangeField">
|
|
66938
66957
|
</co-transaction-filter-item>
|
|
66939
66958
|
</div>
|
|
66940
|
-
|
|
66959
|
+
|
|
66941
66960
|
<!--Leverancier-->
|
|
66942
66961
|
<div class="filter-item-wrapper">
|
|
66943
66962
|
<co-transaction-filter-item [placeholder]="'SUPPLIER'"
|
|
@@ -66947,7 +66966,7 @@ class TransactionPurchaseOrderFilterContentOrderComponent extends TransactionFil
|
|
|
66947
66966
|
[mode]="modes.Filterlist">
|
|
66948
66967
|
</co-transaction-filter-item>
|
|
66949
66968
|
</div>
|
|
66950
|
-
|
|
66969
|
+
|
|
66951
66970
|
<!--Leverdatum-->
|
|
66952
66971
|
<div class="filter-item-wrapper">
|
|
66953
66972
|
<co-transaction-filter-item [placeholder]="'DELIVERY_DATE'"
|
|
@@ -67104,6 +67123,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
67104
67123
|
</co-transaction-filter-item>
|
|
67105
67124
|
</div>
|
|
67106
67125
|
|
|
67126
|
+
<div class="filter-item-wrapper">
|
|
67127
|
+
<co-transaction-filter-item [placeholder]="'HAS_LINES'"
|
|
67128
|
+
[(model)]="searchService.searchRequest.ordersWithOrWithoutLines"
|
|
67129
|
+
[mode]="modes.Filterlist"
|
|
67130
|
+
[collection]="withOrWithoutLines"
|
|
67131
|
+
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
67132
|
+
</co-transaction-filter-item>
|
|
67133
|
+
</div>
|
|
67134
|
+
|
|
67107
67135
|
<!--Orderdatum-->
|
|
67108
67136
|
<div class="filter-item-wrapper">
|
|
67109
67137
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -67111,7 +67139,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
67111
67139
|
[mode]="modes.DateRangeField">
|
|
67112
67140
|
</co-transaction-filter-item>
|
|
67113
67141
|
</div>
|
|
67114
|
-
|
|
67142
|
+
|
|
67115
67143
|
<!--Leverancier-->
|
|
67116
67144
|
<div class="filter-item-wrapper">
|
|
67117
67145
|
<co-transaction-filter-item [placeholder]="'SUPPLIER'"
|
|
@@ -67121,7 +67149,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
67121
67149
|
[mode]="modes.Filterlist">
|
|
67122
67150
|
</co-transaction-filter-item>
|
|
67123
67151
|
</div>
|
|
67124
|
-
|
|
67152
|
+
|
|
67125
67153
|
<!--Leverdatum-->
|
|
67126
67154
|
<div class="filter-item-wrapper">
|
|
67127
67155
|
<co-transaction-filter-item [placeholder]="'DELIVERY_DATE'"
|
|
@@ -67895,8 +67923,8 @@ class TransactionSalesOrderFilterContentLogisticsComponent extends TransactionFi
|
|
|
67895
67923
|
<div class="filter-item-wrapper">
|
|
67896
67924
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
67897
67925
|
[collection]="warehouses"
|
|
67898
|
-
[(model)]="searchService.searchRequest.
|
|
67899
|
-
[mode]="modes.
|
|
67926
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
67927
|
+
[mode]="modes.Filterlist"
|
|
67900
67928
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
67901
67929
|
</co-transaction-filter-item>
|
|
67902
67930
|
</div>
|
|
@@ -68078,8 +68106,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
68078
68106
|
<div class="filter-item-wrapper">
|
|
68079
68107
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
68080
68108
|
[collection]="warehouses"
|
|
68081
|
-
[(model)]="searchService.searchRequest.
|
|
68082
|
-
[mode]="modes.
|
|
68109
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
68110
|
+
[mode]="modes.Filterlist"
|
|
68083
68111
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
68084
68112
|
</co-transaction-filter-item>
|
|
68085
68113
|
</div>
|
|
@@ -74045,8 +74073,8 @@ class TransactionSalesQuotationFilterContentLogisticsComponent extends Transacti
|
|
|
74045
74073
|
<div class="filter-item-wrapper">
|
|
74046
74074
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
74047
74075
|
[collection]="warehouses"
|
|
74048
|
-
[(model)]="searchRequest.
|
|
74049
|
-
[mode]="modes.
|
|
74076
|
+
[(model)]="searchRequest.rangeWarehouse"
|
|
74077
|
+
[mode]="modes.Filterlist">
|
|
74050
74078
|
</co-transaction-filter-item>
|
|
74051
74079
|
</div>
|
|
74052
74080
|
|
|
@@ -74099,8 +74127,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
74099
74127
|
<div class="filter-item-wrapper">
|
|
74100
74128
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
74101
74129
|
[collection]="warehouses"
|
|
74102
|
-
[(model)]="searchRequest.
|
|
74103
|
-
[mode]="modes.
|
|
74130
|
+
[(model)]="searchRequest.rangeWarehouse"
|
|
74131
|
+
[mode]="modes.Filterlist">
|
|
74104
74132
|
</co-transaction-filter-item>
|
|
74105
74133
|
</div>
|
|
74106
74134
|
|
|
@@ -74777,8 +74805,8 @@ class TransactionCashDeskFilterContentLogisticsComponent extends TransactionFilt
|
|
|
74777
74805
|
<div class="filter-item-wrapper">
|
|
74778
74806
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
74779
74807
|
[collection]="warehouses"
|
|
74780
|
-
[(model)]="searchService.searchRequest.
|
|
74781
|
-
[mode]="modes.
|
|
74808
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
74809
|
+
[mode]="modes.Filterlist">
|
|
74782
74810
|
</co-transaction-filter-item>
|
|
74783
74811
|
</div>
|
|
74784
74812
|
|
|
@@ -74926,8 +74954,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
74926
74954
|
<div class="filter-item-wrapper">
|
|
74927
74955
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
74928
74956
|
[collection]="warehouses"
|
|
74929
|
-
[(model)]="searchService.searchRequest.
|
|
74930
|
-
[mode]="modes.
|
|
74957
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
74958
|
+
[mode]="modes.Filterlist">
|
|
74931
74959
|
</co-transaction-filter-item>
|
|
74932
74960
|
</div>
|
|
74933
74961
|
|
|
@@ -76341,8 +76369,8 @@ class TransactionServiceOrderFilterContentLogisticsComponent extends Transaction
|
|
|
76341
76369
|
<div class="filter-item-wrapper">
|
|
76342
76370
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
76343
76371
|
[collection]="warehouses"
|
|
76344
|
-
[(model)]="searchService.searchRequest.
|
|
76345
|
-
[mode]="modes.
|
|
76372
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
76373
|
+
[mode]="modes.Filterlist">
|
|
76346
76374
|
</co-transaction-filter-item>
|
|
76347
76375
|
</div>
|
|
76348
76376
|
|
|
@@ -76490,8 +76518,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
76490
76518
|
<div class="filter-item-wrapper">
|
|
76491
76519
|
<co-transaction-filter-item [placeholder]="'WAREHOUSE'"
|
|
76492
76520
|
[collection]="warehouses"
|
|
76493
|
-
[(model)]="searchService.searchRequest.
|
|
76494
|
-
[mode]="modes.
|
|
76521
|
+
[(model)]="searchService.searchRequest.rangeWarehouse"
|
|
76522
|
+
[mode]="modes.Filterlist">
|
|
76495
76523
|
</co-transaction-filter-item>
|
|
76496
76524
|
</div>
|
|
76497
76525
|
|
|
@@ -103425,6 +103453,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103425
103453
|
iconCacheService;
|
|
103426
103454
|
transactionHeaderService;
|
|
103427
103455
|
transactionLineService;
|
|
103456
|
+
transactionService;
|
|
103428
103457
|
articleService;
|
|
103429
103458
|
icons = Icon;
|
|
103430
103459
|
tab = WarehouseCCTab;
|
|
@@ -103447,6 +103476,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103447
103476
|
transactionInfo;
|
|
103448
103477
|
transactionLine;
|
|
103449
103478
|
reason;
|
|
103479
|
+
articleName;
|
|
103450
103480
|
showDirectSell = false;
|
|
103451
103481
|
directSellSupplier;
|
|
103452
103482
|
directSellPurchaseOrderNumber;
|
|
@@ -103456,11 +103486,12 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103456
103486
|
chosenConversionUnit;
|
|
103457
103487
|
conversionAmount;
|
|
103458
103488
|
TransactionKind = TransactionKind;
|
|
103459
|
-
constructor(iconCacheService, transactionHeaderService, transactionLineService, articleService) {
|
|
103489
|
+
constructor(iconCacheService, transactionHeaderService, transactionLineService, transactionService, articleService) {
|
|
103460
103490
|
super();
|
|
103461
103491
|
this.iconCacheService = iconCacheService;
|
|
103462
103492
|
this.transactionHeaderService = transactionHeaderService;
|
|
103463
103493
|
this.transactionLineService = transactionLineService;
|
|
103494
|
+
this.transactionService = transactionService;
|
|
103464
103495
|
this.articleService = articleService;
|
|
103465
103496
|
}
|
|
103466
103497
|
async ngOnInit() {
|
|
@@ -103470,6 +103501,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103470
103501
|
if (this.transactionLine) {
|
|
103471
103502
|
this.transactionLineService.transactionLine = this.transactionLine;
|
|
103472
103503
|
this.transactionLineService.transactionLine.visible = true;
|
|
103504
|
+
await this.setArticleName();
|
|
103473
103505
|
}
|
|
103474
103506
|
if (this.transactionInfo && this.transactionLine) {
|
|
103475
103507
|
this.articleService.getConversionUnitsForDefaultArticleUnitByGoodIdAndTransactionKind(this.transactionLine.goodId, this.transactionInfo.transactionKind).then((units) => {
|
|
@@ -103601,8 +103633,16 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103601
103633
|
_scrollIntoView(element) {
|
|
103602
103634
|
element.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
103603
103635
|
}
|
|
103636
|
+
async setArticleName() {
|
|
103637
|
+
if (this.transactionKind === 'I') {
|
|
103638
|
+
this.articleName = this.transactionLine.defaultPurchaseDescription;
|
|
103639
|
+
return;
|
|
103640
|
+
}
|
|
103641
|
+
const article = await this.transactionService.getArticleExtended(this.transactionLine.articleNumber);
|
|
103642
|
+
this.articleName = article?.salesDescription || this.transactionLine.defaultPurchaseDescription;
|
|
103643
|
+
}
|
|
103604
103644
|
model = model;
|
|
103605
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionLineWarehouseCcComponent, deps: [{ token: IconCacheService }, { token: TransactionHeaderService }, { token: TransactionLineService }, { token: ArticleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
103645
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionLineWarehouseCcComponent, deps: [{ token: IconCacheService }, { token: TransactionHeaderService }, { token: TransactionLineService }, { token: TransactionService }, { token: ArticleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
103606
103646
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DialogTransactionLineWarehouseCcComponent, isStandalone: false, selector: "co-dialog-transaction-line-warehouse-cc", inputs: { transactionKind: "transactionKind" }, outputs: { close: "close" }, host: { properties: { "class.co-dialog-transaction-line-warehouse-cc": "this.showClass" } }, providers: [
|
|
103607
103647
|
TransactionHeaderService,
|
|
103608
103648
|
TransactionLineService
|
|
@@ -103694,8 +103734,7 @@ class DialogTransactionLineWarehouseCcComponent extends DialogBaseComponent {
|
|
|
103694
103734
|
@if (transactionLine) {
|
|
103695
103735
|
<div class="article-name">
|
|
103696
103736
|
<span [textContent]="'FOR' | localize"></span>
|
|
103697
|
-
 
|
|
103698
|
-
<span [textContent]=" transactionLine.defaultPurchaseDescription"></span>
|
|
103737
|
+
<span [textContent]="articleName"></span>
|
|
103699
103738
|
</div>
|
|
103700
103739
|
}
|
|
103701
103740
|
@if (reason) {
|
|
@@ -103807,8 +103846,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
103807
103846
|
@if (transactionLine) {
|
|
103808
103847
|
<div class="article-name">
|
|
103809
103848
|
<span [textContent]="'FOR' | localize"></span>
|
|
103810
|
-
 
|
|
103811
|
-
<span [textContent]=" transactionLine.defaultPurchaseDescription"></span>
|
|
103849
|
+
<span [textContent]="articleName"></span>
|
|
103812
103850
|
</div>
|
|
103813
103851
|
}
|
|
103814
103852
|
@if (reason) {
|
|
@@ -103834,7 +103872,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
103834
103872
|
encapsulation: ViewEncapsulation.None,
|
|
103835
103873
|
standalone: false
|
|
103836
103874
|
}]
|
|
103837
|
-
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionHeaderService }, { type: TransactionLineService }, { type: ArticleService }], propDecorators: { general: [{
|
|
103875
|
+
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionHeaderService }, { type: TransactionLineService }, { type: TransactionService }, { type: ArticleService }], propDecorators: { general: [{
|
|
103838
103876
|
type: ViewChild,
|
|
103839
103877
|
args: ['general']
|
|
103840
103878
|
}], directSell: [{
|