@colijnit/transactionapi 1.1.25 → 1.1.26
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/module-name.enum.d.ts +2 -1
- package/build/enum/module-name.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +6 -0
- package/build/model/doc-delivery-batch.bo.d.ts +11 -0
- package/build/model/doc-delivery-batch.bo.js +22 -0
- package/build/model/get-purchase-portal-line.d.ts +14 -0
- package/build/model/get-purchase-portal-line.js +6 -0
- package/build/model/purchase-portal-filters.bo.d.ts +23 -0
- package/build/model/purchase-portal-filters.bo.js +22 -0
- package/build/model/purchase-portal-line.bo.d.ts +53 -0
- package/build/model/purchase-portal-line.bo.js +22 -0
- package/build/model/purchase-portal-object-name.enum.d.ts +3 -0
- package/build/model/purchase-portal-object-name.enum.js +4 -0
- package/build/transaction-auth.d.ts +6 -0
- package/build/transaction-auth.js +44 -0
- package/build/transaction-public.d.ts +6 -0
- package/build/transaction-public.js +16 -0
- package/build/transaction.d.ts +6 -0
- package/build/transaction.js +28 -0
- package/build/transaction.unit.test.js +111 -0
- package/package.json +1 -1
|
@@ -29,6 +29,8 @@ import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-p
|
|
|
29
29
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
30
30
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
31
31
|
import { PaymentRequest } from './model/payment-request';
|
|
32
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
33
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
32
34
|
export declare abstract class IoneApiTransaction {
|
|
33
35
|
readonly showLoader: Subject<boolean>;
|
|
34
36
|
readonly connectionAborted: Subject<void>;
|
|
@@ -106,5 +108,9 @@ export declare abstract class IoneApiTransaction {
|
|
|
106
108
|
abstract getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
107
109
|
abstract receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
108
110
|
abstract receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
111
|
+
abstract getPurchasePortalLines(purchaseOrderLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
112
|
+
abstract updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
113
|
+
abstract lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
114
|
+
abstract deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
115
|
protected endPoint: string;
|
|
110
116
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
export declare class DocDeliveryBatch extends BusinessObject {
|
|
3
|
+
deliveryBatch: string;
|
|
4
|
+
docAmountOrg: string;
|
|
5
|
+
docAmount: string;
|
|
6
|
+
docDateOrg: string;
|
|
7
|
+
docDate: string;
|
|
8
|
+
reference: string;
|
|
9
|
+
confirmedPrice: string;
|
|
10
|
+
deleteLine: string;
|
|
11
|
+
}
|
|
@@ -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 DocDeliveryBatch = (function (_super) {
|
|
16
|
+
__extends(DocDeliveryBatch, _super);
|
|
17
|
+
function DocDeliveryBatch() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return DocDeliveryBatch;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { DocDeliveryBatch };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PurchasePortalFilters } from "./purchase-portal-filters.bo";
|
|
2
|
+
export declare class GetPurchasePortalLine {
|
|
3
|
+
transIdPurchase: number;
|
|
4
|
+
selOrdered: string;
|
|
5
|
+
selPurchaseResp: string;
|
|
6
|
+
selPurchaseRespNotToDo: string;
|
|
7
|
+
selTranspNot: string;
|
|
8
|
+
selTranspNotToDo: string;
|
|
9
|
+
selRepReceived: string;
|
|
10
|
+
onlyInContainer: string;
|
|
11
|
+
docKind: string;
|
|
12
|
+
filterObject: PurchasePortalFilters;
|
|
13
|
+
containerId: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
export declare class PurchasePortalFilters extends BusinessObject {
|
|
3
|
+
supplierNo: string;
|
|
4
|
+
purchaseOrderDate: string;
|
|
5
|
+
purchaseOrderNo: string;
|
|
6
|
+
deliveryState: string;
|
|
7
|
+
articleNo: string;
|
|
8
|
+
superArticle: string;
|
|
9
|
+
turnOverGroup: string;
|
|
10
|
+
deliveryDate: string;
|
|
11
|
+
deliveryDateConfirmed: string;
|
|
12
|
+
serialNo: string;
|
|
13
|
+
batchNo: string;
|
|
14
|
+
branchNo: string;
|
|
15
|
+
wareHouseNo: string;
|
|
16
|
+
reference: string;
|
|
17
|
+
processingState: number;
|
|
18
|
+
tag: string;
|
|
19
|
+
acceptanceProcessingState: number;
|
|
20
|
+
supplierGroupNo: string;
|
|
21
|
+
purchasePersonNo: string;
|
|
22
|
+
deliveryBatch: string;
|
|
23
|
+
}
|
|
@@ -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 PurchasePortalFilters = (function (_super) {
|
|
16
|
+
__extends(PurchasePortalFilters, _super);
|
|
17
|
+
function PurchasePortalFilters() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PurchasePortalFilters;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { PurchasePortalFilters };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { DocDeliveryBatch } from "./doc-delivery-batch.bo";
|
|
3
|
+
export declare class PurchasePortalLine extends BusinessObject {
|
|
4
|
+
transIdPurchase: string;
|
|
5
|
+
transIdSales: string;
|
|
6
|
+
lineId: string;
|
|
7
|
+
transNo: string;
|
|
8
|
+
lineNo: string;
|
|
9
|
+
transactionDate: string;
|
|
10
|
+
supplierNo: string;
|
|
11
|
+
supplierName: string;
|
|
12
|
+
articleNo: string;
|
|
13
|
+
description: string;
|
|
14
|
+
volume: string;
|
|
15
|
+
currencyPurchCode: string;
|
|
16
|
+
noDecimalsPurch: string;
|
|
17
|
+
grossOrderPrice: string;
|
|
18
|
+
discountOrderPrice: string;
|
|
19
|
+
netOrderPrice: string;
|
|
20
|
+
currencyConfCode: string;
|
|
21
|
+
noDecimalsConf: string;
|
|
22
|
+
confirmedPrice: string;
|
|
23
|
+
amountOrdered: string;
|
|
24
|
+
amountConfirmed: string;
|
|
25
|
+
amountConfirmedOrg: string;
|
|
26
|
+
amountAccepted: string;
|
|
27
|
+
amountAcceptedOrg: string;
|
|
28
|
+
amountShipped: string;
|
|
29
|
+
amountShippedOrg: string;
|
|
30
|
+
amountShippedTotal: string;
|
|
31
|
+
amountToBeShipped: string;
|
|
32
|
+
amountSignedIn: string;
|
|
33
|
+
amountToBeConfirmed: string;
|
|
34
|
+
deliveryDate: string;
|
|
35
|
+
deliveryDateConfirmed: string;
|
|
36
|
+
deliveryDateConfirmedOrg: string;
|
|
37
|
+
transportDate: string;
|
|
38
|
+
arrivalDate: string;
|
|
39
|
+
amountShippingTimes: string;
|
|
40
|
+
selected: string;
|
|
41
|
+
reference: string;
|
|
42
|
+
referenceOriginal: string;
|
|
43
|
+
referenceFromHeader: string;
|
|
44
|
+
user: string;
|
|
45
|
+
docKind: string;
|
|
46
|
+
containerId: string;
|
|
47
|
+
deleteDoc: string;
|
|
48
|
+
articleRelatedText: string;
|
|
49
|
+
articleNoSupplier: string;
|
|
50
|
+
deliveryBatchOrg: string;
|
|
51
|
+
deliveryBatch: string;
|
|
52
|
+
docBatchArray: DocDeliveryBatch;
|
|
53
|
+
}
|
|
@@ -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 PurchasePortalLine = (function (_super) {
|
|
16
|
+
__extends(PurchasePortalLine, _super);
|
|
17
|
+
function PurchasePortalLine() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return PurchasePortalLine;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { PurchasePortalLine };
|
|
@@ -28,6 +28,8 @@ import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-
|
|
|
28
28
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
29
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
30
|
import { PaymentRequest } from './model/payment-request';
|
|
31
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
32
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
31
33
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
32
34
|
private _boSerializer;
|
|
33
35
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -99,6 +101,10 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
99
101
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
100
102
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
101
103
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
104
|
+
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
105
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
106
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
107
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
102
108
|
private _getDomainCollection;
|
|
103
109
|
private _getMultipleDomainCollection;
|
|
104
110
|
private callGetNodeData;
|
|
@@ -68,6 +68,7 @@ import { TransactionObjectName } from './enum/transaction-object-name.enum';
|
|
|
68
68
|
import { TagObjectName } from './enum/tag-object-name.enum';
|
|
69
69
|
import { TagOperationName } from './enum/tag-operation-name.enum';
|
|
70
70
|
import { PaymentMethod } from './enum/payment-method.enum';
|
|
71
|
+
import { PurchasePortal } from "./model/purchase-portal-object-name.enum";
|
|
71
72
|
var TransactionAuth = (function (_super) {
|
|
72
73
|
__extends(TransactionAuth, _super);
|
|
73
74
|
function TransactionAuth() {
|
|
@@ -748,6 +749,49 @@ var TransactionAuth = (function (_super) {
|
|
|
748
749
|
};
|
|
749
750
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
750
751
|
};
|
|
752
|
+
TransactionAuth.prototype.getPurchasePortalLines = function (purchasePortalLine) {
|
|
753
|
+
var params = {
|
|
754
|
+
transIdPurchase: purchasePortalLine.transIdPurchase,
|
|
755
|
+
selOrdered: purchasePortalLine.selOrdered,
|
|
756
|
+
selPurchaseResp: purchasePortalLine.selPurchaseResp,
|
|
757
|
+
selPurchaseRespNotToDo: purchasePortalLine.selPurchaseRespNotToDo,
|
|
758
|
+
selTranspNot: purchasePortalLine.selTranspNot,
|
|
759
|
+
selTranspNotToDo: purchasePortalLine.selTranspNotToDo,
|
|
760
|
+
selRepReceived: purchasePortalLine.selRepReceived,
|
|
761
|
+
onlyInContainer: purchasePortalLine.onlyInContainer,
|
|
762
|
+
docKind: purchasePortalLine.docKind,
|
|
763
|
+
filterObject: purchasePortalLine.filterObject,
|
|
764
|
+
containerId: purchasePortalLine.containerId,
|
|
765
|
+
};
|
|
766
|
+
return this.selectMultiple(ModuleName.PurchasePortal, PurchasePortal.PurchaseOrderLine, "", params);
|
|
767
|
+
};
|
|
768
|
+
TransactionAuth.prototype.updatePurchasePortalLines = function (request) {
|
|
769
|
+
var data = {
|
|
770
|
+
moduleName: ModuleName.PurchasePortal,
|
|
771
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
772
|
+
refCursorAsArray: true,
|
|
773
|
+
object: request
|
|
774
|
+
};
|
|
775
|
+
return this._call(DataServiceMethod.UpdateObject, data);
|
|
776
|
+
};
|
|
777
|
+
TransactionAuth.prototype.lockPurchasePortalLines = function (request) {
|
|
778
|
+
var data = {
|
|
779
|
+
moduleName: ModuleName.PurchasePortal,
|
|
780
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
781
|
+
refCursorAsArray: true,
|
|
782
|
+
parameterValues: request
|
|
783
|
+
};
|
|
784
|
+
return this._call(DataServiceMethod.LockObject, data);
|
|
785
|
+
};
|
|
786
|
+
TransactionAuth.prototype.deletePurchasePortalLines = function (request) {
|
|
787
|
+
var data = {
|
|
788
|
+
moduleName: ModuleName.PurchasePortal,
|
|
789
|
+
objectName: PurchasePortal.PurchaseOrderLine,
|
|
790
|
+
refCursorAsArray: true,
|
|
791
|
+
parameterValues: request
|
|
792
|
+
};
|
|
793
|
+
return this._call(DataServiceMethod.InsertObject, data);
|
|
794
|
+
};
|
|
751
795
|
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
752
796
|
var params = {
|
|
753
797
|
domainName: domainName,
|
|
@@ -28,6 +28,8 @@ import { ReceiveGoodsForPurchaseOrderRequest } from './model/receive-goods-for-p
|
|
|
28
28
|
import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-goods-for-purchase-order-correction-request.bo';
|
|
29
29
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
30
30
|
import { PaymentRequest } from './model/payment-request';
|
|
31
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
32
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
31
33
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
32
34
|
protected endPoint: string;
|
|
33
35
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -100,6 +102,10 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
100
102
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
101
103
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
102
104
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
105
|
+
getPurchasePortalLines(purchaseOrderLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
106
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
107
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
108
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
103
109
|
private createServiceRequestData;
|
|
104
110
|
private _getDomainCollection;
|
|
105
111
|
private _getMultipleDomainCollection;
|
|
@@ -718,6 +718,22 @@ var TransactionPublic = (function (_super) {
|
|
|
718
718
|
});
|
|
719
719
|
});
|
|
720
720
|
};
|
|
721
|
+
TransactionPublic.prototype.getPurchasePortalLines = function (purchaseOrderLine) {
|
|
722
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
723
|
+
return __generator(this, function (_a) {
|
|
724
|
+
return [2, null];
|
|
725
|
+
});
|
|
726
|
+
});
|
|
727
|
+
};
|
|
728
|
+
TransactionPublic.prototype.updatePurchasePortalLines = function (request) {
|
|
729
|
+
return null;
|
|
730
|
+
};
|
|
731
|
+
TransactionPublic.prototype.lockPurchasePortalLines = function (request) {
|
|
732
|
+
return null;
|
|
733
|
+
};
|
|
734
|
+
TransactionPublic.prototype.deletePurchasePortalLines = function (request) {
|
|
735
|
+
return null;
|
|
736
|
+
};
|
|
721
737
|
TransactionPublic.prototype.createServiceRequestData = function () {
|
|
722
738
|
var data = { languageCode: this.languageCode };
|
|
723
739
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ import { ReceiveGoodsForPurchaseOrderCorrectionRequest } from './model/receive-g
|
|
|
31
31
|
import { PaymentRequest } from './model/payment-request';
|
|
32
32
|
import { CreateOutstandingEntryRequest } from './model/create-outstanding-entry-request';
|
|
33
33
|
import { ChangeHeaderTransactionDefinitiveRequest } from './model/change-header-transaction-definitive-request';
|
|
34
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
35
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
34
36
|
export declare class Transaction {
|
|
35
37
|
readonly showLoader: Subject<boolean>;
|
|
36
38
|
readonly connectionAborted: Subject<void>;
|
|
@@ -118,6 +120,10 @@ export declare class Transaction {
|
|
|
118
120
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
119
121
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
120
122
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
123
|
+
getPurchasePortalLines(purchaseOrderLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
124
|
+
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
125
|
+
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
126
|
+
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
121
127
|
static createConnector(options: Options): IoneApiTransaction;
|
|
122
128
|
private _handleConnectionReset;
|
|
123
129
|
}
|
package/build/transaction.js
CHANGED
|
@@ -290,6 +290,34 @@ var Transaction = (function () {
|
|
|
290
290
|
Transaction.prototype.getPaymentMethods = function () {
|
|
291
291
|
return this.transaction.getPaymentMethods();
|
|
292
292
|
};
|
|
293
|
+
Transaction.prototype.getPurchasePortalLines = function (purchaseOrderLine) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
295
|
+
return __generator(this, function (_a) {
|
|
296
|
+
return [2, this.transaction.getPurchasePortalLines(purchaseOrderLine)];
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
Transaction.prototype.updatePurchasePortalLines = function (request) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
302
|
+
return __generator(this, function (_a) {
|
|
303
|
+
return [2, this.transaction.updatePurchasePortalLines(request)];
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
};
|
|
307
|
+
Transaction.prototype.lockPurchasePortalLines = function (request) {
|
|
308
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
return [2, this.transaction.lockPurchasePortalLines(request)];
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
};
|
|
314
|
+
Transaction.prototype.deletePurchasePortalLines = function (request) {
|
|
315
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
316
|
+
return __generator(this, function (_a) {
|
|
317
|
+
return [2, this.transaction.deletePurchasePortalLines(request)];
|
|
318
|
+
});
|
|
319
|
+
});
|
|
320
|
+
};
|
|
293
321
|
Transaction.createConnector = function (options) {
|
|
294
322
|
if ((options.username && options.password) || options.session) {
|
|
295
323
|
return new TransactionAuth();
|
|
@@ -39,6 +39,9 @@ import { RelationRequest } from './model/relation-request';
|
|
|
39
39
|
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
40
40
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
41
41
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
42
|
+
import { PurchasePortalFilters } from "./model/purchase-portal-filters.bo";
|
|
43
|
+
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
44
|
+
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
42
45
|
var options = {
|
|
43
46
|
url: 'http',
|
|
44
47
|
ajaxUrl: 'http'
|
|
@@ -196,6 +199,114 @@ describe("TransactionAPI", function () {
|
|
|
196
199
|
}
|
|
197
200
|
});
|
|
198
201
|
}); });
|
|
202
|
+
it('getPurchaseOrderLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
|
+
var purchasePortalFilter, purchasePortalLine, result;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
purchasePortalFilter = new PurchasePortalFilters();
|
|
208
|
+
purchasePortalFilter.purchaseOrderNo = "15461";
|
|
209
|
+
purchasePortalFilter.supplierNo = null;
|
|
210
|
+
purchasePortalFilter.purchaseOrderDate = null;
|
|
211
|
+
purchasePortalFilter.deliveryState = null;
|
|
212
|
+
purchasePortalFilter.articleNo = null;
|
|
213
|
+
purchasePortalFilter.turnOverGroup = null;
|
|
214
|
+
purchasePortalFilter.deliveryDate = null;
|
|
215
|
+
purchasePortalFilter.deliveryDateConfirmed = null;
|
|
216
|
+
purchasePortalFilter.serialNo = null;
|
|
217
|
+
purchasePortalFilter.batchNo = null;
|
|
218
|
+
purchasePortalFilter.branchNo = null;
|
|
219
|
+
purchasePortalFilter.wareHouseNo = null;
|
|
220
|
+
purchasePortalFilter.reference = null;
|
|
221
|
+
purchasePortalFilter.processingState = null;
|
|
222
|
+
purchasePortalFilter.tag = null;
|
|
223
|
+
purchasePortalFilter.acceptanceProcessingState = null;
|
|
224
|
+
purchasePortalFilter.supplierGroupNo = null;
|
|
225
|
+
purchasePortalFilter.purchasePersonNo = null;
|
|
226
|
+
purchasePortalFilter.deliveryBatch = null;
|
|
227
|
+
purchasePortalLine = new GetPurchasePortalLine();
|
|
228
|
+
purchasePortalLine.transIdPurchase = 108937;
|
|
229
|
+
purchasePortalLine.selOrdered = "F";
|
|
230
|
+
purchasePortalLine.selPurchaseResp = "T";
|
|
231
|
+
purchasePortalLine.selPurchaseRespNotToDo = "F";
|
|
232
|
+
purchasePortalLine.selTranspNot = "F";
|
|
233
|
+
purchasePortalLine.selTranspNotToDo = "F";
|
|
234
|
+
purchasePortalLine.selRepReceived = "F";
|
|
235
|
+
purchasePortalLine.onlyInContainer = "F";
|
|
236
|
+
purchasePortalLine.docKind = "IB";
|
|
237
|
+
purchasePortalLine.filterObject = purchasePortalFilter;
|
|
238
|
+
purchasePortalLine.containerId = null;
|
|
239
|
+
return [4, transaction.getPurchasePortalLines(purchasePortalLine)];
|
|
240
|
+
case 1:
|
|
241
|
+
result = _a.sent();
|
|
242
|
+
expect(result).toBeDefined();
|
|
243
|
+
return [2];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}); });
|
|
247
|
+
it('updatePurchaseOrderLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
+
var purchasePortalLine, result;
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
251
|
+
case 0:
|
|
252
|
+
purchasePortalLine = new PurchasePortalLine();
|
|
253
|
+
purchasePortalLine.transIdPurchase = "108937";
|
|
254
|
+
purchasePortalLine.transIdSales = null;
|
|
255
|
+
purchasePortalLine.lineId = null;
|
|
256
|
+
purchasePortalLine.transNo = null;
|
|
257
|
+
purchasePortalLine.lineNo = null;
|
|
258
|
+
purchasePortalLine.transactionDate = null;
|
|
259
|
+
purchasePortalLine.supplierNo = null;
|
|
260
|
+
purchasePortalLine.supplierName = null;
|
|
261
|
+
purchasePortalLine.articleNo = null;
|
|
262
|
+
purchasePortalLine.description = null;
|
|
263
|
+
purchasePortalLine.volume = null;
|
|
264
|
+
purchasePortalLine.currencyPurchCode = null;
|
|
265
|
+
purchasePortalLine.noDecimalsPurch = null;
|
|
266
|
+
purchasePortalLine.grossOrderPrice = null;
|
|
267
|
+
purchasePortalLine.discountOrderPrice = null;
|
|
268
|
+
purchasePortalLine.netOrderPrice = null;
|
|
269
|
+
purchasePortalLine.currencyConfCode = null;
|
|
270
|
+
purchasePortalLine.noDecimalsConf = null;
|
|
271
|
+
purchasePortalLine.confirmedPrice = null;
|
|
272
|
+
purchasePortalLine.amountOrdered = null;
|
|
273
|
+
purchasePortalLine.amountConfirmed = null;
|
|
274
|
+
purchasePortalLine.amountConfirmedOrg = null;
|
|
275
|
+
purchasePortalLine.amountAccepted = null;
|
|
276
|
+
purchasePortalLine.amountAcceptedOrg = null;
|
|
277
|
+
purchasePortalLine.amountShipped = null;
|
|
278
|
+
purchasePortalLine.amountShippedOrg = null;
|
|
279
|
+
purchasePortalLine.amountShippedTotal = null;
|
|
280
|
+
purchasePortalLine.amountToBeShipped = null;
|
|
281
|
+
purchasePortalLine.amountSignedIn = null;
|
|
282
|
+
purchasePortalLine.amountToBeConfirmed = null;
|
|
283
|
+
purchasePortalLine.deliveryDate = null;
|
|
284
|
+
purchasePortalLine.deliveryDateConfirmed = null;
|
|
285
|
+
purchasePortalLine.deliveryDateConfirmedOrg = null;
|
|
286
|
+
purchasePortalLine.transportDate = null;
|
|
287
|
+
purchasePortalLine.arrivalDate = null;
|
|
288
|
+
purchasePortalLine.amountShippingTimes = null;
|
|
289
|
+
purchasePortalLine.selected = null;
|
|
290
|
+
purchasePortalLine.reference = null;
|
|
291
|
+
purchasePortalLine.referenceOriginal = null;
|
|
292
|
+
purchasePortalLine.referenceFromHeader = null;
|
|
293
|
+
purchasePortalLine.user = null;
|
|
294
|
+
purchasePortalLine.docKind = null;
|
|
295
|
+
purchasePortalLine.containerId = null;
|
|
296
|
+
purchasePortalLine.deleteDoc = null;
|
|
297
|
+
purchasePortalLine.articleRelatedText = null;
|
|
298
|
+
purchasePortalLine.articleNoSupplier = null;
|
|
299
|
+
purchasePortalLine.deliveryBatchOrg = null;
|
|
300
|
+
purchasePortalLine.deliveryBatch = null;
|
|
301
|
+
purchasePortalLine.docBatchArray = null;
|
|
302
|
+
return [4, transaction.updatePurchasePortalLines(purchasePortalLine)];
|
|
303
|
+
case 1:
|
|
304
|
+
result = _a.sent();
|
|
305
|
+
expect(result).toBeDefined();
|
|
306
|
+
return [2];
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}); });
|
|
199
310
|
it('getSequenceValue', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
200
311
|
var result;
|
|
201
312
|
return __generator(this, function (_a) {
|