@colijnit/transaction 256.1.3 → 256.1.4
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 +96 -80
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-256.1.3.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout.component.js +17 -1
- package/esm2015/lib/component/core/base/transaction-payment-base.component.js +10 -1
- package/esm2015/lib/component/payment/payment.component.js +5 -1
- package/esm2015/lib/component/payment/payment.module.js +4 -3
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +3 -2
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +4 -1
- package/esm2015/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.js +28 -14
- package/esm2015/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.js +1 -21
- package/esm2015/lib/service/transaction-base.service.js +10 -1
- package/esm2015/lib/service/transaction-connector.service.js +29 -31
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +102 -64
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/checkout/checkout.component.d.ts +1 -0
- package/lib/component/core/base/transaction-payment-base.component.d.ts +1 -0
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +3 -1
- package/lib/component/transaction-search/transaction-search-result/transaction-search-result.component.d.ts +2 -3
- package/lib/component/transaction-search/transaction-search-tile/transaction-search-sales-order-tile/transaction-search-sales-order-tile.component.d.ts +0 -3
- package/lib/service/transaction-base.service.d.ts +1 -0
- package/package.json +3 -3
|
@@ -3,8 +3,8 @@ export class Version {
|
|
|
3
3
|
constructor() {
|
|
4
4
|
this.name = "@colijnit/transaction";
|
|
5
5
|
this.description = "Colijn IT transaction package";
|
|
6
|
-
this.symVer = "256.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "256.1.4";
|
|
7
|
+
this.publishDate = "23-10-2024 11:11:51";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsU0FBUyxDQUFDO1FBQ25CLGdCQUFXLEdBQUcscUJBQXFCLENBQUM7SUFDN0MsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMjU2LjEuNFwiO1xuICBwdWJsaWMgcHVibGlzaERhdGUgPSBcIjIzLTEwLTIwMjQgMTE6MTE6NTFcIjtcbn0iXX0=
|
|
@@ -278,8 +278,8 @@ class Version {
|
|
|
278
278
|
constructor() {
|
|
279
279
|
this.name = "@colijnit/transaction";
|
|
280
280
|
this.description = "Colijn IT transaction package";
|
|
281
|
-
this.symVer = "256.1.
|
|
282
|
-
this.publishDate = "
|
|
281
|
+
this.symVer = "256.1.4";
|
|
282
|
+
this.publishDate = "23-10-2024 11:11:51";
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -6672,55 +6672,55 @@ class TransactionConnectorService {
|
|
|
6672
6672
|
}
|
|
6673
6673
|
getCommissionCodes(languageCode) {
|
|
6674
6674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6675
|
-
const domainName = DomainName.CommissionCode;
|
|
6676
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6677
|
-
|
|
6678
|
-
}).getValue(languageCode, domainName);
|
|
6675
|
+
//const domainName: DomainName = DomainName.CommissionCode;
|
|
6676
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6677
|
+
return this._adapterService.getCommissionCodes(languageCode);
|
|
6678
|
+
//}).getValue(languageCode, domainName);
|
|
6679
6679
|
});
|
|
6680
6680
|
}
|
|
6681
6681
|
getInOutCollection(languageCode) {
|
|
6682
6682
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6683
|
-
const domainName = DomainName.InOutCollection;
|
|
6684
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6685
|
-
|
|
6686
|
-
}).getValue(languageCode, domainName);
|
|
6683
|
+
//const domainName: DomainName = DomainName.InOutCollection;
|
|
6684
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6685
|
+
return this._adapterService.getInOutCollection(languageCode);
|
|
6686
|
+
//}).getValue(languageCode, domainName);
|
|
6687
6687
|
});
|
|
6688
6688
|
}
|
|
6689
6689
|
getYesNoCollection(languageCode) {
|
|
6690
6690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6691
|
-
const domainName = DomainName.YesNo;
|
|
6692
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6693
|
-
|
|
6694
|
-
}).getValue(languageCode, domainName);
|
|
6691
|
+
//const domainName: DomainName = DomainName.YesNo;
|
|
6692
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6693
|
+
return this._adapterService.getYesNoCollection(languageCode);
|
|
6694
|
+
//}).getValue(languageCode, domainName);
|
|
6695
6695
|
});
|
|
6696
6696
|
}
|
|
6697
6697
|
getPriceKindCollection(languageCode) {
|
|
6698
6698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6699
|
-
const domainName = DomainName.PriceKind;
|
|
6700
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6701
|
-
|
|
6702
|
-
}).getValue(languageCode, domainName);
|
|
6699
|
+
//const domainName: DomainName = DomainName.PriceKind;
|
|
6700
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6701
|
+
return this._adapterService.getPriceKindCollection(languageCode);
|
|
6702
|
+
//}).getValue(languageCode, domainName);
|
|
6703
6703
|
});
|
|
6704
6704
|
}
|
|
6705
6705
|
getPriorityCollection(languageCode) {
|
|
6706
6706
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6707
|
-
const domainName = DomainName.Priority;
|
|
6708
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6709
|
-
|
|
6710
|
-
}).getValue(languageCode, domainName);
|
|
6707
|
+
// const domainName: DomainName = DomainName.Priority;
|
|
6708
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6709
|
+
return this._adapterService.getPriorityCollection(languageCode);
|
|
6710
|
+
// }).getValue(languageCode, domainName);
|
|
6711
6711
|
});
|
|
6712
6712
|
}
|
|
6713
6713
|
getEntryTypes(languageCode) {
|
|
6714
|
-
const domainName = DomainName.ServiceCommunicationType;
|
|
6715
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6716
|
-
|
|
6717
|
-
}).getValue(languageCode, domainName);
|
|
6714
|
+
// const domainName: DomainName = DomainName.ServiceCommunicationType;
|
|
6715
|
+
//return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6716
|
+
return this._adapterService.getEntryTypes(languageCode);
|
|
6717
|
+
//}).getValue(languageCode, domainName);
|
|
6718
6718
|
}
|
|
6719
6719
|
getDomainTypes(languageCode) {
|
|
6720
|
-
const domainName = DomainName.TransType;
|
|
6721
|
-
return this._selectMultipleParameterizedCacheService.requestCache(CoDomainValue, (languageCode, domainName) => {
|
|
6722
|
-
|
|
6723
|
-
}).getValue(languageCode, domainName);
|
|
6720
|
+
// const domainName: DomainName = DomainName.TransType;
|
|
6721
|
+
// return this._selectMultipleParameterizedCacheService.requestCache<CoDomainValue>(CoDomainValue, (languageCode: string, domainName: DomainName) => {
|
|
6722
|
+
return this._adapterService.getDomainTypes(languageCode);
|
|
6723
|
+
//}).getValue(languageCode, domainName);
|
|
6724
6724
|
}
|
|
6725
6725
|
getCauseCodes() {
|
|
6726
6726
|
return this._adapterService.getCauseCodes();
|
|
@@ -9519,6 +9519,14 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9519
9519
|
this.invoiceAddressSameAsDelivery = true;
|
|
9520
9520
|
this.getRelationOnRememberCurrentTransaction = true;
|
|
9521
9521
|
this.currentTransaction = new TransactionInfoResponse();
|
|
9522
|
+
/*public set cashRegistersDirty(value: boolean) {
|
|
9523
|
+
this._cashRegistersDirty = value;
|
|
9524
|
+
//this.transactionEventService.transactionDirty.next(this._transactionDirty);
|
|
9525
|
+
}
|
|
9526
|
+
|
|
9527
|
+
public get cashRegistersDirty(): boolean {
|
|
9528
|
+
return this._cashRegistersDirty;
|
|
9529
|
+
}*/
|
|
9522
9530
|
this.purchasePortalLine = [];
|
|
9523
9531
|
this.docDeliveryBatch = new DocDeliveryBatch();
|
|
9524
9532
|
this.internalParameterAllowsDropShipment = false;
|
|
@@ -9544,6 +9552,7 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
9544
9552
|
this._invoiceCompleted = false;
|
|
9545
9553
|
this._alreadyLocked = false;
|
|
9546
9554
|
this._transactionDirty = false;
|
|
9555
|
+
this._cashRegistersDirty = false;
|
|
9547
9556
|
this._salesOrderConfirmationSent = false;
|
|
9548
9557
|
this._subs = [];
|
|
9549
9558
|
}
|
|
@@ -12761,12 +12770,28 @@ class CheckoutComponent {
|
|
|
12761
12770
|
if (this.checkoutRelation && this.stepRelation) {
|
|
12762
12771
|
const valid = this.checkoutRelation.submit();
|
|
12763
12772
|
if (valid) {
|
|
12773
|
+
this.checkForAndSetSearchAddress();
|
|
12764
12774
|
this.stepRelation.completed = yield this.saveRelation();
|
|
12765
12775
|
}
|
|
12766
12776
|
return valid;
|
|
12767
12777
|
}
|
|
12768
12778
|
});
|
|
12769
12779
|
}
|
|
12780
|
+
//If a relation has no search address set the first active address to be such.
|
|
12781
|
+
checkForAndSetSearchAddress() {
|
|
12782
|
+
if (this.service.relation.activeAddresses.length > 0) {
|
|
12783
|
+
let searchAddressFound = false;
|
|
12784
|
+
this.service.relation.activeAddresses.forEach(address => {
|
|
12785
|
+
if (address.searchAddress) {
|
|
12786
|
+
searchAddressFound = true;
|
|
12787
|
+
return;
|
|
12788
|
+
}
|
|
12789
|
+
});
|
|
12790
|
+
if (!searchAddressFound) {
|
|
12791
|
+
this.service.relation.activeAddresses[0].searchAddress = true;
|
|
12792
|
+
}
|
|
12793
|
+
}
|
|
12794
|
+
}
|
|
12770
12795
|
handleDeliveryValidation() {
|
|
12771
12796
|
return __awaiter(this, void 0, void 0, function* () {
|
|
12772
12797
|
if (this.checkoutDelivery && this.stepDelivery) {
|
|
@@ -16600,6 +16625,8 @@ class TransactionSearchService {
|
|
|
16600
16625
|
[TransactionKind.CashDesk, "SEARCH_NUMBER_OR_CUSTOMER"]
|
|
16601
16626
|
]);
|
|
16602
16627
|
this.transactionsPerPage = 20;
|
|
16628
|
+
this.resultSubject = new BehaviorSubject(false);
|
|
16629
|
+
this.resultsUpdated = this.resultSubject.asObservable();
|
|
16603
16630
|
this._currentPage = 1;
|
|
16604
16631
|
this._transactionType = TransactionKind.SalesOrder;
|
|
16605
16632
|
this._subs = [];
|
|
@@ -16655,6 +16682,7 @@ class TransactionSearchService {
|
|
|
16655
16682
|
var _a, _b;
|
|
16656
16683
|
this.transactions = (_a = result.transactions) !== null && _a !== void 0 ? _a : [];
|
|
16657
16684
|
this.resultCount = (_b = result.count) !== null && _b !== void 0 ? _b : undefined;
|
|
16685
|
+
this.resultSubject.next(true);
|
|
16658
16686
|
});
|
|
16659
16687
|
this.setPreviousSearchRequest();
|
|
16660
16688
|
});
|
|
@@ -17172,25 +17200,6 @@ class TransactionSearchSalesOrderTileComponent extends TransactionSearchTileBase
|
|
|
17172
17200
|
statusBarGF: this.cfgNames.StatusBarGF
|
|
17173
17201
|
};
|
|
17174
17202
|
this.showAvatar = true;
|
|
17175
|
-
this.selectedTransactions = [];
|
|
17176
|
-
}
|
|
17177
|
-
onTransactionSelected(checked) {
|
|
17178
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
17179
|
-
console.log(checked);
|
|
17180
|
-
console.log(this.transaction);
|
|
17181
|
-
// save selected transactions
|
|
17182
|
-
if (checked) {
|
|
17183
|
-
this.selectedTransactions.push(this.transaction);
|
|
17184
|
-
}
|
|
17185
|
-
else {
|
|
17186
|
-
// const transId = this.transaction.id;
|
|
17187
|
-
// const index = this.selectedTransactions.findIndex(transaction => transaction.id === transId);
|
|
17188
|
-
// if (index !== -1) {
|
|
17189
|
-
// this.selectedTransactions.splice(index, 1);
|
|
17190
|
-
// }
|
|
17191
|
-
}
|
|
17192
|
-
console.log(this.selectedTransactions);
|
|
17193
|
-
});
|
|
17194
17203
|
}
|
|
17195
17204
|
}
|
|
17196
17205
|
TransactionSearchSalesOrderTileComponent.decorators = [
|
|
@@ -31366,6 +31375,14 @@ class TransactionPaymentBaseComponent {
|
|
|
31366
31375
|
this.icons = Icon;
|
|
31367
31376
|
this.showKeyPad = true;
|
|
31368
31377
|
this._remainingPayment = false;
|
|
31378
|
+
/*@Input()
|
|
31379
|
+
public set showPaymentDate(value: boolean) {
|
|
31380
|
+
this._showPaymentDate = value;
|
|
31381
|
+
}
|
|
31382
|
+
|
|
31383
|
+
public get showPaymentDate(): boolean {
|
|
31384
|
+
return this._showPaymentDate;
|
|
31385
|
+
}*/
|
|
31369
31386
|
this.payed = new EventEmitter();
|
|
31370
31387
|
this.paymentMethodIdx = 0;
|
|
31371
31388
|
this.cashRegisterIdx = 0;
|
|
@@ -31380,6 +31397,7 @@ class TransactionPaymentBaseComponent {
|
|
|
31380
31397
|
// public statusMessage: string = "";
|
|
31381
31398
|
this.subs = [];
|
|
31382
31399
|
this._amount = 0;
|
|
31400
|
+
this._showPaymentDate = false;
|
|
31383
31401
|
}
|
|
31384
31402
|
set transId(value) {
|
|
31385
31403
|
this._transId = value;
|
|
@@ -31605,6 +31623,7 @@ class PaymentComponent extends TransactionPaymentBaseComponent {
|
|
|
31605
31623
|
super(...arguments);
|
|
31606
31624
|
this.showClass = true;
|
|
31607
31625
|
}
|
|
31626
|
+
/* public paymentDate:Date = new Date();*/
|
|
31608
31627
|
cashRegisterSelected(cashRegister, index) {
|
|
31609
31628
|
super.cashRegisterSelected(cashRegister, index);
|
|
31610
31629
|
this.activeCashRegister = cashRegister;
|
|
@@ -31663,6 +31682,9 @@ PaymentComponent.decorators = [
|
|
|
31663
31682
|
[disabled]="paymentService.amountToPay === 0"></co-button>
|
|
31664
31683
|
</div>
|
|
31665
31684
|
</div>
|
|
31685
|
+
<!--<div class="payment-bookdate" *ngIf="showPaymentDate">
|
|
31686
|
+
<co-input-date [(model)]="paymentDate"></co-input-date>
|
|
31687
|
+
</div>-->
|
|
31666
31688
|
<div class="payment-error-message" *ngIf="paymentService.statusMessage"
|
|
31667
31689
|
[textContent]="paymentService.statusMessage"></div>
|
|
31668
31690
|
</div>
|
|
@@ -31994,7 +32016,8 @@ PaymentModule.decorators = [
|
|
|
31994
32016
|
LoaderModule,
|
|
31995
32017
|
PaymentToPayModule,
|
|
31996
32018
|
IconModule,
|
|
31997
|
-
ListOfValuesModule
|
|
32019
|
+
ListOfValuesModule,
|
|
32020
|
+
InputDatePickerModule
|
|
31998
32021
|
],
|
|
31999
32022
|
declarations: [
|
|
32000
32023
|
PaymentComponent
|
|
@@ -40739,8 +40762,9 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
40739
40762
|
[remainingPayment]="showRemainingPayment"
|
|
40740
40763
|
[currencyId]="transactionInfo.currencyId"
|
|
40741
40764
|
[doNotFetchAmountToPayForRemaining]="true"
|
|
40765
|
+
|
|
40742
40766
|
></co-payment>
|
|
40743
|
-
</co-dialog>
|
|
40767
|
+
</co-dialog> <!--[showPaymentDate]="true"-->
|
|
40744
40768
|
`,
|
|
40745
40769
|
providers: [
|
|
40746
40770
|
{ provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, useExisting: forwardRef(() => TransactionHeaderPaymentComponent) }
|
|
@@ -47834,8 +47858,6 @@ class TransactionSearchResultComponent {
|
|
|
47834
47858
|
this.transactionClick = new EventEmitter();
|
|
47835
47859
|
this.screenConfigLoaded = false;
|
|
47836
47860
|
this.salesOrdersPageActive = false;
|
|
47837
|
-
this.batchDeliveryButtonLoader = true;
|
|
47838
|
-
this.selectAllOrders = false;
|
|
47839
47861
|
this.showProcessOrdersLoader = false;
|
|
47840
47862
|
this.selectedTransactions = [];
|
|
47841
47863
|
this._subs = [];
|
|
@@ -47874,6 +47896,10 @@ class TransactionSearchResultComponent {
|
|
|
47874
47896
|
if (config && config.length > 0) {
|
|
47875
47897
|
this.screenConfigLoaded = true;
|
|
47876
47898
|
}
|
|
47899
|
+
}), this.searchService.resultsUpdated.subscribe(() => {
|
|
47900
|
+
if (this.salesOrdersPageActive && this.batchCategory === 'levering') {
|
|
47901
|
+
this.markSelectedTransactions();
|
|
47902
|
+
}
|
|
47877
47903
|
}));
|
|
47878
47904
|
}
|
|
47879
47905
|
ngOnDestroy() {
|
|
@@ -47884,18 +47910,16 @@ class TransactionSearchResultComponent {
|
|
|
47884
47910
|
this.transactionClick.emit(transaction);
|
|
47885
47911
|
}
|
|
47886
47912
|
onSelectedClick(transaction) {
|
|
47887
|
-
console.log(transaction);
|
|
47888
47913
|
if (transaction.selected) {
|
|
47889
47914
|
this.selectedTransactions.push(transaction);
|
|
47890
47915
|
}
|
|
47891
47916
|
else {
|
|
47892
|
-
|
|
47893
|
-
|
|
47894
|
-
|
|
47895
|
-
|
|
47896
|
-
|
|
47917
|
+
const transId = transaction.transId;
|
|
47918
|
+
const index = this.selectedTransactions.findIndex(transaction => transaction.transId === transId);
|
|
47919
|
+
if (index !== -1) {
|
|
47920
|
+
this.selectedTransactions.splice(index, 1);
|
|
47921
|
+
}
|
|
47897
47922
|
}
|
|
47898
|
-
console.log(this.selectedTransactions);
|
|
47899
47923
|
}
|
|
47900
47924
|
onPreviousClick() {
|
|
47901
47925
|
this.searchService.currentPage -= 1;
|
|
@@ -47906,6 +47930,16 @@ class TransactionSearchResultComponent {
|
|
|
47906
47930
|
onPageClick(pageNr) {
|
|
47907
47931
|
this.searchService.currentPage = pageNr;
|
|
47908
47932
|
}
|
|
47933
|
+
markSelectedTransactions() {
|
|
47934
|
+
if (this.searchService.resultsUpdated) {
|
|
47935
|
+
this.searchService.transactions.forEach(transaction => {
|
|
47936
|
+
const matchingObject = this.selectedTransactions.find(selectedTransaction => selectedTransaction.transId === transaction.transId);
|
|
47937
|
+
if (matchingObject) {
|
|
47938
|
+
transaction.selected = true;
|
|
47939
|
+
}
|
|
47940
|
+
});
|
|
47941
|
+
}
|
|
47942
|
+
}
|
|
47909
47943
|
dragStarted(ev, transaction) {
|
|
47910
47944
|
this._deliveryPlanningService.dragging = true;
|
|
47911
47945
|
this._deliveryPlanningService.currentTransId = transaction.transId;
|
|
@@ -47943,7 +47977,7 @@ class TransactionSearchResultComponent {
|
|
|
47943
47977
|
printDeliveryNoteRequest = new PrintDeliveryNoteRequest();
|
|
47944
47978
|
}
|
|
47945
47979
|
this.transactionService.printDeliveryNotes(printDeliveryNotesRequest)
|
|
47946
|
-
.then((
|
|
47980
|
+
.then(() => {
|
|
47947
47981
|
this.showProcessOrdersLoader = false;
|
|
47948
47982
|
})
|
|
47949
47983
|
.catch(() => {
|
|
@@ -47951,8 +47985,12 @@ class TransactionSearchResultComponent {
|
|
|
47951
47985
|
});
|
|
47952
47986
|
});
|
|
47953
47987
|
}
|
|
47954
|
-
onSelectAllOrders() {
|
|
47955
|
-
this.searchService.transactions.forEach(item => item.selected = !
|
|
47988
|
+
onSelectAllOrders(allSelected) {
|
|
47989
|
+
this.searchService.transactions.forEach(item => item.selected = !allSelected);
|
|
47990
|
+
this.selectedTransactions = [];
|
|
47991
|
+
if (!allSelected) {
|
|
47992
|
+
this.selectedTransactions.push(...this.searchService.transactions);
|
|
47993
|
+
}
|
|
47956
47994
|
}
|
|
47957
47995
|
_createRequestLines(selectedLines) {
|
|
47958
47996
|
return selectedLines.map((line) => {
|
|
@@ -47974,7 +48012,7 @@ TransactionSearchResultComponent.decorators = [
|
|
|
47974
48012
|
<co-input-checkbox
|
|
47975
48013
|
[model]="checkIfAllSelected()"
|
|
47976
48014
|
[label]="'SELECT_ALL_ORDERS' | localize"
|
|
47977
|
-
(modelChange)="onSelectAllOrders()">
|
|
48015
|
+
(modelChange)="onSelectAllOrders(checkIfAllSelected())">
|
|
47978
48016
|
</co-input-checkbox>
|
|
47979
48017
|
<co-quick-send-button
|
|
47980
48018
|
*ngIf="checkIfSelected()"
|