@colijnit/transaction 257.1.37 → 257.1.38
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 +34 -28
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction-257.1.35.tgz +0 -0
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-purchase/transaction-quick-access-order-purchase.component.js +14 -8
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +15 -9
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +1 -1
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "257.1.
|
|
37
|
-
this.publishDate = "27
|
|
36
|
+
this.symVer = "257.1.38";
|
|
37
|
+
this.publishDate = "27-3-2025 17:59:32";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -26696,44 +26696,50 @@
|
|
|
26696
26696
|
TransactionQuickAccessOrderPurchaseComponent.prototype.handleSend = function (method) {
|
|
26697
26697
|
return __awaiter(this, void 0, void 0, function () {
|
|
26698
26698
|
var isPrintDefaultMethod;
|
|
26699
|
-
return __generator(this, function (
|
|
26700
|
-
switch (
|
|
26699
|
+
return __generator(this, function (_g) {
|
|
26700
|
+
switch (_g.label) {
|
|
26701
26701
|
case 0: return [4 /*yield*/, this.transactionService.isPrintIsDefaultSendMethodForPurchaseOrder(this.transactionInfo.id)];
|
|
26702
26702
|
case 1:
|
|
26703
|
-
isPrintDefaultMethod =
|
|
26703
|
+
isPrintDefaultMethod = _g.sent();
|
|
26704
26704
|
if (!isPrintDefaultMethod) return [3 /*break*/, 2];
|
|
26705
26705
|
this.showSendMethodDialog = true;
|
|
26706
26706
|
this.changeDetector.detectChanges();
|
|
26707
26707
|
return [3 /*break*/, 4];
|
|
26708
26708
|
case 2: return [4 /*yield*/, this.printDocument(this.reportDocumentPrintRequest)];
|
|
26709
26709
|
case 3:
|
|
26710
|
-
|
|
26710
|
+
_g.sent();
|
|
26711
26711
|
this._setDefaultMethod(method);
|
|
26712
|
-
|
|
26712
|
+
_g.label = 4;
|
|
26713
26713
|
case 4: return [2 /*return*/];
|
|
26714
26714
|
}
|
|
26715
26715
|
});
|
|
26716
26716
|
});
|
|
26717
26717
|
};
|
|
26718
26718
|
TransactionQuickAccessOrderPurchaseComponent.prototype.handleSendMethodOkClick = function (methodData) {
|
|
26719
|
-
var _a, _b, _c, _d;
|
|
26719
|
+
var _a, _b, _c, _d, _e, _f;
|
|
26720
26720
|
return __awaiter(this, void 0, void 0, function () {
|
|
26721
|
-
return __generator(this, function (
|
|
26722
|
-
switch (
|
|
26721
|
+
return __generator(this, function (_g) {
|
|
26722
|
+
switch (_g.label) {
|
|
26723
26723
|
case 0:
|
|
26724
26724
|
this.showSendMethodDialog = false;
|
|
26725
26725
|
this.useDefaultLayout = methodData.useDefaultLayout;
|
|
26726
26726
|
this.useDefaultShippingMethods = methodData.useDefaultShippingMethods;
|
|
26727
26727
|
this.saveDefaultPrinterForUser = methodData.saveDefaultPrinterForUser;
|
|
26728
26728
|
this.saveDefaultPrinterForAllUsers = methodData.saveDefaultPrinterForAllUsers;
|
|
26729
|
+
this.reportIdForPrinting = (_a = methodData.reportIdForPrinting) === null || _a === void 0 ? void 0 : _a.reportId;
|
|
26730
|
+
this.reportIdForEmail = (_b = methodData.reportIdForEmail) === null || _b === void 0 ? void 0 : _b.reportId;
|
|
26729
26731
|
if (!this.useDefaultShippingMethods) {
|
|
26730
26732
|
this.overruledEmail = methodData.overruledEmail;
|
|
26731
26733
|
this.overruledEdi = methodData.overruledEdi;
|
|
26732
26734
|
this.overruledPrint = methodData.overruledPrint;
|
|
26733
26735
|
}
|
|
26734
26736
|
if (!this.useDefaultLayout) {
|
|
26735
|
-
this.reportIdForPrinting
|
|
26736
|
-
|
|
26737
|
+
if (this.reportIdForPrinting) {
|
|
26738
|
+
this.printPurchaseOrderForSalesOrderRequest.reportIdForPrinting = this.reportIdForPrinting;
|
|
26739
|
+
}
|
|
26740
|
+
if (this.reportIdForEmail) {
|
|
26741
|
+
this.printPurchaseOrderForSalesOrderRequest.reportIdForEmail = this.reportIdForEmail;
|
|
26742
|
+
}
|
|
26737
26743
|
}
|
|
26738
26744
|
if (methodData.printerName) {
|
|
26739
26745
|
this.selectedPrinter = this.printerList.find(function (p) { return p.name === methodData.printerName; }) || null;
|
|
@@ -26742,11 +26748,11 @@
|
|
|
26742
26748
|
this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificSendMethods = this.useDefaultShippingMethods;
|
|
26743
26749
|
this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForUser = this.saveDefaultPrinterForUser;
|
|
26744
26750
|
this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForAllUsers = this.saveDefaultPrinterForAllUsers;
|
|
26745
|
-
this.printPurchaseOrderForSalesOrderRequest.printerName = ((
|
|
26751
|
+
this.printPurchaseOrderForSalesOrderRequest.printerName = ((_c = this.selectedPrinter) === null || _c === void 0 ? void 0 : _c.name) || null;
|
|
26746
26752
|
if (!this.useDefaultShippingMethods) {
|
|
26747
|
-
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEmail = (
|
|
26748
|
-
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForPrinting = (
|
|
26749
|
-
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEDI = (
|
|
26753
|
+
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEmail = (_d = this.overruledEmail) === null || _d === void 0 ? void 0 : _d.code;
|
|
26754
|
+
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForPrinting = (_e = this.overruledPrint) === null || _e === void 0 ? void 0 : _e.code;
|
|
26755
|
+
this.printPurchaseOrderForSalesOrderRequest.overruleSendMethodForEDI = (_f = this.overruledEdi) === null || _f === void 0 ? void 0 : _f.code;
|
|
26750
26756
|
}
|
|
26751
26757
|
if (!this.useDefaultLayout) {
|
|
26752
26758
|
this.printPurchaseOrderForSalesOrderRequest.reportIdForPrinting = this.reportIdForPrinting;
|
|
@@ -26754,7 +26760,7 @@
|
|
|
26754
26760
|
}
|
|
26755
26761
|
return [4 /*yield*/, this.printDocument(this.reportDocumentPrintRequest)];
|
|
26756
26762
|
case 1:
|
|
26757
|
-
|
|
26763
|
+
_g.sent();
|
|
26758
26764
|
this._setDefaultMethod(this.defaultSendMethod);
|
|
26759
26765
|
return [2 /*return*/];
|
|
26760
26766
|
}
|
|
@@ -26764,22 +26770,22 @@
|
|
|
26764
26770
|
TransactionQuickAccessOrderPurchaseComponent.prototype.handleReservationModeClick = function () {
|
|
26765
26771
|
var _a, _b;
|
|
26766
26772
|
return __awaiter(this, void 0, void 0, function () {
|
|
26767
|
-
return __generator(this, function (
|
|
26768
|
-
switch (
|
|
26773
|
+
return __generator(this, function (_g) {
|
|
26774
|
+
switch (_g.label) {
|
|
26769
26775
|
case 0:
|
|
26770
26776
|
if (!((_b = (_a = this.transaction) === null || _a === void 0 ? void 0 : _a.transactionInfo) === null || _b === void 0 ? void 0 : _b.id)) return [3 /*break*/, 4];
|
|
26771
26777
|
if (!!this.transactionHeaderService.reservationMode) return [3 /*break*/, 2];
|
|
26772
26778
|
return [4 /*yield*/, this.salesReservationService.getSalesOrderLines(this.transaction.transactionInfo.id)];
|
|
26773
26779
|
case 1:
|
|
26774
|
-
|
|
26780
|
+
_g.sent();
|
|
26775
26781
|
return [3 /*break*/, 3];
|
|
26776
26782
|
case 2:
|
|
26777
26783
|
this.salesReservationService.purchaseReservations = [];
|
|
26778
|
-
|
|
26784
|
+
_g.label = 3;
|
|
26779
26785
|
case 3:
|
|
26780
26786
|
this.transactionHeaderService.reservationMode = !this.transactionHeaderService.reservationMode;
|
|
26781
26787
|
this.transactionHeaderService.reservationStateChange.next(this.transactionHeaderService.reservationMode);
|
|
26782
|
-
|
|
26788
|
+
_g.label = 4;
|
|
26783
26789
|
case 4:
|
|
26784
26790
|
this.changeDetector.detectChanges();
|
|
26785
26791
|
return [2 /*return*/];
|
|
@@ -26813,15 +26819,15 @@
|
|
|
26813
26819
|
TransactionQuickAccessOrderPurchaseComponent.prototype.getDefaultSendMethod = function () {
|
|
26814
26820
|
return __awaiter(this, void 0, void 0, function () {
|
|
26815
26821
|
var defaultMethodNumber;
|
|
26816
|
-
return __generator(this, function (
|
|
26817
|
-
switch (
|
|
26822
|
+
return __generator(this, function (_g) {
|
|
26823
|
+
switch (_g.label) {
|
|
26818
26824
|
case 0:
|
|
26819
26825
|
if (this.defaultSendMethodInitialized) {
|
|
26820
26826
|
return [2 /*return*/, parseInt(this.defaultSendMethod)];
|
|
26821
26827
|
}
|
|
26822
26828
|
return [4 /*yield*/, this.transactionService.isPrintIsDefaultSendMethodForPurchaseOrder(this.transactionInfo.id)];
|
|
26823
26829
|
case 1:
|
|
26824
|
-
defaultMethodNumber = (
|
|
26830
|
+
defaultMethodNumber = (_g.sent()) ? 1 : 2;
|
|
26825
26831
|
this.defaultSendMethod = defaultMethodNumber.toString();
|
|
26826
26832
|
this.defaultSendMethodInitialized = true;
|
|
26827
26833
|
return [2 /*return*/, defaultMethodNumber];
|
|
@@ -26843,8 +26849,8 @@
|
|
|
26843
26849
|
var _a, _b;
|
|
26844
26850
|
return __awaiter(this, void 0, void 0, function () {
|
|
26845
26851
|
var printPurchaseOrderForSalesOrderRequest$1;
|
|
26846
|
-
return __generator(this, function (
|
|
26847
|
-
switch (
|
|
26852
|
+
return __generator(this, function (_g) {
|
|
26853
|
+
switch (_g.label) {
|
|
26848
26854
|
case 0:
|
|
26849
26855
|
printPurchaseOrderForSalesOrderRequest$1 = Object.assign(new printPurchaseOrderForSalesOrderRequest.PrintPurchaseOrderForSalesOrderRequest(), request);
|
|
26850
26856
|
printPurchaseOrderForSalesOrderRequest$1.useRelationSpecificReports = (_a = this.printPurchaseOrderForSalesOrderRequest.useRelationSpecificReports) !== null && _a !== void 0 ? _a : true;
|
|
@@ -26858,7 +26864,7 @@
|
|
|
26858
26864
|
printPurchaseOrderForSalesOrderRequest$1.saveDefaultPrinterForAllUsers = this.printPurchaseOrderForSalesOrderRequest.saveDefaultPrinterForAllUsers;
|
|
26859
26865
|
return [4 /*yield*/, this.transactionService.generateAndSendPurchaseOrdersForSalesOrder(printPurchaseOrderForSalesOrderRequest$1, this.transactionInfo.version)];
|
|
26860
26866
|
case 1:
|
|
26861
|
-
|
|
26867
|
+
_g.sent();
|
|
26862
26868
|
return [2 /*return*/];
|
|
26863
26869
|
}
|
|
26864
26870
|
});
|