@colijnit/transaction 256.1.77 → 256.1.78
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 +17 -22
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-copy-order/transaction-copy-order.component.js +64 -64
- package/esm2015/lib/component/transaction-header/transaction-header-customer-portal/transaction-header-customer-portal.component.js +5 -2
- package/esm2015/lib/component/transaction-header-fields/transaction-header-preferred-delivery-date.component.js +4 -2
- package/esm2015/lib/service/transaction-payment.service.js +2 -2
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +72 -68
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-copy-order/transaction-copy-order.component.d.ts +2 -2
- package/lib/component/transaction-header/transaction-header-customer-portal/style/_layout.scss +5 -1
- package/package.json +2 -2
|
@@ -283,8 +283,8 @@ class Version {
|
|
|
283
283
|
constructor() {
|
|
284
284
|
this.name = "@colijnit/transaction";
|
|
285
285
|
this.description = "Colijn IT transaction package";
|
|
286
|
-
this.symVer = "256.1.
|
|
287
|
-
this.publishDate = "
|
|
286
|
+
this.symVer = "256.1.78";
|
|
287
|
+
this.publishDate = "14/04/2025, 16:41:24";
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
290
|
|
|
@@ -47157,7 +47157,7 @@ class TransactionPaymentService {
|
|
|
47157
47157
|
const amountToPayRequest = new CalculateAmountToPayRequest();
|
|
47158
47158
|
amountToPayRequest.transactionUuid = this.transactionUuid;
|
|
47159
47159
|
amountToPayRequest.paymentMethodCode = this.currentPaymentMethod.code;
|
|
47160
|
-
this._paymentConnectorService.
|
|
47160
|
+
this._paymentConnectorService.calculateAmountToPay(amountToPayRequest).then((result) => {
|
|
47161
47161
|
this.amountToPay = result.amountToPay;
|
|
47162
47162
|
});
|
|
47163
47163
|
});
|
|
@@ -49394,7 +49394,9 @@ class TransactionHeaderPreferredDeliveryDateComponent extends TransactionInputHe
|
|
|
49394
49394
|
}
|
|
49395
49395
|
transactionInfoSet() {
|
|
49396
49396
|
super.transactionInfoSet();
|
|
49397
|
-
|
|
49397
|
+
if (this.transactionInfo.preferredDeliveryDate2) {
|
|
49398
|
+
this.option = this.transactionInfo.preferredDeliveryDate2;
|
|
49399
|
+
}
|
|
49398
49400
|
}
|
|
49399
49401
|
}
|
|
49400
49402
|
TransactionHeaderPreferredDeliveryDateComponent.decorators = [
|
|
@@ -56047,7 +56049,10 @@ TransactionHeaderCustomerPortalComponent.decorators = [
|
|
|
56047
56049
|
</div>
|
|
56048
56050
|
<div class="planning-request-button-wrapper" *ngIf="showPreferredPlanning && !showPlanningDialog"
|
|
56049
56051
|
(click)="checkCanPlanDelivery()">
|
|
56050
|
-
<
|
|
56052
|
+
<div class="preferred-delivery-date">
|
|
56053
|
+
<span [textContent]="'PREFERRED_DELIVERY_DATE_HEADER' | localize"></span>
|
|
56054
|
+
<span [textContent]="transaction.transactionInfo.preferredDeliveryDate | date:'dd-MM-yyyy'"></span>
|
|
56055
|
+
</div>
|
|
56051
56056
|
<co-icon class="planning-request-button" [class.co-transaction-check]="transaction.transactionInfo.deliveryDateDefinitive"
|
|
56052
56057
|
[iconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"></co-icon>
|
|
56053
56058
|
</div>
|
|
@@ -58081,6 +58086,14 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
|
|
|
58081
58086
|
this.customers = [];
|
|
58082
58087
|
this.copyTransactionRequest = new CopyTransactionRequest();
|
|
58083
58088
|
this.closeDialog = new EventEmitter();
|
|
58089
|
+
this.getCustomers = (text) => {
|
|
58090
|
+
const request = new RelationRequest();
|
|
58091
|
+
request.relationType = RelationKind.Customer;
|
|
58092
|
+
request.general = text;
|
|
58093
|
+
return this.relationService.getRelationListObjects(request).then((customers) => {
|
|
58094
|
+
return customers;
|
|
58095
|
+
});
|
|
58096
|
+
};
|
|
58084
58097
|
}
|
|
58085
58098
|
showClass() {
|
|
58086
58099
|
return true;
|
|
@@ -58088,8 +58101,8 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
|
|
|
58088
58101
|
transactionSet() {
|
|
58089
58102
|
this.copyTransactionRequest.transactionDate = new Date();
|
|
58090
58103
|
this.copyTransactionRequest.transId = this.transactionInfo.id;
|
|
58104
|
+
this.selectedCustomer = this.transactionInfo.relation;
|
|
58091
58105
|
this._getSalesPersons();
|
|
58092
|
-
this._getCustomers();
|
|
58093
58106
|
this._getBranches();
|
|
58094
58107
|
}
|
|
58095
58108
|
getHeaderTitle() {
|
|
@@ -58160,75 +58173,66 @@ class TransactionCopyOrderComponent extends TransactionHeaderBaseComponent {
|
|
|
58160
58173
|
});
|
|
58161
58174
|
});
|
|
58162
58175
|
}
|
|
58163
|
-
_getCustomers() {
|
|
58164
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
58165
|
-
const request = new RelationRequest();
|
|
58166
|
-
this.relationService.getRelationListObjects(request).then((customers) => {
|
|
58167
|
-
this.customers = customers;
|
|
58168
|
-
});
|
|
58169
|
-
this.copyTransactionRequest.transactionRelationId = this.transactionInfo.relation.relationId;
|
|
58170
|
-
this.selectedCustomer = this.transactionInfo.relation;
|
|
58171
|
-
});
|
|
58172
|
-
}
|
|
58173
58176
|
}
|
|
58174
58177
|
TransactionCopyOrderComponent.decorators = [
|
|
58175
58178
|
{ type: Component, args: [{
|
|
58176
58179
|
selector: "co-transaction-copy-order",
|
|
58177
58180
|
template: `
|
|
58178
|
-
|
|
58179
|
-
|
|
58180
|
-
|
|
58181
|
-
|
|
58182
|
-
|
|
58183
|
-
|
|
58184
|
-
|
|
58185
|
-
|
|
58186
|
-
|
|
58187
|
-
|
|
58188
|
-
|
|
58189
|
-
|
|
58190
|
-
|
|
58191
|
-
|
|
58192
|
-
|
|
58193
|
-
|
|
58194
|
-
|
|
58195
|
-
|
|
58196
|
-
|
|
58197
|
-
|
|
58198
|
-
|
|
58199
|
-
|
|
58200
|
-
|
|
58201
|
-
|
|
58202
|
-
|
|
58203
|
-
|
|
58204
|
-
|
|
58205
|
-
|
|
58206
|
-
|
|
58207
|
-
|
|
58208
|
-
|
|
58209
|
-
|
|
58210
|
-
|
|
58211
|
-
|
|
58212
|
-
|
|
58213
|
-
|
|
58214
|
-
|
|
58215
|
-
|
|
58181
|
+
<co-dialog
|
|
58182
|
+
[modal]="true"
|
|
58183
|
+
[headerTemplate]="headerTemplate"
|
|
58184
|
+
[footerTemplate]="footerTemplate"
|
|
58185
|
+
(closeClick)="closeDialog.next()">
|
|
58186
|
+
<div class="content-wrapper">
|
|
58187
|
+
<span [textContent]="'BASIC_ORDER_DETAILS' | localize"></span>
|
|
58188
|
+
<div class="selection-wrapper">
|
|
58189
|
+
<co-list-of-values
|
|
58190
|
+
[largeCollection]="true"
|
|
58191
|
+
[collectionLoadFn]="getCustomers"
|
|
58192
|
+
[readonly]="readonly"
|
|
58193
|
+
[required]="true"
|
|
58194
|
+
[label]="'CUSTOMER' | localize"
|
|
58195
|
+
[displayField]="'familyName'"
|
|
58196
|
+
[(model)]="selectedCustomer">
|
|
58197
|
+
</co-list-of-values>
|
|
58198
|
+
<co-list-of-values
|
|
58199
|
+
[readonly]="readonly"
|
|
58200
|
+
[required]="true"
|
|
58201
|
+
[label]="'BRANCH' | localize"
|
|
58202
|
+
[collection]="branches"
|
|
58203
|
+
[displayField]="'description'"
|
|
58204
|
+
[(model)]="selectedBranch">
|
|
58205
|
+
</co-list-of-values>
|
|
58206
|
+
<co-input-date
|
|
58207
|
+
[placeholder]="'ORDER_DATE' | localize"
|
|
58208
|
+
[(model)]="copyTransactionRequest.transactionDate">
|
|
58209
|
+
</co-input-date>
|
|
58210
|
+
<co-list-of-values
|
|
58211
|
+
[readonly]="readonly"
|
|
58212
|
+
[label]="'SALES_PERSON' | localize"
|
|
58213
|
+
[collection]="salesPersons"
|
|
58214
|
+
[displayField]="'name'"
|
|
58215
|
+
[(model)]="selectedSalesPerson">
|
|
58216
|
+
</co-list-of-values>
|
|
58217
|
+
</div>
|
|
58218
|
+
</div>
|
|
58219
|
+
</co-dialog>
|
|
58216
58220
|
|
|
58217
|
-
|
|
58218
|
-
|
|
58219
|
-
|
|
58220
|
-
|
|
58221
|
-
|
|
58222
|
-
|
|
58221
|
+
<ng-template #headerTemplate>
|
|
58222
|
+
<div class="header-wrapper">
|
|
58223
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.BoxesPackingRegular)"></co-icon>
|
|
58224
|
+
<div class="co-dialog-header-title" [textContent]="getHeaderTitle() | localize"></div>
|
|
58225
|
+
</div>
|
|
58226
|
+
</ng-template>
|
|
58223
58227
|
|
|
58224
|
-
|
|
58225
|
-
|
|
58226
|
-
|
|
58227
|
-
|
|
58228
|
-
|
|
58229
|
-
|
|
58230
|
-
|
|
58231
|
-
|
|
58228
|
+
<ng-template #footerTemplate>
|
|
58229
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
58230
|
+
<co-default-confirm-cancel-buttons
|
|
58231
|
+
(handleConfirmButtonClicked)="handleOkClick()"
|
|
58232
|
+
(handleCancelButtonClicked)="handleCancelClick()">
|
|
58233
|
+
</co-default-confirm-cancel-buttons>
|
|
58234
|
+
</div>
|
|
58235
|
+
</ng-template>
|
|
58232
58236
|
`,
|
|
58233
58237
|
encapsulation: ViewEncapsulation.None
|
|
58234
58238
|
},] }
|