@colijnit/transaction 12.1.148 → 12.1.149
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 +89 -16
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-12.1.148.tgz +0 -0
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/dialog/catalog/dialog-catalog/dialog-catalog.module.js +2 -5
- package/esm2015/lib/component/transaction-line/transaction-purchase-overview-line/transaction-purchase-overview-line.component.js +19 -17
- package/esm2015/lib/service/transaction-connector-adapter.service.js +13 -1
- package/esm2015/lib/service/transaction-connector.service.js +6 -1
- package/esm2015/lib/service/transaction-mapping.service.js +2 -2
- package/esm2015/lib/service/transaction.service.js +34 -12
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +70 -32
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-document-button/style/_layout.scss +59 -0
- package/lib/component/transaction-document-button/style/_material-definition.scss +9 -0
- package/lib/component/transaction-document-button/style/_theme.scss +5 -0
- package/lib/component/transaction-document-button/style/material.scss +4 -0
- package/lib/component/transaction-line/transaction-purchase-overview-line/style/_layout.scss +8 -0
- package/lib/component/transaction-quick-access/transaction-quick-access-purchase-order-overview/style/_layout.scss +1 -4
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -0
- package/lib/service/transaction-connector.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +4 -2
- package/package.json +1 -1
|
@@ -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 = "12.1.
|
|
7
|
-
this.publishDate = "
|
|
6
|
+
this.symVer = "12.1.149";
|
|
7
|
+
this.publishDate = "2-10-2023 16:56:15";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMTIuMS4xNDlcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyLTEwLTIwMjMgMTY6NTY6MTVcIjtcbn0iXX0=
|
|
@@ -110,7 +110,7 @@ import { GoodsPickedRequest } from '@colijnit/transactionapi/build/model/goods-p
|
|
|
110
110
|
import { GoodsPickedRequestLine } from '@colijnit/transactionapi/build/model/goods-picked-request-line';
|
|
111
111
|
import { ArticleFlatTreeDTO } from '@colijnit/articleapi/build/model/article-flat-tree.bo';
|
|
112
112
|
import { ChangeLineQuantitySelectedLineRequest } from '@colijnit/transactionapi/build/model/change-line-quantity-selected-line-request';
|
|
113
|
-
import {
|
|
113
|
+
import { ExternalCatalogTypes } from '@colijnit/transactionapi/build/enum/external-catalog-types.enum';
|
|
114
114
|
import { FormMasterService, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, FormModule, InputRadioButtonModule, IconModule, InputTextComponent, TooltipDirectiveModule, CheckmarkOverlayModule, InputSearchModule, ColumnAlign, SimpleGridColumnDirective, OverlayService, ObserveVisibilityModule, ClickoutsideModule, OverlayModule, CalendarComponent, InputNumberPickerModule, InputDatePickerComponent, InputDatePickerModule, ColorSequenceService, PriceDisplayPipeModule, Carousel3dModule, CarouselModule, FilterPipeModule, InputTextareaComponent, InputTextareaModule, FormComponent, ScreenConfigurationModule, PopupModule, ContentViewMode, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, CoDialogWizardModule, ViewModeButtonsModule, FilterItemModule, FilterItemMode, FilterViewmodel, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
115
115
|
import { FlexModule } from '@angular/flex-layout';
|
|
116
116
|
import { AddressType } from '@colijnit/relationapi/build/enum/address-type.enum';
|
|
@@ -198,8 +198,8 @@ class Version {
|
|
|
198
198
|
constructor() {
|
|
199
199
|
this.name = "@colijnit/transaction";
|
|
200
200
|
this.description = "Colijn IT transaction package";
|
|
201
|
-
this.symVer = "12.1.
|
|
202
|
-
this.publishDate = "
|
|
201
|
+
this.symVer = "12.1.149";
|
|
202
|
+
this.publishDate = "2-10-2023 16:56:15";
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
|
|
@@ -4258,6 +4258,18 @@ class TransactionConnectorAdapterService {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
});
|
|
4260
4260
|
}
|
|
4261
|
+
addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData) {
|
|
4262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4263
|
+
const response = yield this.connector.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData);
|
|
4264
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
4265
|
+
return this._boFactory.makeWithRawBackendData(TransactionInfoResponse, response.resultObject);
|
|
4266
|
+
}
|
|
4267
|
+
else {
|
|
4268
|
+
this._handleExceptionFromResponse(response);
|
|
4269
|
+
return null;
|
|
4270
|
+
}
|
|
4271
|
+
});
|
|
4272
|
+
}
|
|
4261
4273
|
_handleExceptionFromResponse(result) {
|
|
4262
4274
|
this._errorService.showValidationError(result);
|
|
4263
4275
|
}
|
|
@@ -5350,6 +5362,11 @@ class TransactionConnectorService {
|
|
|
5350
5362
|
return yield this._adapterService.copySalesQuotation(copyTransactionRequest);
|
|
5351
5363
|
});
|
|
5352
5364
|
}
|
|
5365
|
+
addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData) {
|
|
5366
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5367
|
+
return yield this._adapterService.addExternalCatalogArticlesToTransaction(uuid, catalogId, rawData);
|
|
5368
|
+
});
|
|
5369
|
+
}
|
|
5353
5370
|
}
|
|
5354
5371
|
TransactionConnectorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TransactionConnectorService_Factory() { return new TransactionConnectorService(i0.ɵɵinject(TransactionConnectorAdapterService), i0.ɵɵinject(SelectSingleCacheService), i0.ɵɵinject(SelectMultipleCacheService), i0.ɵɵinject(SelectMultipleParameterizedCacheService), i0.ɵɵinject(SelectSingleParameterizedCacheService)); }, token: TransactionConnectorService, providedIn: "root" });
|
|
5355
5372
|
TransactionConnectorService.decorators = [
|
|
@@ -8071,15 +8088,37 @@ class TransactionService extends PendingReasonService {
|
|
|
8071
8088
|
yield this.addArticle(artNr, jsonArticleObject.quantity);
|
|
8072
8089
|
});
|
|
8073
8090
|
}
|
|
8074
|
-
|
|
8091
|
+
addExternalCatalogArticle(request) {
|
|
8075
8092
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
|
|
8082
|
-
|
|
8093
|
+
if (request.catalogType === ExternalCatalogTypes.Webshop) {
|
|
8094
|
+
yield this.addExternalCatalogArticleFromGoodId(request.articleJson);
|
|
8095
|
+
}
|
|
8096
|
+
else {
|
|
8097
|
+
yield this.addExternalCatalogArticleWithRawData(request.catalogId, request.articleJson);
|
|
8098
|
+
}
|
|
8099
|
+
});
|
|
8100
|
+
}
|
|
8101
|
+
addExternalCatalogArticleFromGoodId(jsonArticleString) {
|
|
8102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8103
|
+
const jsonArticleObject = JSON.parse(jsonArticleString);
|
|
8104
|
+
const response = yield this.addTransactionLine(jsonArticleObject.sku, jsonArticleObject.quantity);
|
|
8105
|
+
const handled = yield this.handleLineOperationStatuses(response, true);
|
|
8106
|
+
if (handled && jsonArticleObject.price !== undefined) {
|
|
8107
|
+
yield this.updatePriceTransactionLine(response.transactionInfo.uuid, response.lineOperationStatuses[0].uuid, jsonArticleObject.price);
|
|
8108
|
+
}
|
|
8109
|
+
});
|
|
8110
|
+
}
|
|
8111
|
+
addExternalCatalogArticleWithRawData(catalogId, jsonArticleString) {
|
|
8112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8113
|
+
const created = yield this._checkAndCreateTransaction();
|
|
8114
|
+
if (!created) {
|
|
8115
|
+
return null;
|
|
8116
|
+
}
|
|
8117
|
+
const lockSuccess = yield this.tryToLockTransaction(this.currentTransaction.transactionInfo.id, this.currentTransaction.transactionInfo.version);
|
|
8118
|
+
if (lockSuccess) {
|
|
8119
|
+
this.transactionLineAdded = true;
|
|
8120
|
+
const response = yield this.connector.addExternalCatalogArticlesToTransaction(this.currentTransaction.transactionInfo.uuid, catalogId, jsonArticleString);
|
|
8121
|
+
yield this.handleLineOperationStatuses(response, true);
|
|
8083
8122
|
}
|
|
8084
8123
|
});
|
|
8085
8124
|
}
|
|
@@ -15013,23 +15052,25 @@ TransactionPurchaseOverviewLineComponent.decorators = [
|
|
|
15013
15052
|
<co-transaction-line-vat-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-vat-button>
|
|
15014
15053
|
</div>
|
|
15015
15054
|
</div>
|
|
15016
|
-
<div class="transaction-line-
|
|
15017
|
-
<
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15021
|
-
|
|
15022
|
-
|
|
15023
|
-
|
|
15024
|
-
|
|
15025
|
-
<
|
|
15055
|
+
<div class="transaction-line-section">
|
|
15056
|
+
<div class="transaction-line-totals">
|
|
15057
|
+
<co-transaction-line-price class="transaction-line-totals-price price"
|
|
15058
|
+
[transactionInfo]="transactionInfo"
|
|
15059
|
+
[transactionLine]="transactionLine"
|
|
15060
|
+
[showLabel]="false"
|
|
15061
|
+
[defaultEditMode]="false"
|
|
15062
|
+
></co-transaction-line-price>
|
|
15063
|
+
<co-transaction-line-discount-button [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-discount-button>
|
|
15064
|
+
<div class="transaction-line-totals-amount">
|
|
15065
|
+
<co-transaction-line-amount class="amount-number-picker" [transactionLine]="transactionLine" [transactionInfo]="transactionInfo"></co-transaction-line-amount>
|
|
15066
|
+
</div>
|
|
15067
|
+
<co-editable-label class="transaction-line-totals-total price"
|
|
15068
|
+
[model]="transactionLine.displayNetLineTotal | coCurrency"
|
|
15069
|
+
[editModel]="transactionLine.displayNetLineTotal"
|
|
15070
|
+
[readonly]="true"
|
|
15071
|
+
[commit]="!readonly"
|
|
15072
|
+
></co-editable-label>
|
|
15026
15073
|
</div>
|
|
15027
|
-
<co-editable-label class="transaction-line-totals-total price"
|
|
15028
|
-
[model]="transactionLine.displayNetLineTotal | coCurrency"
|
|
15029
|
-
[editModel]="transactionLine.displayNetLineTotal"
|
|
15030
|
-
[readonly]="true"
|
|
15031
|
-
[commit]="!readonly"
|
|
15032
|
-
></co-editable-label>
|
|
15033
15074
|
</div>
|
|
15034
15075
|
</div>
|
|
15035
15076
|
</co-transaction-base-line>
|
|
@@ -16789,7 +16830,7 @@ class TransactionMappingService {
|
|
|
16789
16830
|
{ title: 'CONFIRMATION', icon: Icon.MemoCircleCheckRegular, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation, component: TransactionPurchaseConfirmationButtonBarButtonComponent },
|
|
16790
16831
|
// {title: 'TRANSPORT', icon: Icon.TruckContainerSolid, category: TransactionTypeCategory.PurchaseOrderTransport},
|
|
16791
16832
|
{ title: 'RECEIVED', icon: Icon.CartFlatbedBoxesSolid, category: TransactionTypeCategory.PurchaseOrderReceivedGoods, component: TransactionPurchaseReceiveGoodsButtonBarButtonComponent },
|
|
16792
|
-
{ title: 'INVOICE_CHECK', icon: Icon.
|
|
16833
|
+
{ title: 'INVOICE_CHECK', icon: Icon.Invoice, category: TransactionTypeCategory.PurchaseOrderInvoiceCheck, component: TransactionPurchaseInvoiceButtonBarButtonComponent }
|
|
16793
16834
|
]],
|
|
16794
16835
|
[TransactionKind.SalesOrder, [
|
|
16795
16836
|
{ title: 'OVERVIEW', icon: Icon.CartShoppingRegular, category: TransactionTypeCategory.SalesOrderOverview, component: TransactionSalesOverviewButtonBarButtonComponent },
|
|
@@ -30364,7 +30405,6 @@ DialogCatalogComponent.propDecorators = {
|
|
|
30364
30405
|
showClass: [{ type: HostBinding, args: ["class.co-dialog-catalog",] }]
|
|
30365
30406
|
};
|
|
30366
30407
|
|
|
30367
|
-
// import {IoneProductModule} from '@colijnit/product';
|
|
30368
30408
|
class DialogCatalogModule {
|
|
30369
30409
|
}
|
|
30370
30410
|
DialogCatalogModule.decorators = [
|
|
@@ -30377,9 +30417,7 @@ DialogCatalogModule.decorators = [
|
|
|
30377
30417
|
PipeModule,
|
|
30378
30418
|
CatalogExternalSourceModule,
|
|
30379
30419
|
IconModule,
|
|
30380
|
-
IoneProductModule
|
|
30381
|
-
/*,
|
|
30382
|
-
IoneProductModule*/
|
|
30420
|
+
IoneProductModule
|
|
30383
30421
|
],
|
|
30384
30422
|
declarations: [
|
|
30385
30423
|
DialogCatalogComponent
|