@colijnit/transaction 12.1.143 → 12.1.144
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 +55 -9
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/service/transaction.service.js +28 -4
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +29 -5
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/service/transaction.service.d.ts +3 -0
- package/package.json +4 -4
|
@@ -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 = "22-9-2023
|
|
6
|
+
this.symVer = "12.1.144";
|
|
7
|
+
this.publishDate = "22-9-2023 10:55:01";
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNhY3Rpb24tdmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RyYW5zYWN0aW9uL3NyYy9saWIvdHJhbnNhY3Rpb24tdmVyc2lvbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1REFBdUQ7QUFDdkQsTUFBTSxPQUFPLE9BQU87SUFBcEI7UUFDUyxTQUFJLEdBQUcsdUJBQXVCLENBQUM7UUFDL0IsZ0JBQVcsR0FBRywrQkFBK0IsQ0FBQztRQUM5QyxXQUFNLEdBQUcsVUFBVSxDQUFDO1FBQ3BCLGdCQUFXLEdBQUcsb0JBQW9CLENBQUM7SUFDNUMsQ0FBQztDQUFBIiwic291cmNlc0NvbnRlbnQiOlsiLy8gdGhpcyBmaWxlIGlzIGR5bmFtaWNhbGx5IGNyZWF0ZWQsIGRvIG5vdCBjaGFuZ2UgdGhpc1xuZXhwb3J0IGNsYXNzIFZlcnNpb24ge1xuICBwdWJsaWMgbmFtZSA9IFwiQGNvbGlqbml0L3RyYW5zYWN0aW9uXCI7XG4gIHB1YmxpYyBkZXNjcmlwdGlvbiA9IFwiQ29saWpuIElUIHRyYW5zYWN0aW9uIHBhY2thZ2VcIjtcbiAgcHVibGljIHN5bVZlciA9IFwiMTIuMS4xNDRcIjtcbiAgcHVibGljIHB1Ymxpc2hEYXRlID0gXCIyMi05LTIwMjMgMTA6NTU6MDFcIjtcbn0iXX0=
|
|
@@ -109,6 +109,7 @@ import { GoodsToBePickedForOrderRequestLine } from '@colijnit/transactionapi/bui
|
|
|
109
109
|
import { GoodsPickedRequest } from '@colijnit/transactionapi/build/model/goods-picked-request';
|
|
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
|
+
import { IFrameCatalogType } from '@colijnit/transactionapi/build/enum/iframe-catalog-types.enum';
|
|
112
113
|
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';
|
|
113
114
|
import { FlexModule } from '@angular/flex-layout';
|
|
114
115
|
import { AddressType } from '@colijnit/relationapi/build/enum/address-type.enum';
|
|
@@ -195,8 +196,8 @@ class Version {
|
|
|
195
196
|
constructor() {
|
|
196
197
|
this.name = "@colijnit/transaction";
|
|
197
198
|
this.description = "Colijn IT transaction package";
|
|
198
|
-
this.symVer = "12.1.
|
|
199
|
-
this.publishDate = "22-9-2023
|
|
199
|
+
this.symVer = "12.1.144";
|
|
200
|
+
this.publishDate = "22-9-2023 10:55:01";
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
|
|
@@ -7901,19 +7902,30 @@ class TransactionService extends PendingReasonService {
|
|
|
7901
7902
|
});
|
|
7902
7903
|
}
|
|
7903
7904
|
addArticle(articleNo, quantity = 1, aboveLineNr = 0, belowLineNr = 0, saveTransaction = true) {
|
|
7905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7906
|
+
const response = yield this.addTransactionLine(articleNo, quantity, aboveLineNr, belowLineNr);
|
|
7907
|
+
if (response !== null) {
|
|
7908
|
+
return this.handleLineOperationStatuses(response, saveTransaction);
|
|
7909
|
+
}
|
|
7910
|
+
else {
|
|
7911
|
+
return false;
|
|
7912
|
+
}
|
|
7913
|
+
});
|
|
7914
|
+
}
|
|
7915
|
+
addTransactionLine(articleNo, quantity = 1, aboveLineNr = 0, belowLineNr = 0) {
|
|
7904
7916
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7905
7917
|
const created = yield this._checkAndCreateTransaction();
|
|
7906
7918
|
if (!created) {
|
|
7907
|
-
return
|
|
7919
|
+
return null;
|
|
7908
7920
|
}
|
|
7909
7921
|
const lockSuccess = yield this.tryToLockTransaction(this.currentTransaction.transactionInfo.id, this.currentTransaction.transactionInfo.version);
|
|
7910
7922
|
if (lockSuccess) {
|
|
7911
7923
|
this.transactionLineAdded = true;
|
|
7912
7924
|
const response = yield this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, articleNo, quantity, aboveLineNr, belowLineNr);
|
|
7913
|
-
return
|
|
7925
|
+
return response;
|
|
7914
7926
|
}
|
|
7915
7927
|
else {
|
|
7916
|
-
return
|
|
7928
|
+
return null;
|
|
7917
7929
|
}
|
|
7918
7930
|
});
|
|
7919
7931
|
}
|
|
@@ -7925,6 +7937,18 @@ class TransactionService extends PendingReasonService {
|
|
|
7925
7937
|
yield this.addArticle(artNr, jsonArticleObject.quantity);
|
|
7926
7938
|
});
|
|
7927
7939
|
}
|
|
7940
|
+
addIFrameArticle(request) {
|
|
7941
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7942
|
+
const jsonArticleObject = JSON.parse(request.articleJson);
|
|
7943
|
+
if (request.catalogType === IFrameCatalogType.Webshop) {
|
|
7944
|
+
const response = yield this.addTransactionLine(jsonArticleObject.sku, jsonArticleObject.quantity);
|
|
7945
|
+
const handled = yield this.handleLineOperationStatuses(response, true);
|
|
7946
|
+
if (handled) {
|
|
7947
|
+
yield this.updatePriceTransactionLine(response.transactionInfo.uuid, response.lineOperationStatuses[0].uuid, jsonArticleObject.price);
|
|
7948
|
+
}
|
|
7949
|
+
}
|
|
7950
|
+
});
|
|
7951
|
+
}
|
|
7928
7952
|
addTextLine(showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
7929
7953
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7930
7954
|
const created = yield this._checkAndCreateTransaction();
|