@colijnit/transaction 300.1.35 → 300.1.36
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.
|
@@ -364,8 +364,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
364
364
|
class Version {
|
|
365
365
|
name = "@colijnit/transaction";
|
|
366
366
|
description = "Colijn IT transaction package";
|
|
367
|
-
symVer = "300.1.
|
|
368
|
-
publishDate = "
|
|
367
|
+
symVer = "300.1.36";
|
|
368
|
+
publishDate = "7-10-2026, 17:11:48";
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -471,6 +471,7 @@ var TransactionTypeCategory;
|
|
|
471
471
|
TransactionTypeCategory["SalesOrderReserve"] = "salesOrderQuotation";
|
|
472
472
|
TransactionTypeCategory["SalesOrderActivities"] = "salesOrderActivities";
|
|
473
473
|
TransactionTypeCategory["SalesOrderQuotation"] = "salesOrderQuotation";
|
|
474
|
+
TransactionTypeCategory["SalesOrderQuotationPurchase"] = "salesOrderQuotationPurchase";
|
|
474
475
|
TransactionTypeCategory["SalesOrderQuotationActivities"] = "salesOrderQuotationActivities";
|
|
475
476
|
TransactionTypeCategory["ServiceOrderService"] = "serviceOrderService";
|
|
476
477
|
TransactionTypeCategory["ServiceOrderOverview"] = "serviceOrderOverview";
|
|
@@ -10245,6 +10246,7 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10245
10246
|
internalParameterSellDirectlyFromSupp = false;
|
|
10246
10247
|
internalParameterStockMutBeforeDelivery = false;
|
|
10247
10248
|
printColliStickerDefault = false;
|
|
10249
|
+
canGenerateMultipleOrdersFromSingleQuotation = false;
|
|
10248
10250
|
internalPlanDaysParam = 0;
|
|
10249
10251
|
coolingOffPeriodInDaysParam = 0;
|
|
10250
10252
|
contactPersonId = 0;
|
|
@@ -10382,6 +10384,9 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
10382
10384
|
this.printColliStickerDefault = (value === "J");
|
|
10383
10385
|
});
|
|
10384
10386
|
}
|
|
10387
|
+
async prepareCanGenerateMultipleOrdersFromSingleQuotationParam() {
|
|
10388
|
+
this.canGenerateMultipleOrdersFromSingleQuotation = await this.getInternalParameter(InternalParam.QuotationToOrderMulti);
|
|
10389
|
+
}
|
|
10385
10390
|
async getInternalParameter(param) {
|
|
10386
10391
|
const response = await this.connector.getInternalParameterValue(param);
|
|
10387
10392
|
return response && response === 'J';
|
|
@@ -13727,6 +13732,7 @@ class TransactionService extends PendingReasonService {
|
|
|
13727
13732
|
this.prepareCanChangeRelationParam();
|
|
13728
13733
|
this.prepareInternalPlanDaysParam();
|
|
13729
13734
|
this.prepareCoolingOffPeriodInDaysParam();
|
|
13735
|
+
this.prepareCanGenerateMultipleOrdersFromSingleQuotationParam();
|
|
13730
13736
|
if (!fromHeader) {
|
|
13731
13737
|
this.suggestedReceiptLocations.length = 0;
|
|
13732
13738
|
if (transactionInfoResponse && transactionInfoResponse.transactionInfo && transactionInfoResponse.transactionInfo.id) {
|
|
@@ -32306,11 +32312,19 @@ class RelationGeneralComponent extends RelationBaseComponent {
|
|
|
32306
32312
|
@if (relationType === relType.Private) {
|
|
32307
32313
|
<div class="collapseable" @showHidePrivateRelationFields>
|
|
32308
32314
|
<div class="default-data-row">
|
|
32309
|
-
|
|
32310
|
-
|
|
32311
|
-
|
|
32312
|
-
|
|
32313
|
-
|
|
32315
|
+
<relation-customer-titles
|
|
32316
|
+
class="search"
|
|
32317
|
+
[screenConfigurationObject]="cfgNames.RelationTitle"
|
|
32318
|
+
[model]="relation.titleId"
|
|
32319
|
+
(modelChange)="handleCustomerTitleChange($event)">
|
|
32320
|
+
</relation-customer-titles>
|
|
32321
|
+
<co-input-text
|
|
32322
|
+
class="checkout-prefix-name default-width search"
|
|
32323
|
+
[screenConfigurationObject]="configNames?.relationInitials"
|
|
32324
|
+
[readonly]="readonly"
|
|
32325
|
+
[(model)]="relation.initials"
|
|
32326
|
+
[placeholder]="'INITIALS' | localize"
|
|
32327
|
+
></co-input-text>
|
|
32314
32328
|
<co-input-text
|
|
32315
32329
|
class="checkout-first-name"
|
|
32316
32330
|
[screenConfigurationObject]="configNames?.relationFirstName"
|
|
@@ -32319,22 +32333,18 @@ class RelationGeneralComponent extends RelationBaseComponent {
|
|
|
32319
32333
|
[placeholder]="'FIRST_NAME' | localize"
|
|
32320
32334
|
(modelChange)="firstNameChange($event)"
|
|
32321
32335
|
></co-input-text>
|
|
32336
|
+
</div>
|
|
32337
|
+
<div class="default-data-row">
|
|
32338
|
+
|
|
32339
|
+
|
|
32340
|
+
|
|
32322
32341
|
<co-input-text
|
|
32323
|
-
class="checkout-prefix-name default-width"
|
|
32324
|
-
[screenConfigurationObject]="configNames?.relationInitials"
|
|
32325
|
-
[readonly]="readonly"
|
|
32326
|
-
[(model)]="relation.initials"
|
|
32327
|
-
[placeholder]="'INITIALS' | localize"
|
|
32328
|
-
></co-input-text>
|
|
32329
|
-
<co-input-text
|
|
32330
|
-
class="checkout-prefix-name default-width"
|
|
32342
|
+
class="checkout-prefix-name default-width search"
|
|
32331
32343
|
[screenConfigurationObject]="configNames?.relationPrefix"
|
|
32332
32344
|
[readonly]="readonly"
|
|
32333
32345
|
[(model)]="relation.prefix"
|
|
32334
32346
|
[placeholder]="'PREFIX' | localize"
|
|
32335
32347
|
></co-input-text>
|
|
32336
|
-
</div>
|
|
32337
|
-
<div class="default-data-row">
|
|
32338
32348
|
<co-input-text
|
|
32339
32349
|
class="checkout-last-name"
|
|
32340
32350
|
[screenConfigurationObject]="configNames?.relationLastName"
|
|
@@ -32344,38 +32354,6 @@ class RelationGeneralComponent extends RelationBaseComponent {
|
|
|
32344
32354
|
(modelChange)="familyNameChange($event)"
|
|
32345
32355
|
></co-input-text>
|
|
32346
32356
|
</div>
|
|
32347
|
-
<!-- <div class="default-data-row" [screenConfigurationObject]="configNames?.relationGender" [screenConfigNativeElement]="true">-->
|
|
32348
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32349
|
-
<!-- [readonly]="readonly"-->
|
|
32350
|
-
<!-- [label]="'MALE' | localize"-->
|
|
32351
|
-
<!-- [model]="relation.gender === genderType.Male"-->
|
|
32352
|
-
<!-- (modelChange)="changeGenderType(genderType.Male)"-->
|
|
32353
|
-
<!-- ></co-input-radio-button>-->
|
|
32354
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32355
|
-
<!-- [readonly]="readonly"-->
|
|
32356
|
-
<!-- [label]="'FEMALE' | localize"-->
|
|
32357
|
-
<!-- [model]="relation.gender === genderType.Female"-->
|
|
32358
|
-
<!-- (modelChange)="changeGenderType(genderType.Female)"-->
|
|
32359
|
-
<!-- ></co-input-radio-button>-->
|
|
32360
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32361
|
-
<!-- [readonly]="readonly"-->
|
|
32362
|
-
<!-- [label]="'UNKNOWN' | localize"-->
|
|
32363
|
-
<!-- [model]="relation.gender === genderType.Unspecified"-->
|
|
32364
|
-
<!-- (modelChange)="changeGenderType(genderType.Unspecified)"-->
|
|
32365
|
-
<!-- ></co-input-radio-button>-->
|
|
32366
|
-
<!-- </div>-->
|
|
32367
|
-
<!--co-relation-contact-details
|
|
32368
|
-
[configNames]="configNames?.contactDetails"
|
|
32369
|
-
[readonly]="readonly"
|
|
32370
|
-
[(relation)]="relation"
|
|
32371
|
-
[relationKind]="relationKind"
|
|
32372
|
-
(inputChangeForSuggestions)="inputChangeForSuggestions.emit($event)"
|
|
32373
|
-
></co-relation-contact-details-->
|
|
32374
|
-
<!--
|
|
32375
|
-
<div class="default-data-row">
|
|
32376
|
-
<co-input-date [readonly]="readonly" [placeholder]="'DATE_OF_BIRTH' | localize " [(model)]="dateOfBirth"></co-input-date>
|
|
32377
|
-
</div>
|
|
32378
|
-
-->
|
|
32379
32357
|
</div>
|
|
32380
32358
|
}
|
|
32381
32359
|
@if (relationType === relType.Company) {
|
|
@@ -32432,11 +32410,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
32432
32410
|
@if (relationType === relType.Private) {
|
|
32433
32411
|
<div class="collapseable" @showHidePrivateRelationFields>
|
|
32434
32412
|
<div class="default-data-row">
|
|
32435
|
-
|
|
32436
|
-
|
|
32437
|
-
|
|
32438
|
-
|
|
32439
|
-
|
|
32413
|
+
<relation-customer-titles
|
|
32414
|
+
class="search"
|
|
32415
|
+
[screenConfigurationObject]="cfgNames.RelationTitle"
|
|
32416
|
+
[model]="relation.titleId"
|
|
32417
|
+
(modelChange)="handleCustomerTitleChange($event)">
|
|
32418
|
+
</relation-customer-titles>
|
|
32419
|
+
<co-input-text
|
|
32420
|
+
class="checkout-prefix-name default-width search"
|
|
32421
|
+
[screenConfigurationObject]="configNames?.relationInitials"
|
|
32422
|
+
[readonly]="readonly"
|
|
32423
|
+
[(model)]="relation.initials"
|
|
32424
|
+
[placeholder]="'INITIALS' | localize"
|
|
32425
|
+
></co-input-text>
|
|
32440
32426
|
<co-input-text
|
|
32441
32427
|
class="checkout-first-name"
|
|
32442
32428
|
[screenConfigurationObject]="configNames?.relationFirstName"
|
|
@@ -32445,22 +32431,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
32445
32431
|
[placeholder]="'FIRST_NAME' | localize"
|
|
32446
32432
|
(modelChange)="firstNameChange($event)"
|
|
32447
32433
|
></co-input-text>
|
|
32434
|
+
</div>
|
|
32435
|
+
<div class="default-data-row">
|
|
32436
|
+
|
|
32437
|
+
|
|
32438
|
+
|
|
32448
32439
|
<co-input-text
|
|
32449
|
-
class="checkout-prefix-name default-width"
|
|
32450
|
-
[screenConfigurationObject]="configNames?.relationInitials"
|
|
32451
|
-
[readonly]="readonly"
|
|
32452
|
-
[(model)]="relation.initials"
|
|
32453
|
-
[placeholder]="'INITIALS' | localize"
|
|
32454
|
-
></co-input-text>
|
|
32455
|
-
<co-input-text
|
|
32456
|
-
class="checkout-prefix-name default-width"
|
|
32440
|
+
class="checkout-prefix-name default-width search"
|
|
32457
32441
|
[screenConfigurationObject]="configNames?.relationPrefix"
|
|
32458
32442
|
[readonly]="readonly"
|
|
32459
32443
|
[(model)]="relation.prefix"
|
|
32460
32444
|
[placeholder]="'PREFIX' | localize"
|
|
32461
32445
|
></co-input-text>
|
|
32462
|
-
</div>
|
|
32463
|
-
<div class="default-data-row">
|
|
32464
32446
|
<co-input-text
|
|
32465
32447
|
class="checkout-last-name"
|
|
32466
32448
|
[screenConfigurationObject]="configNames?.relationLastName"
|
|
@@ -32470,38 +32452,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
32470
32452
|
(modelChange)="familyNameChange($event)"
|
|
32471
32453
|
></co-input-text>
|
|
32472
32454
|
</div>
|
|
32473
|
-
<!-- <div class="default-data-row" [screenConfigurationObject]="configNames?.relationGender" [screenConfigNativeElement]="true">-->
|
|
32474
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32475
|
-
<!-- [readonly]="readonly"-->
|
|
32476
|
-
<!-- [label]="'MALE' | localize"-->
|
|
32477
|
-
<!-- [model]="relation.gender === genderType.Male"-->
|
|
32478
|
-
<!-- (modelChange)="changeGenderType(genderType.Male)"-->
|
|
32479
|
-
<!-- ></co-input-radio-button>-->
|
|
32480
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32481
|
-
<!-- [readonly]="readonly"-->
|
|
32482
|
-
<!-- [label]="'FEMALE' | localize"-->
|
|
32483
|
-
<!-- [model]="relation.gender === genderType.Female"-->
|
|
32484
|
-
<!-- (modelChange)="changeGenderType(genderType.Female)"-->
|
|
32485
|
-
<!-- ></co-input-radio-button>-->
|
|
32486
|
-
<!-- <co-input-radio-button class="default-width"-->
|
|
32487
|
-
<!-- [readonly]="readonly"-->
|
|
32488
|
-
<!-- [label]="'UNKNOWN' | localize"-->
|
|
32489
|
-
<!-- [model]="relation.gender === genderType.Unspecified"-->
|
|
32490
|
-
<!-- (modelChange)="changeGenderType(genderType.Unspecified)"-->
|
|
32491
|
-
<!-- ></co-input-radio-button>-->
|
|
32492
|
-
<!-- </div>-->
|
|
32493
|
-
<!--co-relation-contact-details
|
|
32494
|
-
[configNames]="configNames?.contactDetails"
|
|
32495
|
-
[readonly]="readonly"
|
|
32496
|
-
[(relation)]="relation"
|
|
32497
|
-
[relationKind]="relationKind"
|
|
32498
|
-
(inputChangeForSuggestions)="inputChangeForSuggestions.emit($event)"
|
|
32499
|
-
></co-relation-contact-details-->
|
|
32500
|
-
<!--
|
|
32501
|
-
<div class="default-data-row">
|
|
32502
|
-
<co-input-date [readonly]="readonly" [placeholder]="'DATE_OF_BIRTH' | localize " [(model)]="dateOfBirth"></co-input-date>
|
|
32503
|
-
</div>
|
|
32504
|
-
-->
|
|
32505
32455
|
</div>
|
|
32506
32456
|
}
|
|
32507
32457
|
@if (relationType === relType.Company) {
|
|
@@ -33574,38 +33524,29 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
33574
33524
|
></co-relation-type>
|
|
33575
33525
|
}
|
|
33576
33526
|
|
|
33577
|
-
@if (relationKind === relKind.Customer || relationKind === relKind.Supplier) {
|
|
33578
|
-
<co-input-text
|
|
33579
|
-
class="search"
|
|
33580
|
-
[placeholder]="
|
|
33581
|
-
(relationKind === relKind.Customer
|
|
33582
|
-
? 'CUSTOMER_NR'
|
|
33583
|
-
: relationKind === relKind.Supplier
|
|
33584
|
-
? 'SUPPLIERNO'
|
|
33585
|
-
: '')
|
|
33586
|
-
| localize
|
|
33587
|
-
"
|
|
33588
|
-
[screenConfigurationObject]="cfgNames.SearchByRelationNr"
|
|
33589
|
-
[model]="relation.relationNumber"
|
|
33590
|
-
(modelChange)="handleRelationNumberChange($event)"
|
|
33591
|
-
></co-input-text>
|
|
33592
|
-
}
|
|
33593
|
-
|
|
33594
33527
|
<co-button class="empty-relation-button default-width" [label]="'EMPTY' | localize"
|
|
33595
33528
|
(click)="emptyRelation($event)"></co-button>
|
|
33596
33529
|
</div>
|
|
33597
|
-
@if (relationKind === relKind.Customer) {
|
|
33530
|
+
@if (relationKind === relKind.Customer || relationKind === relKind.Supplier) {
|
|
33598
33531
|
<div class="checkout-data-row">
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
|
|
33604
|
-
|
|
33605
|
-
|
|
33606
|
-
|
|
33607
|
-
|
|
33608
|
-
|
|
33532
|
+
<co-input-text
|
|
33533
|
+
[placeholder]="(relationKind === relKind.Customer ? 'CUSTOMER_NR' : relationKind === relKind.Supplier ? 'SUPPLIERNO' : '') | localize"
|
|
33534
|
+
[screenConfigurationObject]="cfgNames.SearchByRelationNr"
|
|
33535
|
+
[model]="relation.relationNumber"
|
|
33536
|
+
(modelChange)="handleRelationNumberChange($event)"
|
|
33537
|
+
></co-input-text>
|
|
33538
|
+
@if (relationKind === relKind.Customer) {
|
|
33539
|
+
<relation-customer-groups
|
|
33540
|
+
[screenConfigurationObject]="cfgNames.RelationCustomerGroup"
|
|
33541
|
+
[model]="customerGroup"
|
|
33542
|
+
(modelChange)="handleCustomerGroupChange($event)">
|
|
33543
|
+
</relation-customer-groups>
|
|
33544
|
+
<relation-customer-languages
|
|
33545
|
+
[screenConfigurationObject]="cfgNames.RelationLanguage"
|
|
33546
|
+
[model]="customerLanguage"
|
|
33547
|
+
(modelChange)="handleCustomerLanguageChange($event)">
|
|
33548
|
+
</relation-customer-languages>
|
|
33549
|
+
}
|
|
33609
33550
|
</div>
|
|
33610
33551
|
}
|
|
33611
33552
|
<div class="checkout-data-row">
|
|
@@ -33617,6 +33558,10 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
33617
33558
|
(inputChangeForSuggestions)="handleInputChange($event)"
|
|
33618
33559
|
></co-relation-general>
|
|
33619
33560
|
</div>
|
|
33561
|
+
<div class="checkout-label-column">
|
|
33562
|
+
<!--span #indexLabel></span-->
|
|
33563
|
+
<span class="label-description" [textContent]="'ADDRESS_DATA' | localize"></span>
|
|
33564
|
+
</div>
|
|
33620
33565
|
<div class="checkout-data-row">
|
|
33621
33566
|
<co-relation-address
|
|
33622
33567
|
[configNames]="relationAddressConfigNames"
|
|
@@ -33748,38 +33693,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
33748
33693
|
></co-relation-type>
|
|
33749
33694
|
}
|
|
33750
33695
|
|
|
33751
|
-
@if (relationKind === relKind.Customer || relationKind === relKind.Supplier) {
|
|
33752
|
-
<co-input-text
|
|
33753
|
-
class="search"
|
|
33754
|
-
[placeholder]="
|
|
33755
|
-
(relationKind === relKind.Customer
|
|
33756
|
-
? 'CUSTOMER_NR'
|
|
33757
|
-
: relationKind === relKind.Supplier
|
|
33758
|
-
? 'SUPPLIERNO'
|
|
33759
|
-
: '')
|
|
33760
|
-
| localize
|
|
33761
|
-
"
|
|
33762
|
-
[screenConfigurationObject]="cfgNames.SearchByRelationNr"
|
|
33763
|
-
[model]="relation.relationNumber"
|
|
33764
|
-
(modelChange)="handleRelationNumberChange($event)"
|
|
33765
|
-
></co-input-text>
|
|
33766
|
-
}
|
|
33767
|
-
|
|
33768
33696
|
<co-button class="empty-relation-button default-width" [label]="'EMPTY' | localize"
|
|
33769
33697
|
(click)="emptyRelation($event)"></co-button>
|
|
33770
33698
|
</div>
|
|
33771
|
-
@if (relationKind === relKind.Customer) {
|
|
33699
|
+
@if (relationKind === relKind.Customer || relationKind === relKind.Supplier) {
|
|
33772
33700
|
<div class="checkout-data-row">
|
|
33773
|
-
|
|
33774
|
-
|
|
33775
|
-
|
|
33776
|
-
|
|
33777
|
-
|
|
33778
|
-
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
|
|
33782
|
-
|
|
33701
|
+
<co-input-text
|
|
33702
|
+
[placeholder]="(relationKind === relKind.Customer ? 'CUSTOMER_NR' : relationKind === relKind.Supplier ? 'SUPPLIERNO' : '') | localize"
|
|
33703
|
+
[screenConfigurationObject]="cfgNames.SearchByRelationNr"
|
|
33704
|
+
[model]="relation.relationNumber"
|
|
33705
|
+
(modelChange)="handleRelationNumberChange($event)"
|
|
33706
|
+
></co-input-text>
|
|
33707
|
+
@if (relationKind === relKind.Customer) {
|
|
33708
|
+
<relation-customer-groups
|
|
33709
|
+
[screenConfigurationObject]="cfgNames.RelationCustomerGroup"
|
|
33710
|
+
[model]="customerGroup"
|
|
33711
|
+
(modelChange)="handleCustomerGroupChange($event)">
|
|
33712
|
+
</relation-customer-groups>
|
|
33713
|
+
<relation-customer-languages
|
|
33714
|
+
[screenConfigurationObject]="cfgNames.RelationLanguage"
|
|
33715
|
+
[model]="customerLanguage"
|
|
33716
|
+
(modelChange)="handleCustomerLanguageChange($event)">
|
|
33717
|
+
</relation-customer-languages>
|
|
33718
|
+
}
|
|
33783
33719
|
</div>
|
|
33784
33720
|
}
|
|
33785
33721
|
<div class="checkout-data-row">
|
|
@@ -33791,6 +33727,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
33791
33727
|
(inputChangeForSuggestions)="handleInputChange($event)"
|
|
33792
33728
|
></co-relation-general>
|
|
33793
33729
|
</div>
|
|
33730
|
+
<div class="checkout-label-column">
|
|
33731
|
+
<!--span #indexLabel></span-->
|
|
33732
|
+
<span class="label-description" [textContent]="'ADDRESS_DATA' | localize"></span>
|
|
33733
|
+
</div>
|
|
33794
33734
|
<div class="checkout-data-row">
|
|
33795
33735
|
<co-relation-address
|
|
33796
33736
|
[configNames]="relationAddressConfigNames"
|
|
@@ -57715,7 +57655,7 @@ class TransactionLineSupplierComponent extends TransactionFilterPopupLineBaseCom
|
|
|
57715
57655
|
this._getCollection();
|
|
57716
57656
|
}
|
|
57717
57657
|
async commit(id) {
|
|
57718
|
-
if (this.transactionLine.supplierId !== id) {
|
|
57658
|
+
if (this.transactionLine.supplierId !== id && (await this.lockTransaction())) {
|
|
57719
57659
|
const oldId = this.transactionLine.supplierId;
|
|
57720
57660
|
const success = await this.transactionService.updateSupplierTransactionLine(this.transactionService.currentTransaction.transactionInfo.uuid, this.transactionLine.uuid, id);
|
|
57721
57661
|
if (!success) {
|
|
@@ -59036,6 +58976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59036
58976
|
}] } });
|
|
59037
58977
|
|
|
59038
58978
|
class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseComponent {
|
|
58979
|
+
TransactionKind = TransactionKind;
|
|
59039
58980
|
showConfirmedDeliveryDate = true;
|
|
59040
58981
|
lineIndex;
|
|
59041
58982
|
showClass() {
|
|
@@ -59098,12 +59039,20 @@ class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseCompon
|
|
|
59098
59039
|
this.salesReservationService.salesReservationLines = reservation.salesOrderLines.filter((line) => line.lineNr === lineNr);
|
|
59099
59040
|
this.transactionHeaderService.reservationPopupToggle.next(true);
|
|
59100
59041
|
}
|
|
59042
|
+
readOnlyClassNeeded() {
|
|
59043
|
+
if (this.transactionKind !== TransactionKind.SalesQuotation) {
|
|
59044
|
+
return !this.transactionInfo.transactionDefinitive;
|
|
59045
|
+
}
|
|
59046
|
+
else {
|
|
59047
|
+
return ((!this.transactionService.canGenerateMultipleOrdersFromSingleQuotation) && (this.transactionLine.refTransactions.length > 0));
|
|
59048
|
+
}
|
|
59049
|
+
}
|
|
59101
59050
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionPurchaseLineComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
59102
59051
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TransactionPurchaseLineComponent, isStandalone: false, selector: "co-transaction-purchase-line", inputs: { lineIndex: "lineIndex" }, host: { properties: { "class.co-transaction-purchase-line": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
59103
59052
|
<co-transaction-base-line
|
|
59104
59053
|
[lineIndex]="lineIndex"
|
|
59105
59054
|
[preview]="preview"
|
|
59106
|
-
[checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive"
|
|
59055
|
+
[checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive && transactionKind !== TransactionKind.SalesQuotation"
|
|
59107
59056
|
[checkboxValue]="transactionLine.selected"
|
|
59108
59057
|
(checkboxValueChanged)="transactionLineSelectedChanged($event)"
|
|
59109
59058
|
[isFirst]="isFirst"
|
|
@@ -59114,7 +59063,7 @@ class TransactionPurchaseLineComponent extends TransactionPurchaseLineBaseCompon
|
|
|
59114
59063
|
[iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)">
|
|
59115
59064
|
</co-icon>
|
|
59116
59065
|
</span>
|
|
59117
|
-
<div class="transaction-line-wrapper" [class.transaction-not-definitive]="
|
|
59066
|
+
<div class="transaction-line-wrapper" [class.transaction-not-definitive]="readOnlyClassNeeded()">
|
|
59118
59067
|
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
59119
59068
|
<div class="column-full align-right">
|
|
59120
59069
|
<co-transaction-line-statusbar
|
|
@@ -59192,7 +59141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59192
59141
|
<co-transaction-base-line
|
|
59193
59142
|
[lineIndex]="lineIndex"
|
|
59194
59143
|
[preview]="preview"
|
|
59195
|
-
[checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive"
|
|
59144
|
+
[checkbox]="showCheckboxForLine && transactionInfo.transactionDefinitive && transactionKind !== TransactionKind.SalesQuotation"
|
|
59196
59145
|
[checkboxValue]="transactionLine.selected"
|
|
59197
59146
|
(checkboxValueChanged)="transactionLineSelectedChanged($event)"
|
|
59198
59147
|
[isFirst]="isFirst"
|
|
@@ -59203,7 +59152,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
59203
59152
|
[iconData]="iconCacheService.getIcon(icons.PalletBoxesRotate)">
|
|
59204
59153
|
</co-icon>
|
|
59205
59154
|
</span>
|
|
59206
|
-
<div class="transaction-line-wrapper" [class.transaction-not-definitive]="
|
|
59155
|
+
<div class="transaction-line-wrapper" [class.transaction-not-definitive]="readOnlyClassNeeded()">
|
|
59207
59156
|
<div *ngIf=!preview class="transaction-line-extended-wrapper">
|
|
59208
59157
|
<div class="column-full align-right">
|
|
59209
59158
|
<co-transaction-line-statusbar
|
|
@@ -66287,6 +66236,7 @@ class TransactionButtonBarModule {
|
|
|
66287
66236
|
]],
|
|
66288
66237
|
[TransactionKind.SalesQuotation, [
|
|
66289
66238
|
{ title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderQuotation, component: TransactionSalesQuotationButtonBarButtonComponent, cfgName: TransactionCfgName.RubricOverview },
|
|
66239
|
+
{ title: 'PURCHASE', icon: Icon.PalletBoxesSharpRegular, category: TransactionTypeCategory.SalesOrderQuotationPurchase, component: TransactionSalesPurchaseButtonBarButtonComponent, cfgName: TransactionCfgName.RubricPurchase },
|
|
66290
66240
|
{ title: 'ACTIVITIES', icon: Icon.RegularGearCircleUser, category: TransactionTypeCategory.SalesOrderQuotationActivities, component: TransactionActivitiesButtonBarButtonComponent, cfgName: TransactionCfgName.RubricActivities },
|
|
66291
66241
|
//{title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: TransactionCfgName.RubricDelivery},
|
|
66292
66242
|
]],
|
|
@@ -66384,6 +66334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
66384
66334
|
]],
|
|
66385
66335
|
[TransactionKind.SalesQuotation, [
|
|
66386
66336
|
{ title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderQuotation, component: TransactionSalesQuotationButtonBarButtonComponent, cfgName: TransactionCfgName.RubricOverview },
|
|
66337
|
+
{ title: 'PURCHASE', icon: Icon.PalletBoxesSharpRegular, category: TransactionTypeCategory.SalesOrderQuotationPurchase, component: TransactionSalesPurchaseButtonBarButtonComponent, cfgName: TransactionCfgName.RubricPurchase },
|
|
66387
66338
|
{ title: 'ACTIVITIES', icon: Icon.RegularGearCircleUser, category: TransactionTypeCategory.SalesOrderQuotationActivities, component: TransactionActivitiesButtonBarButtonComponent, cfgName: TransactionCfgName.RubricActivities },
|
|
66388
66339
|
//{title: 'DELIVERY_NOTE', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.SalesOrderDeliveryNote, component: TransactionSalesDeliveryButtonBarButtonComponent, cfgName: TransactionCfgName.RubricDelivery},
|
|
66389
66340
|
]],
|
|
@@ -71250,7 +71201,7 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
|
|
|
71250
71201
|
</div>
|
|
71251
71202
|
|
|
71252
71203
|
}
|
|
71253
|
-
|
|
71204
|
+
|
|
71254
71205
|
<div class="filter-item-wrapper">
|
|
71255
71206
|
<co-transaction-filter-item [placeholder]="'HAS_LINES'"
|
|
71256
71207
|
[(model)]="searchService.searchRequest.ordersWithOrWithoutLines"
|
|
@@ -71259,7 +71210,7 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
|
|
|
71259
71210
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
71260
71211
|
</co-transaction-filter-item>
|
|
71261
71212
|
</div>
|
|
71262
|
-
|
|
71213
|
+
|
|
71263
71214
|
<!--Orderdatum-->
|
|
71264
71215
|
<div class="filter-item-wrapper">
|
|
71265
71216
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -71437,7 +71388,7 @@ class TransactionSalesOrderFilterContentOrderComponent extends TransactionFilter
|
|
|
71437
71388
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
71438
71389
|
</co-transaction-filter-item>
|
|
71439
71390
|
</div>
|
|
71440
|
-
|
|
71391
|
+
|
|
71441
71392
|
</div>
|
|
71442
71393
|
`, isInline: true, dependencies: [{ kind: "component", type: TransactionFilterItemComponent, selector: "co-transaction-filter-item", inputs: ["model", "mode", "collection", "placeholder", "customContent", "singleSelect", "sliderDefaultMin", "sliderDefaultMax", "minSearchCharsToLoadCollection", "searchCollectionPlaceholder", "collectionLoadFn", "canFilterByCode"], outputs: ["modelChange", "collectionChange", "activeFilterCountChange"] }] });
|
|
71443
71394
|
}
|
|
@@ -71461,7 +71412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
71461
71412
|
</div>
|
|
71462
71413
|
|
|
71463
71414
|
}
|
|
71464
|
-
|
|
71415
|
+
|
|
71465
71416
|
<div class="filter-item-wrapper">
|
|
71466
71417
|
<co-transaction-filter-item [placeholder]="'HAS_LINES'"
|
|
71467
71418
|
[(model)]="searchService.searchRequest.ordersWithOrWithoutLines"
|
|
@@ -71470,7 +71421,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
71470
71421
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
71471
71422
|
</co-transaction-filter-item>
|
|
71472
71423
|
</div>
|
|
71473
|
-
|
|
71424
|
+
|
|
71474
71425
|
<!--Orderdatum-->
|
|
71475
71426
|
<div class="filter-item-wrapper">
|
|
71476
71427
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -71648,7 +71599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
71648
71599
|
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
71649
71600
|
</co-transaction-filter-item>
|
|
71650
71601
|
</div>
|
|
71651
|
-
|
|
71602
|
+
|
|
71652
71603
|
</div>
|
|
71653
71604
|
`,
|
|
71654
71605
|
standalone: false
|
|
@@ -78948,6 +78899,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
78948
78899
|
}] });
|
|
78949
78900
|
|
|
78950
78901
|
class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilterContentBaseComponent {
|
|
78902
|
+
transactionFilterContentService;
|
|
78903
|
+
_dictionaryService;
|
|
78951
78904
|
modes = FilterItemMode;
|
|
78952
78905
|
showClass() {
|
|
78953
78906
|
return true;
|
|
@@ -78970,6 +78923,8 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
|
|
|
78970
78923
|
orderFullyPaidFields = { text: "description", value: "code" };
|
|
78971
78924
|
orderDepositFullyPaid;
|
|
78972
78925
|
orderDepositFullyPaidFields = { text: "description", value: "code" };
|
|
78926
|
+
transactionKinds;
|
|
78927
|
+
transactionKindsFields = { text: 'description', value: 'code' };
|
|
78973
78928
|
orderActive;
|
|
78974
78929
|
orderActiveFields = { text: "description", value: "code" };
|
|
78975
78930
|
customerGroups;
|
|
@@ -78982,6 +78937,11 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
|
|
|
78982
78937
|
slaProductsFields = { text: "description", value: "description" };
|
|
78983
78938
|
searchTypes;
|
|
78984
78939
|
searchTypeFields = { text: 'name', value: 'value' };
|
|
78940
|
+
constructor(searchService, filterRequestService, transactionService, changeDetector, relationService, transationConnectorService, transactionFilterContentService, _dictionaryService) {
|
|
78941
|
+
super(searchService, filterRequestService, transactionService, changeDetector, relationService, transationConnectorService, _dictionaryService);
|
|
78942
|
+
this.transactionFilterContentService = transactionFilterContentService;
|
|
78943
|
+
this._dictionaryService = _dictionaryService;
|
|
78944
|
+
}
|
|
78985
78945
|
handleCollectionChange() {
|
|
78986
78946
|
this.changeDetector.detectChanges();
|
|
78987
78947
|
}
|
|
@@ -79004,11 +78964,30 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
|
|
|
79004
78964
|
this._setOrderDepositFullyPaid();
|
|
79005
78965
|
this._setOrderActive();
|
|
79006
78966
|
this._setCustomerGroups();
|
|
78967
|
+
this._setTransactionKinds();
|
|
79007
78968
|
this._setWorkFlowStatusNames();
|
|
79008
78969
|
this._setSLAProducts();
|
|
79009
78970
|
this._setAllProjectCodes();
|
|
79010
78971
|
this._setSearchTypes();
|
|
79011
78972
|
}
|
|
78973
|
+
handleTransactionKindChange(codeList) {
|
|
78974
|
+
if (!this.searchRequest.transKindList) {
|
|
78975
|
+
this.searchRequest.transKindList = [];
|
|
78976
|
+
}
|
|
78977
|
+
codeList.forEach(code => {
|
|
78978
|
+
switch (code) {
|
|
78979
|
+
case '1':
|
|
78980
|
+
this.searchService.searchRequest.transKindList.push(TransactionKind.SalesOrder);
|
|
78981
|
+
break;
|
|
78982
|
+
case '2':
|
|
78983
|
+
this.searchService.searchRequest.transKindList.push(TransactionKind.ServiceOrder);
|
|
78984
|
+
break;
|
|
78985
|
+
case '3':
|
|
78986
|
+
this.searchService.searchRequest.transKindList.push(TransactionKind.InternalDelivery);
|
|
78987
|
+
break;
|
|
78988
|
+
}
|
|
78989
|
+
});
|
|
78990
|
+
}
|
|
79012
78991
|
//Verkoper
|
|
79013
78992
|
_setSalesPersons() {
|
|
79014
78993
|
this.transactionService.getSalesPersons().then((salesPersons) => {
|
|
@@ -79094,10 +79073,27 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
|
|
|
79094
79073
|
}));
|
|
79095
79074
|
this.searchTypes = new FilterViewmodel(searchTypes, this.searchTypeFields).filterItems;
|
|
79096
79075
|
}
|
|
79097
|
-
|
|
79098
|
-
|
|
79076
|
+
_setTransactionKinds() {
|
|
79077
|
+
this.transationConnectorService.getTransactionTypes().then((transactionTypes) => {
|
|
79078
|
+
this.transactionKinds = new FilterViewmodel(transactionTypes, this.transactionKindsFields).filterItems;
|
|
79079
|
+
});
|
|
79080
|
+
}
|
|
79081
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionServiceOrderFilterContentOrderComponent, deps: [{ token: TransactionSearchService }, { token: FilterRequestService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }, { token: TransactionRelationService }, { token: TransactionConnectorService }, { token: TransactionFilterContentService }, { token: DictionaryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
79082
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionServiceOrderFilterContentOrderComponent, isStandalone: false, selector: "co-transaction-service-order-filter-content-order", host: { properties: { "class.co-transaction-search-filter-content": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
79099
79083
|
<div class="transaction-filter-content-order-wrapper transaction-filter-content-wrapper">
|
|
79084
|
+
@if (transactionFilterContentService.showTransactionTypes) {
|
|
79085
|
+
<!--Transaction kind list-->
|
|
79086
|
+
<div class="filter-item-wrapper">
|
|
79087
|
+
<co-transaction-filter-item [placeholder]="'TRANSACTION_TYPES'"
|
|
79088
|
+
[model]="searchService.searchRequest.transKindList"
|
|
79089
|
+
(modelChange)="handleTransactionKindChange($event)"
|
|
79090
|
+
[mode]="modes.SelectListWithStringCollectionOutput"
|
|
79091
|
+
[collection]="transactionKinds"
|
|
79092
|
+
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
79093
|
+
</co-transaction-filter-item>
|
|
79094
|
+
</div>
|
|
79100
79095
|
|
|
79096
|
+
}
|
|
79101
79097
|
<!--Orderdatum-->
|
|
79102
79098
|
<div class="filter-item-wrapper">
|
|
79103
79099
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -79309,7 +79305,7 @@ class TransactionServiceOrderFilterContentOrderComponent extends TransactionFilt
|
|
|
79309
79305
|
</co-transaction-filter-item>
|
|
79310
79306
|
</div>
|
|
79311
79307
|
</div>
|
|
79312
|
-
|
|
79308
|
+
|
|
79313
79309
|
<div class="filter-item-wrapper">
|
|
79314
79310
|
<co-transaction-filter-item [placeholder]="'SEARCH_TYPE'"
|
|
79315
79311
|
[collection]="searchTypes"
|
|
@@ -79326,7 +79322,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
79326
79322
|
selector: 'co-transaction-service-order-filter-content-order',
|
|
79327
79323
|
template: `
|
|
79328
79324
|
<div class="transaction-filter-content-order-wrapper transaction-filter-content-wrapper">
|
|
79325
|
+
@if (transactionFilterContentService.showTransactionTypes) {
|
|
79326
|
+
<!--Transaction kind list-->
|
|
79327
|
+
<div class="filter-item-wrapper">
|
|
79328
|
+
<co-transaction-filter-item [placeholder]="'TRANSACTION_TYPES'"
|
|
79329
|
+
[model]="searchService.searchRequest.transKindList"
|
|
79330
|
+
(modelChange)="handleTransactionKindChange($event)"
|
|
79331
|
+
[mode]="modes.SelectListWithStringCollectionOutput"
|
|
79332
|
+
[collection]="transactionKinds"
|
|
79333
|
+
(activeFilterCountChange)="onActiveFilterCountChanged($event)">
|
|
79334
|
+
</co-transaction-filter-item>
|
|
79335
|
+
</div>
|
|
79329
79336
|
|
|
79337
|
+
}
|
|
79330
79338
|
<!--Orderdatum-->
|
|
79331
79339
|
<div class="filter-item-wrapper">
|
|
79332
79340
|
<co-transaction-filter-item [placeholder]="'ORDER_DATE'"
|
|
@@ -79538,7 +79546,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
79538
79546
|
</co-transaction-filter-item>
|
|
79539
79547
|
</div>
|
|
79540
79548
|
</div>
|
|
79541
|
-
|
|
79549
|
+
|
|
79542
79550
|
<div class="filter-item-wrapper">
|
|
79543
79551
|
<co-transaction-filter-item [placeholder]="'SEARCH_TYPE'"
|
|
79544
79552
|
[collection]="searchTypes"
|
|
@@ -79550,7 +79558,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
79550
79558
|
`,
|
|
79551
79559
|
standalone: false
|
|
79552
79560
|
}]
|
|
79553
|
-
}], propDecorators: { showClass: [{
|
|
79561
|
+
}], ctorParameters: () => [{ type: TransactionSearchService }, { type: FilterRequestService }, { type: TransactionService }, { type: i0.ChangeDetectorRef }, { type: TransactionRelationService }, { type: TransactionConnectorService }, { type: TransactionFilterContentService }, { type: DictionaryService }], propDecorators: { showClass: [{
|
|
79554
79562
|
type: HostBinding,
|
|
79555
79563
|
args: ["class.co-transaction-search-filter-content"]
|
|
79556
79564
|
}] } });
|
|
@@ -85544,6 +85552,7 @@ class TransactionLineModule {
|
|
|
85544
85552
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
|
|
85545
85553
|
[{ type: TransactionKind.CashDesk, category: TransactionTypeCategory.SalesOrderCashRegister }, TransactionCashRegisterOrderLineComponent],
|
|
85546
85554
|
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionSalesOrderQuotationLineComponent],
|
|
85555
|
+
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotationPurchase }, TransactionPurchaseLineComponent],
|
|
85547
85556
|
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
|
|
85548
85557
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionOverviewLineComponent],
|
|
85549
85558
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionPurchaseLineComponent],
|
|
@@ -85651,6 +85660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
85651
85660
|
[{ type: TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionPurchaseOrderLineComponent],
|
|
85652
85661
|
[{ type: TransactionKind.CashDesk, category: TransactionTypeCategory.SalesOrderCashRegister }, TransactionCashRegisterOrderLineComponent],
|
|
85653
85662
|
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotation }, TransactionSalesOrderQuotationLineComponent],
|
|
85663
|
+
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderQuotationPurchase }, TransactionPurchaseLineComponent],
|
|
85654
85664
|
[{ type: TransactionKind.SalesQuotation, category: TransactionTypeCategory.SalesOrderMarginInfo }, TransactionMarginInfoLineComponent],
|
|
85655
85665
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderOverview }, TransactionOverviewLineComponent],
|
|
85656
85666
|
[{ type: TransactionKind.ServiceOrder, category: TransactionTypeCategory.ServiceOrderPurchase }, TransactionPurchaseLineComponent],
|
|
@@ -96839,7 +96849,6 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
96839
96849
|
_transactionCreationService;
|
|
96840
96850
|
showConvertDialog = false;
|
|
96841
96851
|
creatingSalesOrder = false;
|
|
96842
|
-
allowMultiCreation = false;
|
|
96843
96852
|
refTransactions = [];
|
|
96844
96853
|
_subscriptions = [];
|
|
96845
96854
|
showClass() {
|
|
@@ -96867,9 +96876,6 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
96867
96876
|
}
|
|
96868
96877
|
ngOnInit() {
|
|
96869
96878
|
super.ngOnInit();
|
|
96870
|
-
this.transactionService.getInternalParameter(InternalParam.QuotationToOrderMulti).then((value) => {
|
|
96871
|
-
this.allowMultiCreation = value;
|
|
96872
|
-
});
|
|
96873
96879
|
this._subscriptions.push(this.transactionEventService.transactionLineRefTransactionsChanged.subscribe(() => {
|
|
96874
96880
|
this.updateRefTransactions();
|
|
96875
96881
|
}));
|
|
@@ -97029,11 +97035,10 @@ class TransactionQuickAccessSalesQuotationComponent extends TransactionQuickAcce
|
|
|
97029
97035
|
[transactionTypeCategory]="transactionTypeCategory.SalesOrderQuotation"
|
|
97030
97036
|
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
97031
97037
|
></co-transaction-send-documents>
|
|
97032
|
-
@if (refTransactions.length <= 0
|
|
97038
|
+
@if (refTransactions.length <= 0 || transactionService.canGenerateMultipleOrdersFromSingleQuotation) {
|
|
97033
97039
|
<co-transaction-button class="sales-quote-btn custom-width"
|
|
97034
97040
|
[title]="'SALES_ORDER' | localize"
|
|
97035
97041
|
[iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
|
|
97036
|
-
[hidden]="refTransactions.length > 0"
|
|
97037
97042
|
(click)="createSalesOrder()"
|
|
97038
97043
|
></co-transaction-button>
|
|
97039
97044
|
}
|
|
@@ -97091,11 +97096,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
97091
97096
|
[transactionTypeCategory]="transactionTypeCategory.SalesOrderQuotation"
|
|
97092
97097
|
(openSendMethodDialog)="showSendMethodDialog = true"
|
|
97093
97098
|
></co-transaction-send-documents>
|
|
97094
|
-
@if (refTransactions.length <= 0
|
|
97099
|
+
@if (refTransactions.length <= 0 || transactionService.canGenerateMultipleOrdersFromSingleQuotation) {
|
|
97095
97100
|
<co-transaction-button class="sales-quote-btn custom-width"
|
|
97096
97101
|
[title]="'SALES_ORDER' | localize"
|
|
97097
97102
|
[iconData]="iconCacheService.getIcon(icons.CartShoppingGear)"
|
|
97098
|
-
[hidden]="refTransactions.length > 0"
|
|
97099
97103
|
(click)="createSalesOrder()"
|
|
97100
97104
|
></co-transaction-button>
|
|
97101
97105
|
}
|
|
@@ -115787,6 +115791,7 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115787
115791
|
SimpleGridColumnTemplateType = SimpleGridColumnTemplateType;
|
|
115788
115792
|
columnAlign = ColumnAlign;
|
|
115789
115793
|
icons = Icon;
|
|
115794
|
+
newBookingPrice;
|
|
115790
115795
|
invoiceCheckOrder;
|
|
115791
115796
|
lineSelectedEvent = new EventEmitter();
|
|
115792
115797
|
saveRowEvent = new EventEmitter();
|
|
@@ -115807,7 +115812,7 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115807
115812
|
}
|
|
115808
115813
|
handleSaveRow(data) {
|
|
115809
115814
|
const row = data;
|
|
115810
|
-
this.saveRowEvent.emit({ row: row, newValues: { bookingPrice:
|
|
115815
|
+
this.saveRowEvent.emit({ row: row, newValues: { bookingPrice: this.newBookingPrice, quantity: row.toCheck } });
|
|
115811
115816
|
}
|
|
115812
115817
|
handleOpenTransaction(transNo) {
|
|
115813
115818
|
this.openTransactionEvent.emit(transNo);
|
|
@@ -115838,14 +115843,14 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115838
115843
|
<div class="tile-body">
|
|
115839
115844
|
<div class="tile-middle-left">
|
|
115840
115845
|
<div class="row center">
|
|
115841
|
-
|
|
115846
|
+
|
|
115842
115847
|
</div>
|
|
115843
115848
|
</div>
|
|
115844
115849
|
<div class="tile-middle-middle">
|
|
115845
115850
|
|
|
115846
115851
|
</div>
|
|
115847
115852
|
<div class="tile-middle-right">
|
|
115848
|
-
|
|
115853
|
+
|
|
115849
115854
|
</div>
|
|
115850
115855
|
</div>
|
|
115851
115856
|
<div class="tile-footer">
|
|
@@ -115870,10 +115875,10 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115870
115875
|
</div>
|
|
115871
115876
|
</div>
|
|
115872
115877
|
<div class="grid-wrapper">
|
|
115873
|
-
<co-simple-grid
|
|
115874
|
-
[data]="invoiceCheckOrder?.orderLines"
|
|
115875
|
-
[rowsPerPage]="8"
|
|
115876
|
-
[inlineEdit]="true"
|
|
115878
|
+
<co-simple-grid
|
|
115879
|
+
[data]="invoiceCheckOrder?.orderLines"
|
|
115880
|
+
[rowsPerPage]="8"
|
|
115881
|
+
[inlineEdit]="true"
|
|
115877
115882
|
(saveRow)="handleSaveRow($event)">
|
|
115878
115883
|
|
|
115879
115884
|
<co-simple-grid-column [width]="10" [order]="1" [textAlign]="columnAlign.Center">
|
|
@@ -115881,7 +115886,7 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115881
115886
|
<co-input-checkbox (modelChange)="handleLineSelected($event, row)" [model]="row['process']"></co-input-checkbox>
|
|
115882
115887
|
</ng-template>
|
|
115883
115888
|
</co-simple-grid-column>
|
|
115884
|
-
|
|
115889
|
+
|
|
115885
115890
|
<co-simple-grid-column
|
|
115886
115891
|
[headerText]="'ARTICLE_NR' | localize"
|
|
115887
115892
|
[order]="2"
|
|
@@ -115920,7 +115925,8 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115920
115925
|
<span [textContent]="row['bookingPrice'] | coCurrency: true"></span>
|
|
115921
115926
|
</ng-template>
|
|
115922
115927
|
<ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
|
|
115923
|
-
<co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [
|
|
115928
|
+
<co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['bookingPrice']"
|
|
115929
|
+
(modelChange)="newBookingPrice = $event"></co-input-text>
|
|
115924
115930
|
</ng-template>
|
|
115925
115931
|
</co-simple-grid-column>
|
|
115926
115932
|
|
|
@@ -115981,7 +115987,7 @@ class TransactionInvoiceCheckOrderTileComponent {
|
|
|
115981
115987
|
</ng-template>
|
|
115982
115988
|
</co-simple-grid-column>
|
|
115983
115989
|
|
|
115984
|
-
|
|
115990
|
+
|
|
115985
115991
|
</co-simple-grid>
|
|
115986
115992
|
</div>
|
|
115987
115993
|
</div>
|
|
@@ -116013,14 +116019,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
116013
116019
|
<div class="tile-body">
|
|
116014
116020
|
<div class="tile-middle-left">
|
|
116015
116021
|
<div class="row center">
|
|
116016
|
-
|
|
116022
|
+
|
|
116017
116023
|
</div>
|
|
116018
116024
|
</div>
|
|
116019
116025
|
<div class="tile-middle-middle">
|
|
116020
116026
|
|
|
116021
116027
|
</div>
|
|
116022
116028
|
<div class="tile-middle-right">
|
|
116023
|
-
|
|
116029
|
+
|
|
116024
116030
|
</div>
|
|
116025
116031
|
</div>
|
|
116026
116032
|
<div class="tile-footer">
|
|
@@ -116045,10 +116051,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
116045
116051
|
</div>
|
|
116046
116052
|
</div>
|
|
116047
116053
|
<div class="grid-wrapper">
|
|
116048
|
-
<co-simple-grid
|
|
116049
|
-
[data]="invoiceCheckOrder?.orderLines"
|
|
116050
|
-
[rowsPerPage]="8"
|
|
116051
|
-
[inlineEdit]="true"
|
|
116054
|
+
<co-simple-grid
|
|
116055
|
+
[data]="invoiceCheckOrder?.orderLines"
|
|
116056
|
+
[rowsPerPage]="8"
|
|
116057
|
+
[inlineEdit]="true"
|
|
116052
116058
|
(saveRow)="handleSaveRow($event)">
|
|
116053
116059
|
|
|
116054
116060
|
<co-simple-grid-column [width]="10" [order]="1" [textAlign]="columnAlign.Center">
|
|
@@ -116056,7 +116062,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
116056
116062
|
<co-input-checkbox (modelChange)="handleLineSelected($event, row)" [model]="row['process']"></co-input-checkbox>
|
|
116057
116063
|
</ng-template>
|
|
116058
116064
|
</co-simple-grid-column>
|
|
116059
|
-
|
|
116065
|
+
|
|
116060
116066
|
<co-simple-grid-column
|
|
116061
116067
|
[headerText]="'ARTICLE_NR' | localize"
|
|
116062
116068
|
[order]="2"
|
|
@@ -116095,7 +116101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
116095
116101
|
<span [textContent]="row['bookingPrice'] | coCurrency: true"></span>
|
|
116096
116102
|
</ng-template>
|
|
116097
116103
|
<ng-template [templateType]="SimpleGridColumnTemplateType.Edit" let-row="row">
|
|
116098
|
-
<co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [
|
|
116104
|
+
<co-input-text #editBookingPriceComponent [customHeight]="true" [customWidth]="true" [showClearButton]="false" [type]="'number'" [model]="row['bookingPrice']"
|
|
116105
|
+
(modelChange)="newBookingPrice = $event"></co-input-text>
|
|
116099
116106
|
</ng-template>
|
|
116100
116107
|
</co-simple-grid-column>
|
|
116101
116108
|
|
|
@@ -116156,7 +116163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
116156
116163
|
</ng-template>
|
|
116157
116164
|
</co-simple-grid-column>
|
|
116158
116165
|
|
|
116159
|
-
|
|
116166
|
+
|
|
116160
116167
|
</co-simple-grid>
|
|
116161
116168
|
</div>
|
|
116162
116169
|
</div>
|