@colijnit/transactionapi 1.1.33 → 1.1.35
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/build/enum/master-data-operation-name.enum.d.ts +3 -0
- package/build/enum/master-data-operation-name.enum.js +4 -0
- package/build/enum/payment-method.enum.d.ts +2 -1
- package/build/enum/payment-method.enum.js +1 -0
- package/build/enum/transaction-method.enum.d.ts +1 -0
- package/build/enum/transaction-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +4 -1
- package/build/model/change-line-good-description-request.d.ts +5 -0
- package/build/model/change-line-good-description-request.js +6 -0
- package/build/model/doc-delivery-batch.bo.d.ts +2 -2
- package/build/model/relation.bo.d.ts +1 -0
- package/build/model/relation.bo.js +7 -0
- package/build/model/transaction-info.bo.d.ts +2 -0
- package/build/model/transaction-info.bo.js +5 -0
- package/build/model/transaction-line-info.bo.d.ts +2 -0
- package/build/model/transaction-line-info.bo.js +8 -0
- package/build/model/transaction-payment-info.bo.d.ts +5 -0
- package/build/model/transaction-payment-info.bo.js +22 -0
- package/build/transaction-auth.d.ts +5 -2
- package/build/transaction-auth.js +26 -4
- package/build/transaction-public.d.ts +4 -1
- package/build/transaction-public.js +9 -1
- package/build/transaction.d.ts +4 -1
- package/build/transaction.js +8 -2
- package/build/transaction.unit.test.js +55 -78
- package/package.json +1 -1
|
@@ -2,5 +2,6 @@ export declare enum PaymentMethod {
|
|
|
2
2
|
CreateOutstandingEntry = "createOutstandingEntry",
|
|
3
3
|
RegisterSalesOrderPayment = "registerSalesOrderPayment",
|
|
4
4
|
CreateIonePaymentLinkAndQRCode = "createIonePaymentLinkAndQRCode",
|
|
5
|
-
GetPaymentLinkStatus = "getPaymentLinkStatus"
|
|
5
|
+
GetPaymentLinkStatus = "getPaymentLinkStatus",
|
|
6
|
+
GetPaymentMethodsForSalesOrder = "getPaymentMethodsForSalesOrder"
|
|
6
7
|
}
|
|
@@ -4,4 +4,5 @@ export var PaymentMethod;
|
|
|
4
4
|
PaymentMethod["RegisterSalesOrderPayment"] = "registerSalesOrderPayment";
|
|
5
5
|
PaymentMethod["CreateIonePaymentLinkAndQRCode"] = "createIonePaymentLinkAndQRCode";
|
|
6
6
|
PaymentMethod["GetPaymentLinkStatus"] = "getPaymentLinkStatus";
|
|
7
|
+
PaymentMethod["GetPaymentMethodsForSalesOrder"] = "getPaymentMethodsForSalesOrder";
|
|
7
8
|
})(PaymentMethod || (PaymentMethod = {}));
|
|
@@ -28,6 +28,7 @@ export declare enum TransactionMethod {
|
|
|
28
28
|
ChangeLineSupplierArticleNumber = "changeLineSupplierArticleNumber",
|
|
29
29
|
ChangeLineReference = "changeLineReference",
|
|
30
30
|
ChangeLineCollectionCode = "changeLineCollectionCode",
|
|
31
|
+
ChangeLineGoodDescription = "changeLineGoodDescription",
|
|
31
32
|
ChangeLineWarehouse = "changeLineWarehouse",
|
|
32
33
|
GetGoodsReceiptStatusWithHistory = "getGoodsReceiptStatusWithHistory",
|
|
33
34
|
GetGoodsReceiptStatus = "getGoodsReceiptStatus",
|
|
@@ -29,6 +29,7 @@ export var TransactionMethod;
|
|
|
29
29
|
TransactionMethod["ChangeLineSupplierArticleNumber"] = "changeLineSupplierArticleNumber";
|
|
30
30
|
TransactionMethod["ChangeLineReference"] = "changeLineReference";
|
|
31
31
|
TransactionMethod["ChangeLineCollectionCode"] = "changeLineCollectionCode";
|
|
32
|
+
TransactionMethod["ChangeLineGoodDescription"] = "changeLineGoodDescription";
|
|
32
33
|
TransactionMethod["ChangeLineWarehouse"] = "changeLineWarehouse";
|
|
33
34
|
TransactionMethod["GetGoodsReceiptStatusWithHistory"] = "getGoodsReceiptStatusWithHistory";
|
|
34
35
|
TransactionMethod["GetGoodsReceiptStatus"] = "getGoodsReceiptStatus";
|
|
@@ -57,6 +57,7 @@ import { ChangeHeaderReleaseTransactionRequest } from './model/change-header-rel
|
|
|
57
57
|
import { ChangeHeaderDontSendOrderFormsRequest } from './model/change-header-dont-send-order-forms-request';
|
|
58
58
|
import { ChangeHeaderDeliveryOptionsRequest } from './model/change-header-delivery-options-request';
|
|
59
59
|
import { ChangeHeaderOnHoldCodesRequest } from './model/change-header-on-hold-codes-request';
|
|
60
|
+
import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-description-request';
|
|
60
61
|
export declare abstract class IoneApiTransaction {
|
|
61
62
|
readonly showLoader: Subject<boolean>;
|
|
62
63
|
readonly connectionAborted: Subject<void>;
|
|
@@ -117,6 +118,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
117
118
|
abstract createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
118
119
|
abstract getPaymentLinkStatus(paymentLinkUUID: string): Promise<DataServiceResponseData>;
|
|
119
120
|
abstract getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
121
|
+
abstract getPaymentMethodsForSalesOrder(): Promise<DataServiceResponseData>;
|
|
120
122
|
abstract changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
121
123
|
abstract changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
122
124
|
abstract changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
@@ -132,6 +134,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
132
134
|
abstract changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
133
135
|
abstract changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
134
136
|
abstract changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
137
|
+
abstract changeLineGoodDescription(request: ChangeLineGoodDescriptionRequest): Promise<DataServiceResponseData>;
|
|
135
138
|
abstract changeHeaderDeliveryDate(request: ChangeHeaderDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
136
139
|
abstract changeHeaderDeliveryDateDefinitive(request: ChangeHeaderDeliveryDateDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
137
140
|
abstract changeHeaderPartialDeliveryAllowed(request: ChangeHeaderPartialDeliveryAllowedRequest): Promise<DataServiceResponseData>;
|
|
@@ -162,7 +165,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
162
165
|
abstract receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
163
166
|
abstract getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
164
167
|
abstract updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
165
|
-
abstract lockPurchasePortalLines(
|
|
168
|
+
abstract lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
|
|
166
169
|
abstract deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
167
170
|
abstract getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
168
171
|
protected endPoint: string;
|
|
@@ -3,8 +3,8 @@ export declare class DocDeliveryBatch extends BusinessObject {
|
|
|
3
3
|
deliveryBatch: string;
|
|
4
4
|
docAmountOrg: number;
|
|
5
5
|
docAmount: number;
|
|
6
|
-
docDateOrg:
|
|
7
|
-
docDate:
|
|
6
|
+
docDateOrg: Date;
|
|
7
|
+
docDate: Date;
|
|
8
8
|
reference: string;
|
|
9
9
|
confirmedPrice: number;
|
|
10
10
|
deleteLine: string;
|
|
@@ -69,6 +69,7 @@ export declare class Relation extends BusinessObject {
|
|
|
69
69
|
vatType: VatType;
|
|
70
70
|
get displayName(): string;
|
|
71
71
|
get displayInitials(): string;
|
|
72
|
+
get activeAddresses(): Address[];
|
|
72
73
|
get displayFirstAddress(): string;
|
|
73
74
|
get displayFirstOrganisation(): string;
|
|
74
75
|
get displayFirstPostal(): string;
|
|
@@ -75,6 +75,13 @@ var Relation = (function (_super) {
|
|
|
75
75
|
enumerable: true,
|
|
76
76
|
configurable: true
|
|
77
77
|
});
|
|
78
|
+
Object.defineProperty(Relation.prototype, "activeAddresses", {
|
|
79
|
+
get: function () {
|
|
80
|
+
return (this.addresses && this.addresses.length > 0) ? this.addresses.filter(function (a) { return a.isActive; }) : [];
|
|
81
|
+
},
|
|
82
|
+
enumerable: true,
|
|
83
|
+
configurable: true
|
|
84
|
+
});
|
|
78
85
|
Object.defineProperty(Relation.prototype, "displayFirstAddress", {
|
|
79
86
|
get: function () {
|
|
80
87
|
if (!this.addresses) {
|
|
@@ -2,6 +2,7 @@ import { BusinessObject } from './business-object';
|
|
|
2
2
|
import { TransactionKind } from '../enum/transaction-kind.enum';
|
|
3
3
|
import { RelationSmallObject } from './relation-small-object.bo';
|
|
4
4
|
import { PriceType } from '../enum/refcode/price-type.enum';
|
|
5
|
+
import { TransactionPaymentInfo } from './transaction-payment-info.bo';
|
|
5
6
|
export declare class TransactionInfo extends BusinessObject {
|
|
6
7
|
uuid: string;
|
|
7
8
|
id: number;
|
|
@@ -30,6 +31,7 @@ export declare class TransactionInfo extends BusinessObject {
|
|
|
30
31
|
transactionAddress: number;
|
|
31
32
|
invoiceAddress: number;
|
|
32
33
|
relationTransactionDate: Date;
|
|
34
|
+
paymentInfo: TransactionPaymentInfo;
|
|
33
35
|
messages: string[];
|
|
34
36
|
deliveryOptions: string[];
|
|
35
37
|
canPlanDelivery: boolean;
|
|
@@ -25,6 +25,7 @@ import { DateField } from '../factory/decorators/date-field.decorator';
|
|
|
25
25
|
import { ComplexField } from '../factory/decorators/complex-field.decorator';
|
|
26
26
|
import { RelationSmallObject } from './relation-small-object.bo';
|
|
27
27
|
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
28
|
+
import { TransactionPaymentInfo } from './transaction-payment-info.bo';
|
|
28
29
|
var TransactionInfo = (function (_super) {
|
|
29
30
|
__extends(TransactionInfo, _super);
|
|
30
31
|
function TransactionInfo() {
|
|
@@ -65,6 +66,10 @@ var TransactionInfo = (function (_super) {
|
|
|
65
66
|
DateField(),
|
|
66
67
|
__metadata("design:type", Date)
|
|
67
68
|
], TransactionInfo.prototype, "relationTransactionDate", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
ComplexField(TransactionPaymentInfo),
|
|
71
|
+
__metadata("design:type", TransactionPaymentInfo)
|
|
72
|
+
], TransactionInfo.prototype, "paymentInfo", void 0);
|
|
68
73
|
__decorate([
|
|
69
74
|
NoDbField(),
|
|
70
75
|
__metadata("design:type", Boolean)
|
|
@@ -20,6 +20,7 @@ export declare class TransactionLineInfo extends BusinessObject {
|
|
|
20
20
|
amount: number;
|
|
21
21
|
price: number;
|
|
22
22
|
priceListCode: string;
|
|
23
|
+
priceListDescription: string;
|
|
23
24
|
lineDiscount: number;
|
|
24
25
|
lineDiscountCode: string;
|
|
25
26
|
lineDiscountReason: string;
|
|
@@ -36,6 +37,7 @@ export declare class TransactionLineInfo extends BusinessObject {
|
|
|
36
37
|
assemblyCost: number;
|
|
37
38
|
vatId: number;
|
|
38
39
|
vatCode: string;
|
|
40
|
+
vatDescription: string;
|
|
39
41
|
priceDeclaration: string;
|
|
40
42
|
netto: boolean;
|
|
41
43
|
warehouseNumber: number;
|
|
@@ -86,6 +86,14 @@ var TransactionLineInfo = (function (_super) {
|
|
|
86
86
|
enumerable: true,
|
|
87
87
|
configurable: true
|
|
88
88
|
});
|
|
89
|
+
__decorate([
|
|
90
|
+
NoDbField(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TransactionLineInfo.prototype, "priceListDescription", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
NoDbField(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], TransactionLineInfo.prototype, "vatDescription", void 0);
|
|
89
97
|
__decorate([
|
|
90
98
|
NoDbField(),
|
|
91
99
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
import { BusinessObject } from './business-object';
|
|
15
|
+
var TransactionPaymentInfo = (function (_super) {
|
|
16
|
+
__extends(TransactionPaymentInfo, _super);
|
|
17
|
+
function TransactionPaymentInfo() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return TransactionPaymentInfo;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { TransactionPaymentInfo };
|
|
@@ -56,6 +56,7 @@ import { ChangeHeaderReleaseTransactionRequest } from './model/change-header-rel
|
|
|
56
56
|
import { ChangeHeaderDontSendOrderFormsRequest } from './model/change-header-dont-send-order-forms-request';
|
|
57
57
|
import { ChangeHeaderDeliveryOptionsRequest } from './model/change-header-delivery-options-request';
|
|
58
58
|
import { ChangeHeaderOnHoldCodesRequest } from './model/change-header-on-hold-codes-request';
|
|
59
|
+
import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-description-request';
|
|
59
60
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
60
61
|
private _boSerializer;
|
|
61
62
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -106,6 +107,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
106
107
|
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
107
108
|
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
108
109
|
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
110
|
+
changeLineGoodDescription(request: ChangeLineGoodDescriptionRequest): Promise<DataServiceResponseData>;
|
|
109
111
|
changeHeaderDeliveryDate(request: ChangeHeaderDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
110
112
|
changeHeaderDeliveryDateDefinitive(request: ChangeHeaderDeliveryDateDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
111
113
|
changeHeaderPartialDeliveryAllowed(request: ChangeHeaderPartialDeliveryAllowedRequest): Promise<DataServiceResponseData>;
|
|
@@ -149,13 +151,14 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
149
151
|
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
150
152
|
getPaymentLinkStatus(paymentLinkUUID: string): Promise<DataServiceResponseData>;
|
|
151
153
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
154
|
+
getPaymentMethodsForSalesOrder(): Promise<DataServiceResponseData>;
|
|
152
155
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
153
156
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
154
157
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
155
158
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
156
159
|
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
157
|
-
updatePurchasePortalLines(
|
|
158
|
-
lockPurchasePortalLines(
|
|
160
|
+
updatePurchasePortalLines(purchasePortalLine: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
161
|
+
lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
|
|
159
162
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
160
163
|
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
161
164
|
private _getDomainCollection;
|
|
@@ -518,6 +518,15 @@ var TransactionAuth = (function (_super) {
|
|
|
518
518
|
};
|
|
519
519
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
520
520
|
};
|
|
521
|
+
TransactionAuth.prototype.changeLineGoodDescription = function (request) {
|
|
522
|
+
var data = {
|
|
523
|
+
moduleName: ModuleName.Transaction,
|
|
524
|
+
methodName: TransactionMethod.ChangeLineGoodDescription,
|
|
525
|
+
parameterValues: request,
|
|
526
|
+
refCursorAsArray: true,
|
|
527
|
+
};
|
|
528
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
529
|
+
};
|
|
521
530
|
TransactionAuth.prototype.changeHeaderDeliveryDate = function (request) {
|
|
522
531
|
var data = {
|
|
523
532
|
moduleName: ModuleName.Transaction,
|
|
@@ -952,6 +961,15 @@ var TransactionAuth = (function (_super) {
|
|
|
952
961
|
TransactionAuth.prototype.getPaymentMethods = function () {
|
|
953
962
|
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PaymentMethod);
|
|
954
963
|
};
|
|
964
|
+
TransactionAuth.prototype.getPaymentMethodsForSalesOrder = function () {
|
|
965
|
+
var data = {
|
|
966
|
+
moduleName: ModuleName.MasterData,
|
|
967
|
+
methodName: PaymentMethod.GetPaymentMethodsForSalesOrder,
|
|
968
|
+
parameterValues: {},
|
|
969
|
+
refCursorAsArray: true
|
|
970
|
+
};
|
|
971
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
972
|
+
};
|
|
955
973
|
TransactionAuth.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
956
974
|
var paramValues = {
|
|
957
975
|
transId: transId,
|
|
@@ -1012,21 +1030,25 @@ var TransactionAuth = (function (_super) {
|
|
|
1012
1030
|
};
|
|
1013
1031
|
return this.selectMultiple(ModuleName.PurchasePortal, PurchasePortal.PurchaseOrderLine, "", params);
|
|
1014
1032
|
};
|
|
1015
|
-
TransactionAuth.prototype.updatePurchasePortalLines = function (
|
|
1033
|
+
TransactionAuth.prototype.updatePurchasePortalLines = function (purchasePortalLine) {
|
|
1016
1034
|
var data = {
|
|
1017
1035
|
moduleName: ModuleName.PurchasePortal,
|
|
1018
1036
|
objectName: PurchasePortal.PurchaseOrderLine,
|
|
1019
1037
|
refCursorAsArray: true,
|
|
1020
|
-
object:
|
|
1038
|
+
object: purchasePortalLine
|
|
1021
1039
|
};
|
|
1022
1040
|
return this._call(DataServiceMethod.UpdateObject, data);
|
|
1023
1041
|
};
|
|
1024
|
-
TransactionAuth.prototype.lockPurchasePortalLines = function (
|
|
1042
|
+
TransactionAuth.prototype.lockPurchasePortalLines = function (transIdPurchase, lineId) {
|
|
1043
|
+
var params = {
|
|
1044
|
+
transIdPurchase: transIdPurchase,
|
|
1045
|
+
lineId: lineId
|
|
1046
|
+
};
|
|
1025
1047
|
var data = {
|
|
1026
1048
|
moduleName: ModuleName.PurchasePortal,
|
|
1027
1049
|
objectName: PurchasePortal.PurchaseOrderLine,
|
|
1028
1050
|
refCursorAsArray: true,
|
|
1029
|
-
parameterValues:
|
|
1051
|
+
parameterValues: params
|
|
1030
1052
|
};
|
|
1031
1053
|
return this._call(DataServiceMethod.LockObject, data);
|
|
1032
1054
|
};
|
|
@@ -56,6 +56,7 @@ import { ChangeHeaderReleaseTransactionRequest } from './model/change-header-rel
|
|
|
56
56
|
import { ChangeHeaderDontSendOrderFormsRequest } from './model/change-header-dont-send-order-forms-request';
|
|
57
57
|
import { ChangeHeaderDeliveryOptionsRequest } from './model/change-header-delivery-options-request';
|
|
58
58
|
import { ChangeHeaderOnHoldCodesRequest } from './model/change-header-on-hold-codes-request';
|
|
59
|
+
import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-description-request';
|
|
59
60
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
60
61
|
protected endPoint: string;
|
|
61
62
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -104,6 +105,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
104
105
|
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
105
106
|
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
106
107
|
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
108
|
+
changeLineGoodDescription(request: ChangeLineGoodDescriptionRequest): Promise<DataServiceResponseData>;
|
|
107
109
|
changeHeaderDeliveryDate(request: ChangeHeaderDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
108
110
|
changeHeaderDeliveryDateDefinitive(request: ChangeHeaderDeliveryDateDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
109
111
|
changeHeaderPartialDeliveryAllowed(request: ChangeHeaderPartialDeliveryAllowedRequest): Promise<DataServiceResponseData>;
|
|
@@ -150,13 +152,14 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
150
152
|
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
151
153
|
getPaymentLinkStatus(paymentLinkUUID: string): Promise<DataServiceResponseData>;
|
|
152
154
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
155
|
+
getPaymentMethodsForSalesOrder(): Promise<DataServiceResponseData>;
|
|
153
156
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
154
157
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
155
158
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
156
159
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
157
160
|
getPurchasePortalLines(purchaseOrderLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
158
161
|
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
159
|
-
lockPurchasePortalLines(
|
|
162
|
+
lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
|
|
160
163
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
161
164
|
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
162
165
|
private createServiceRequestData;
|
|
@@ -499,6 +499,10 @@ var TransactionPublic = (function (_super) {
|
|
|
499
499
|
console.warn('changeLineCollectionCode not implemented');
|
|
500
500
|
return Promise.resolve(new DataServiceResponseData());
|
|
501
501
|
};
|
|
502
|
+
TransactionPublic.prototype.changeLineGoodDescription = function (request) {
|
|
503
|
+
console.warn('changeLineGoodDescription not implemented');
|
|
504
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
505
|
+
};
|
|
502
506
|
TransactionPublic.prototype.changeHeaderDeliveryDate = function (request) {
|
|
503
507
|
console.warn('changeHeaderDeliveryDate not implemented');
|
|
504
508
|
return Promise.resolve(new DataServiceResponseData());
|
|
@@ -794,6 +798,10 @@ var TransactionPublic = (function (_super) {
|
|
|
794
798
|
console.warn('registerSalesOrderPayment not implemented');
|
|
795
799
|
return Promise.resolve(new DataServiceResponseData());
|
|
796
800
|
};
|
|
801
|
+
TransactionPublic.prototype.getPaymentMethodsForSalesOrder = function () {
|
|
802
|
+
console.warn('getPaymentMethodsForSalesOrder not implemented');
|
|
803
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
804
|
+
};
|
|
797
805
|
TransactionPublic.prototype.getGoodsReceiptStatusWithHistory = function (transId, lineNr) {
|
|
798
806
|
return __awaiter(this, void 0, void 0, function () {
|
|
799
807
|
var data;
|
|
@@ -840,7 +848,7 @@ var TransactionPublic = (function (_super) {
|
|
|
840
848
|
TransactionPublic.prototype.updatePurchasePortalLines = function (request) {
|
|
841
849
|
return null;
|
|
842
850
|
};
|
|
843
|
-
TransactionPublic.prototype.lockPurchasePortalLines = function (
|
|
851
|
+
TransactionPublic.prototype.lockPurchasePortalLines = function (transIdPurchase, lineId) {
|
|
844
852
|
return null;
|
|
845
853
|
};
|
|
846
854
|
TransactionPublic.prototype.deletePurchasePortalLines = function (request) {
|
package/build/transaction.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ import { ChangeHeaderPriceKindRequest } from './model/change-header-price-kind-r
|
|
|
59
59
|
import { ChangeHeaderAdmCoordinatorRequest } from './model/change-header-adm-coordinator-request';
|
|
60
60
|
import { ChangeHeaderMarketingCodeRequest } from './model/change-header-marketing-code-request';
|
|
61
61
|
import { ChangeHeaderCurrencyRequest } from './model/change-header-currency-request';
|
|
62
|
+
import { ChangeLineGoodDescriptionRequest } from './model/change-line-good-description-request';
|
|
62
63
|
export declare class Transaction {
|
|
63
64
|
readonly showLoader: Subject<boolean>;
|
|
64
65
|
readonly connectionAborted: Subject<void>;
|
|
@@ -124,6 +125,7 @@ export declare class Transaction {
|
|
|
124
125
|
changeTransactionLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
125
126
|
changeTransactionLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
126
127
|
changeTransactionLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
128
|
+
changeTransactionLineGoodDescription(request: ChangeLineGoodDescriptionRequest): Promise<DataServiceResponseData>;
|
|
127
129
|
changeHeaderDeliveryDate(request: ChangeHeaderDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
128
130
|
changeHeaderDeliveryDateDefinitive(request: ChangeHeaderDeliveryDateDefinitiveRequest): Promise<DataServiceResponseData>;
|
|
129
131
|
changeHeaderPartialDeliveryAllowed(request: ChangeHeaderPartialDeliveryAllowedRequest): Promise<DataServiceResponseData>;
|
|
@@ -173,9 +175,10 @@ export declare class Transaction {
|
|
|
173
175
|
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
174
176
|
getPaymentLinkStatus(paymentLinkUUID: string): Promise<DataServiceResponseData>;
|
|
175
177
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
178
|
+
getPaymentMethodsForSalesOrder(): Promise<DataServiceResponseData>;
|
|
176
179
|
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
177
180
|
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
178
|
-
lockPurchasePortalLines(
|
|
181
|
+
lockPurchasePortalLines(transIdPurchase: number, lineId: number): Promise<DataServiceResponseData>;
|
|
179
182
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
180
183
|
static createConnector(options: Options): IoneApiTransaction;
|
|
181
184
|
private _handleConnectionReset;
|
package/build/transaction.js
CHANGED
|
@@ -218,6 +218,9 @@ var Transaction = (function () {
|
|
|
218
218
|
Transaction.prototype.changeTransactionLineCollectionCode = function (request) {
|
|
219
219
|
return this.transaction.changeLineCollectionCode(request);
|
|
220
220
|
};
|
|
221
|
+
Transaction.prototype.changeTransactionLineGoodDescription = function (request) {
|
|
222
|
+
return this.transaction.changeLineGoodDescription(request);
|
|
223
|
+
};
|
|
221
224
|
Transaction.prototype.changeHeaderDeliveryDate = function (request) {
|
|
222
225
|
return this.transaction.changeHeaderDeliveryDate(request);
|
|
223
226
|
};
|
|
@@ -371,6 +374,9 @@ var Transaction = (function () {
|
|
|
371
374
|
Transaction.prototype.getPaymentMethods = function () {
|
|
372
375
|
return this.transaction.getPaymentMethods();
|
|
373
376
|
};
|
|
377
|
+
Transaction.prototype.getPaymentMethodsForSalesOrder = function () {
|
|
378
|
+
return this.transaction.getPaymentMethodsForSalesOrder();
|
|
379
|
+
};
|
|
374
380
|
Transaction.prototype.getPurchasePortalLines = function (purchasePortalLine) {
|
|
375
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
376
382
|
return __generator(this, function (_a) {
|
|
@@ -385,10 +391,10 @@ var Transaction = (function () {
|
|
|
385
391
|
});
|
|
386
392
|
});
|
|
387
393
|
};
|
|
388
|
-
Transaction.prototype.lockPurchasePortalLines = function (
|
|
394
|
+
Transaction.prototype.lockPurchasePortalLines = function (transIdPurchase, lineId) {
|
|
389
395
|
return __awaiter(this, void 0, void 0, function () {
|
|
390
396
|
return __generator(this, function (_a) {
|
|
391
|
-
return [2, this.transaction.lockPurchasePortalLines(
|
|
397
|
+
return [2, this.transaction.lockPurchasePortalLines(transIdPurchase, lineId)];
|
|
392
398
|
});
|
|
393
399
|
});
|
|
394
400
|
};
|
|
@@ -42,7 +42,6 @@ import { TransactionSearchViewRequest } from './model/transaction-search-view-re
|
|
|
42
42
|
import { PurchaseAdviceFilters } from './model/purchase-advice-filters';
|
|
43
43
|
import { PurchasePortalFilters } from './model/purchase-portal-filters.bo';
|
|
44
44
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
45
|
-
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
46
45
|
import { DocDeliveryBatch } from './model/doc-delivery-batch.bo';
|
|
47
46
|
var options = {
|
|
48
47
|
url: 'http',
|
|
@@ -84,8 +83,8 @@ var publicOptions = {
|
|
|
84
83
|
describe("TransactionAPI", function () {
|
|
85
84
|
var transaction;
|
|
86
85
|
beforeEach(function () {
|
|
87
|
-
transaction = new Transaction(
|
|
88
|
-
jest.setTimeout(
|
|
86
|
+
transaction = new Transaction(localOptions);
|
|
87
|
+
jest.setTimeout(130000);
|
|
89
88
|
});
|
|
90
89
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
91
90
|
var result;
|
|
@@ -217,24 +216,6 @@ describe("TransactionAPI", function () {
|
|
|
217
216
|
case 0:
|
|
218
217
|
purchasePortalFilter = new PurchasePortalFilters();
|
|
219
218
|
purchasePortalFilter.purchaseOrderNo = "15461";
|
|
220
|
-
purchasePortalFilter.supplierNo = null;
|
|
221
|
-
purchasePortalFilter.purchaseOrderDate = null;
|
|
222
|
-
purchasePortalFilter.deliveryState = null;
|
|
223
|
-
purchasePortalFilter.articleNo = null;
|
|
224
|
-
purchasePortalFilter.turnOverGroup = null;
|
|
225
|
-
purchasePortalFilter.deliveryDate = null;
|
|
226
|
-
purchasePortalFilter.deliveryDateConfirmed = null;
|
|
227
|
-
purchasePortalFilter.serialNo = null;
|
|
228
|
-
purchasePortalFilter.batchNo = null;
|
|
229
|
-
purchasePortalFilter.branchNo = null;
|
|
230
|
-
purchasePortalFilter.wareHouseNo = null;
|
|
231
|
-
purchasePortalFilter.reference = null;
|
|
232
|
-
purchasePortalFilter.processingState = null;
|
|
233
|
-
purchasePortalFilter.tag = null;
|
|
234
|
-
purchasePortalFilter.acceptanceProcessingState = null;
|
|
235
|
-
purchasePortalFilter.supplierGroupNo = null;
|
|
236
|
-
purchasePortalFilter.purchasePersonNo = null;
|
|
237
|
-
purchasePortalFilter.deliveryBatch = null;
|
|
238
219
|
purchasePortalLine = new GetPurchasePortalLine();
|
|
239
220
|
purchasePortalLine.transIdPurchase = 108937;
|
|
240
221
|
purchasePortalLine.selOrdered = "F";
|
|
@@ -256,74 +237,58 @@ describe("TransactionAPI", function () {
|
|
|
256
237
|
});
|
|
257
238
|
}); });
|
|
258
239
|
it('updatePurchaseOrderLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
259
|
-
var
|
|
240
|
+
var getPurchasePortalLine, purchasePortalFilter, purchasePortalLinesResponse, purchasePortalLine, lockResponse, docBatchArray, result;
|
|
260
241
|
return __generator(this, function (_a) {
|
|
261
242
|
switch (_a.label) {
|
|
262
243
|
case 0:
|
|
244
|
+
getPurchasePortalLine = new GetPurchasePortalLine();
|
|
245
|
+
purchasePortalFilter = new PurchasePortalFilters();
|
|
246
|
+
purchasePortalFilter.purchaseOrderNo = "15461";
|
|
247
|
+
getPurchasePortalLine.transIdPurchase = 108937;
|
|
248
|
+
getPurchasePortalLine.selOrdered = "F";
|
|
249
|
+
getPurchasePortalLine.selPurchaseResp = "T";
|
|
250
|
+
getPurchasePortalLine.selPurchaseRespNotToDo = "F";
|
|
251
|
+
getPurchasePortalLine.selTranspNot = "F";
|
|
252
|
+
getPurchasePortalLine.selTranspNotToDo = "F";
|
|
253
|
+
getPurchasePortalLine.selRepReceived = "F";
|
|
254
|
+
getPurchasePortalLine.onlyInContainer = "F";
|
|
255
|
+
getPurchasePortalLine.docKind = "IB";
|
|
256
|
+
getPurchasePortalLine.filterObject = purchasePortalFilter;
|
|
257
|
+
return [4, transaction.getPurchasePortalLines(getPurchasePortalLine)];
|
|
258
|
+
case 1:
|
|
259
|
+
purchasePortalLinesResponse = _a.sent();
|
|
260
|
+
purchasePortalLine = purchasePortalLinesResponse.resultObjects[0];
|
|
261
|
+
return [4, transaction.lockPurchasePortalLines(purchasePortalLine.transIdPurchase, purchasePortalLine.lineId)];
|
|
262
|
+
case 2:
|
|
263
|
+
lockResponse = _a.sent();
|
|
264
|
+
if (!(lockResponse.validationResult && lockResponse.validationResult.success)) return [3, 4];
|
|
265
|
+
return [4, transaction.commit()];
|
|
266
|
+
case 3:
|
|
267
|
+
_a.sent();
|
|
268
|
+
_a.label = 4;
|
|
269
|
+
case 4:
|
|
270
|
+
if (!(lockResponse.validationResult && lockResponse.validationResult.success)) return [3, 8];
|
|
263
271
|
docBatchArray = new DocDeliveryBatch();
|
|
264
272
|
docBatchArray.deliveryBatch = "batch3";
|
|
265
273
|
docBatchArray.docAmount = 1;
|
|
266
274
|
docBatchArray.confirmedPrice = 10;
|
|
267
275
|
docBatchArray.reference = "Test ref";
|
|
268
276
|
docBatchArray.deleteLine = "F";
|
|
269
|
-
docBatchArray.
|
|
270
|
-
docBatchArray.
|
|
271
|
-
docBatchArray.
|
|
272
|
-
purchasePortalLine = new PurchasePortalLine();
|
|
273
|
-
purchasePortalLine.transIdPurchase = 108937;
|
|
274
|
-
purchasePortalLine.transIdSales = null;
|
|
275
|
-
purchasePortalLine.lineId = null;
|
|
276
|
-
purchasePortalLine.transNo = null;
|
|
277
|
-
purchasePortalLine.lineNo = null;
|
|
278
|
-
purchasePortalLine.transactionDate = null;
|
|
279
|
-
purchasePortalLine.supplierNo = null;
|
|
280
|
-
purchasePortalLine.supplierName = null;
|
|
281
|
-
purchasePortalLine.articleNo = null;
|
|
282
|
-
purchasePortalLine.description = null;
|
|
283
|
-
purchasePortalLine.volume = null;
|
|
284
|
-
purchasePortalLine.currencyPurchCode = null;
|
|
285
|
-
purchasePortalLine.noDecimalsPurch = null;
|
|
286
|
-
purchasePortalLine.grossOrderPrice = null;
|
|
287
|
-
purchasePortalLine.discountOrderPrice = null;
|
|
288
|
-
purchasePortalLine.netOrderPrice = null;
|
|
289
|
-
purchasePortalLine.currencyConfCode = null;
|
|
290
|
-
purchasePortalLine.noDecimalsConf = null;
|
|
291
|
-
purchasePortalLine.confirmedPrice = null;
|
|
292
|
-
purchasePortalLine.amountOrdered = null;
|
|
293
|
-
purchasePortalLine.amountConfirmed = null;
|
|
294
|
-
purchasePortalLine.amountConfirmedOrg = null;
|
|
295
|
-
purchasePortalLine.amountAccepted = null;
|
|
296
|
-
purchasePortalLine.amountAcceptedOrg = null;
|
|
297
|
-
purchasePortalLine.amountShipped = null;
|
|
298
|
-
purchasePortalLine.amountShippedOrg = null;
|
|
299
|
-
purchasePortalLine.amountShippedTotal = null;
|
|
300
|
-
purchasePortalLine.amountToBeShipped = null;
|
|
301
|
-
purchasePortalLine.amountSignedIn = null;
|
|
302
|
-
purchasePortalLine.amountToBeConfirmed = null;
|
|
303
|
-
purchasePortalLine.deliveryDate = null;
|
|
304
|
-
purchasePortalLine.deliveryDateConfirmed = null;
|
|
305
|
-
purchasePortalLine.deliveryDateConfirmedOrg = null;
|
|
306
|
-
purchasePortalLine.transportDate = null;
|
|
307
|
-
purchasePortalLine.arrivalDate = null;
|
|
308
|
-
purchasePortalLine.amountShippingTimes = null;
|
|
309
|
-
purchasePortalLine.selected = null;
|
|
310
|
-
purchasePortalLine.reference = null;
|
|
311
|
-
purchasePortalLine.referenceOriginal = null;
|
|
312
|
-
purchasePortalLine.referenceFromHeader = null;
|
|
313
|
-
purchasePortalLine.user = null;
|
|
314
|
-
purchasePortalLine.docKind = null;
|
|
315
|
-
purchasePortalLine.containerId = null;
|
|
316
|
-
purchasePortalLine.deleteDoc = null;
|
|
317
|
-
purchasePortalLine.articleRelatedText = null;
|
|
318
|
-
purchasePortalLine.articleNoSupplier = null;
|
|
319
|
-
purchasePortalLine.deliveryBatchOrg = null;
|
|
320
|
-
purchasePortalLine.deliveryBatch = null;
|
|
321
|
-
purchasePortalLine.docBatchArray = [docBatchArray];
|
|
277
|
+
docBatchArray.docDate = new Date();
|
|
278
|
+
docBatchArray.docDateOrg = new Date();
|
|
279
|
+
purchasePortalLine.docBatchArray.push(docBatchArray);
|
|
322
280
|
return [4, transaction.updatePurchasePortalLines(purchasePortalLine)];
|
|
323
|
-
case
|
|
324
|
-
result = _a.sent();
|
|
281
|
+
case 5:
|
|
282
|
+
result = _a.sent();
|
|
283
|
+
if (!(result.validationResult && result.validationResult.success)) return [3, 7];
|
|
284
|
+
return [4, transaction.commit()];
|
|
285
|
+
case 6:
|
|
286
|
+
_a.sent();
|
|
287
|
+
_a.label = 7;
|
|
288
|
+
case 7:
|
|
325
289
|
expect(result).toBeDefined();
|
|
326
|
-
|
|
290
|
+
_a.label = 8;
|
|
291
|
+
case 8: return [2];
|
|
327
292
|
}
|
|
328
293
|
});
|
|
329
294
|
}); });
|
|
@@ -563,6 +528,18 @@ describe("TransactionAPI", function () {
|
|
|
563
528
|
}
|
|
564
529
|
});
|
|
565
530
|
}); });
|
|
531
|
+
it('getPaymentMethodsForSalesOrder', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
532
|
+
var result;
|
|
533
|
+
return __generator(this, function (_a) {
|
|
534
|
+
switch (_a.label) {
|
|
535
|
+
case 0: return [4, transaction.getPaymentMethodsForSalesOrder()];
|
|
536
|
+
case 1:
|
|
537
|
+
result = _a.sent();
|
|
538
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
539
|
+
return [2];
|
|
540
|
+
}
|
|
541
|
+
});
|
|
542
|
+
}); });
|
|
566
543
|
it('getPurchaseAdviceLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
567
544
|
var filterObject, result;
|
|
568
545
|
return __generator(this, function (_a) {
|