@colijnit/transactionapi 1.1.29 → 1.1.30
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 +1 -0
- package/build/enum/module-name.enum.js +1 -0
- package/build/enum/public-service-method.d.ts +1 -0
- package/build/enum/public-service-method.js +1 -0
- package/build/enum/purchase-advice-object-name.enum.d.ts +3 -0
- package/build/enum/purchase-advice-object-name.enum.js +4 -0
- package/build/ione-api-transaction.d.ts +2 -0
- package/build/model/goods-receipt-history.bo.d.ts +1 -0
- package/build/model/paging-parameters.js +1 -1
- package/build/model/purchase-advice-filters.d.ts +23 -0
- package/build/model/purchase-advice-filters.js +6 -0
- package/build/model/purchase-advice-line.bo.d.ts +65 -0
- package/build/model/purchase-advice-line.bo.js +44 -0
- package/build/model/supplier-product.bo.d.ts +15 -0
- package/build/model/supplier-product.bo.js +44 -0
- package/build/transaction-auth.d.ts +2 -0
- package/build/transaction-auth.js +8 -0
- package/build/transaction-public.d.ts +2 -0
- package/build/transaction-public.js +9 -0
- package/build/transaction.d.ts +2 -0
- package/build/transaction.js +3 -0
- package/build/transaction.unit.test.js +30 -1
- package/package.json +1 -1
|
@@ -14,5 +14,6 @@ export var ModuleName;
|
|
|
14
14
|
ModuleName["Accounting"] = "accounting";
|
|
15
15
|
ModuleName["Financial"] = "Financial";
|
|
16
16
|
ModuleName["Document"] = "Document";
|
|
17
|
+
ModuleName["PurchaseAdvice"] = "PurchaseAdvice";
|
|
17
18
|
ModuleName["PurchasePortal"] = "PurchasePortal";
|
|
18
19
|
})(ModuleName || (ModuleName = {}));
|
|
@@ -62,6 +62,7 @@ export declare enum PublicServiceMethod {
|
|
|
62
62
|
GetGoodsReceiptStatus = "getGoodsReceiptStatus",
|
|
63
63
|
ReceiveGoodsForPurchaseOrder = "receiveGoodsForPurchaseOrder",
|
|
64
64
|
ReceiveGoodsForPurchaseOrderCorrection = "receiveGoodsForPurchaseOrderCorrection",
|
|
65
|
+
GetPurchaseAdviceLines = "getPurchaseAdviceLines",
|
|
65
66
|
GetCustomerGroups = "getCustomerGroups",
|
|
66
67
|
Commit = "commit",
|
|
67
68
|
GetCashRegisters = "getCashRegisters",
|
|
@@ -63,6 +63,7 @@ export var PublicServiceMethod;
|
|
|
63
63
|
PublicServiceMethod["GetGoodsReceiptStatus"] = "getGoodsReceiptStatus";
|
|
64
64
|
PublicServiceMethod["ReceiveGoodsForPurchaseOrder"] = "receiveGoodsForPurchaseOrder";
|
|
65
65
|
PublicServiceMethod["ReceiveGoodsForPurchaseOrderCorrection"] = "receiveGoodsForPurchaseOrderCorrection";
|
|
66
|
+
PublicServiceMethod["GetPurchaseAdviceLines"] = "getPurchaseAdviceLines";
|
|
66
67
|
PublicServiceMethod["GetCustomerGroups"] = "getCustomerGroups";
|
|
67
68
|
PublicServiceMethod["Commit"] = "commit";
|
|
68
69
|
PublicServiceMethod["GetCashRegisters"] = "getCashRegisters";
|
|
@@ -29,6 +29,7 @@ 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 { PurchaseAdviceFilters } from "./model/purchase-advice-filters";
|
|
32
33
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
33
34
|
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
34
35
|
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
@@ -114,5 +115,6 @@ export declare abstract class IoneApiTransaction {
|
|
|
114
115
|
abstract updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
115
116
|
abstract lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
116
117
|
abstract deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
118
|
+
abstract getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
117
119
|
protected endPoint: string;
|
|
118
120
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { notNill } from
|
|
1
|
+
import { notNill } from '../utils/function/not-nill.function';
|
|
2
2
|
var PagingParameters = (function () {
|
|
3
3
|
function PagingParameters(pageLowerBound, pageUpperBound, maximumRows, isLastPage, resultCount) {
|
|
4
4
|
if (pageLowerBound === void 0) { pageLowerBound = 1; }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class PurchaseAdviceFilters {
|
|
2
|
+
orderDate: string;
|
|
3
|
+
deliveryDate: string;
|
|
4
|
+
branchNo: string;
|
|
5
|
+
cashNo: string;
|
|
6
|
+
purchaseCode: string;
|
|
7
|
+
salesPerson: string;
|
|
8
|
+
articleNo: string;
|
|
9
|
+
supplierNo: string;
|
|
10
|
+
salesOrderNo: string;
|
|
11
|
+
customerNo: string;
|
|
12
|
+
exceedanceCode: string;
|
|
13
|
+
turnovergroupNo: string;
|
|
14
|
+
commExcluded: string;
|
|
15
|
+
transactionKind: string;
|
|
16
|
+
targetWarehouse: number;
|
|
17
|
+
targetBranch: string;
|
|
18
|
+
warehouseCollection: number[];
|
|
19
|
+
purchaseAdvice: boolean;
|
|
20
|
+
commissionAdvice: boolean;
|
|
21
|
+
orderForComCode1: boolean;
|
|
22
|
+
linesKind: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { SupplierProduct } from "./supplier-product.bo";
|
|
3
|
+
export declare class PurchaseAdviceLine extends BusinessObject {
|
|
4
|
+
kindAdvice: string;
|
|
5
|
+
transId: number;
|
|
6
|
+
lineId: number;
|
|
7
|
+
orderNo: number;
|
|
8
|
+
lineNo: number;
|
|
9
|
+
orderDate: Date;
|
|
10
|
+
deliveryDate: Date;
|
|
11
|
+
deliveryDateSales: Date;
|
|
12
|
+
codeCommission: string;
|
|
13
|
+
kindTransaction: string;
|
|
14
|
+
goodId: number;
|
|
15
|
+
articleNo: string;
|
|
16
|
+
articleName: string;
|
|
17
|
+
salesDescription: string;
|
|
18
|
+
purchaseDescription: string;
|
|
19
|
+
extendedDescription: string;
|
|
20
|
+
orderCode: string;
|
|
21
|
+
turnOverGroupNo: string;
|
|
22
|
+
amountSales: number;
|
|
23
|
+
amountPurchase: number;
|
|
24
|
+
amountCommissionList: number;
|
|
25
|
+
supplierId: number;
|
|
26
|
+
supplierNo: number;
|
|
27
|
+
supplierName: string;
|
|
28
|
+
freeSupplier: string;
|
|
29
|
+
customerId: number;
|
|
30
|
+
customerNo: number;
|
|
31
|
+
customerName: string;
|
|
32
|
+
branchNo: string;
|
|
33
|
+
branchName: string;
|
|
34
|
+
warehouseNo: number;
|
|
35
|
+
currencyId: number;
|
|
36
|
+
carriageOrderAmount: number;
|
|
37
|
+
purchasePrice: number;
|
|
38
|
+
purchaseBasePrice: number;
|
|
39
|
+
shippingCost: number;
|
|
40
|
+
readilyAvailable: number;
|
|
41
|
+
minStock: number;
|
|
42
|
+
minDynamicStock: number;
|
|
43
|
+
econStock: number;
|
|
44
|
+
stockInTransit: number;
|
|
45
|
+
targetStock: number;
|
|
46
|
+
orderAmount: number;
|
|
47
|
+
orderAmountIntern: number;
|
|
48
|
+
maxStock: number;
|
|
49
|
+
amountPurchaseList: number;
|
|
50
|
+
velocityMonth: number;
|
|
51
|
+
exceedanceCode: string;
|
|
52
|
+
selected: boolean;
|
|
53
|
+
groupOrders: string;
|
|
54
|
+
targetWarehouse: number;
|
|
55
|
+
targetLocation: string;
|
|
56
|
+
targetBranch: string;
|
|
57
|
+
configuration: string;
|
|
58
|
+
showConfiguration: string;
|
|
59
|
+
dontSendOrderForms: string;
|
|
60
|
+
referenceRelation: string;
|
|
61
|
+
dropshipment: string;
|
|
62
|
+
cashOnDelivery: number;
|
|
63
|
+
aupOrderNr: string;
|
|
64
|
+
supplierProduct: SupplierProduct[];
|
|
65
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
var PurchaseAdviceLine = (function (_super) {
|
|
26
|
+
__extends(PurchaseAdviceLine, _super);
|
|
27
|
+
function PurchaseAdviceLine() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
DateField(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], PurchaseAdviceLine.prototype, "orderDate", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
DateField(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], PurchaseAdviceLine.prototype, "deliveryDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
DateField(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], PurchaseAdviceLine.prototype, "deliveryDateSales", void 0);
|
|
42
|
+
return PurchaseAdviceLine;
|
|
43
|
+
}(BusinessObject));
|
|
44
|
+
export { PurchaseAdviceLine };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
export declare class SupplierProduct extends BusinessObject {
|
|
3
|
+
supplierProductId: number;
|
|
4
|
+
goodId: number;
|
|
5
|
+
relationIdSupplier: number;
|
|
6
|
+
Gtin: string;
|
|
7
|
+
ArticleNoSupplier: string;
|
|
8
|
+
dropshipment: string;
|
|
9
|
+
orderingPriority: number;
|
|
10
|
+
priceDeviation: number;
|
|
11
|
+
stockSupplier: number;
|
|
12
|
+
updateStock: Date;
|
|
13
|
+
periodStartNotApplicable: Date;
|
|
14
|
+
periodStopNotApplicable: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
var SupplierProduct = (function (_super) {
|
|
26
|
+
__extends(SupplierProduct, _super);
|
|
27
|
+
function SupplierProduct() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
DateField(),
|
|
32
|
+
__metadata("design:type", Date)
|
|
33
|
+
], SupplierProduct.prototype, "updateStock", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
DateField(),
|
|
36
|
+
__metadata("design:type", Date)
|
|
37
|
+
], SupplierProduct.prototype, "periodStartNotApplicable", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
DateField(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], SupplierProduct.prototype, "periodStopNotApplicable", void 0);
|
|
42
|
+
return SupplierProduct;
|
|
43
|
+
}(BusinessObject));
|
|
44
|
+
export { SupplierProduct };
|
|
@@ -28,6 +28,7 @@ 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 { PurchaseAdviceFilters } from "./model/purchase-advice-filters";
|
|
31
32
|
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
32
33
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
33
34
|
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
@@ -107,6 +108,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
107
108
|
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
108
109
|
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
110
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
111
|
+
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
110
112
|
private _getDomainCollection;
|
|
111
113
|
private _getMultipleDomainCollection;
|
|
112
114
|
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 { PurchaseAdviceObjectName } from "./enum/purchase-advice-object-name.enum";
|
|
71
72
|
import { PurchasePortal } from './model/purchase-portal-object-name.enum';
|
|
72
73
|
var TransactionAuth = (function (_super) {
|
|
73
74
|
__extends(TransactionAuth, _super);
|
|
@@ -806,6 +807,13 @@ var TransactionAuth = (function (_super) {
|
|
|
806
807
|
};
|
|
807
808
|
return this._call(DataServiceMethod.InsertObject, data);
|
|
808
809
|
};
|
|
810
|
+
TransactionAuth.prototype.getPurchaseAdviceLines = function (filters, goodId) {
|
|
811
|
+
var params = {
|
|
812
|
+
filterObject: filters,
|
|
813
|
+
goodId: goodId
|
|
814
|
+
};
|
|
815
|
+
return this.selectMultiple(ModuleName.PurchaseAdvice, PurchaseAdviceObjectName.PurchaseAdviceLine, undefined, params);
|
|
816
|
+
};
|
|
809
817
|
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
810
818
|
var params = {
|
|
811
819
|
domainName: domainName,
|
|
@@ -28,6 +28,7 @@ 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 { PurchaseAdviceFilters } from "./model/purchase-advice-filters";
|
|
31
32
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
32
33
|
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
33
34
|
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
@@ -108,6 +109,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
108
109
|
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
109
110
|
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
110
111
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
112
|
+
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
111
113
|
private createServiceRequestData;
|
|
112
114
|
private _getDomainCollection;
|
|
113
115
|
private _getMultipleDomainCollection;
|
|
@@ -738,6 +738,15 @@ var TransactionPublic = (function (_super) {
|
|
|
738
738
|
TransactionPublic.prototype.deletePurchasePortalLines = function (request) {
|
|
739
739
|
return null;
|
|
740
740
|
};
|
|
741
|
+
TransactionPublic.prototype.getPurchaseAdviceLines = function (filters, goodId) {
|
|
742
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
743
|
+
var data;
|
|
744
|
+
return __generator(this, function (_a) {
|
|
745
|
+
data = __assign({}, this.createServiceRequestData());
|
|
746
|
+
return [2, this._call(PublicServiceMethod.GetPurchaseAdviceLines, data)];
|
|
747
|
+
});
|
|
748
|
+
});
|
|
749
|
+
};
|
|
741
750
|
TransactionPublic.prototype.createServiceRequestData = function () {
|
|
742
751
|
var data = { languageCode: this.languageCode };
|
|
743
752
|
return data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ 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 { PurchaseAdviceFilters } from "./model/purchase-advice-filters";
|
|
34
35
|
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
35
36
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
36
37
|
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
@@ -117,6 +118,7 @@ export declare class Transaction {
|
|
|
117
118
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
118
119
|
receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
119
120
|
receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
121
|
+
getPurchaseAdviceLines(filters: PurchaseAdviceFilters, goodId?: number): Promise<DataServiceResponseData>;
|
|
120
122
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
121
123
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
122
124
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -274,6 +274,9 @@ var Transaction = (function () {
|
|
|
274
274
|
Transaction.prototype.receiveGoodsForPurchaseOrderCorrection = function (request) {
|
|
275
275
|
return this.transaction.receiveGoodsForPurchaseOrderCorrection(request);
|
|
276
276
|
};
|
|
277
|
+
Transaction.prototype.getPurchaseAdviceLines = function (filters, goodId) {
|
|
278
|
+
return this.transaction.getPurchaseAdviceLines(filters, goodId);
|
|
279
|
+
};
|
|
277
280
|
Transaction.prototype.setRelationByUser = function (uuid, username, password) {
|
|
278
281
|
return __awaiter(this, void 0, void 0, function () {
|
|
279
282
|
return __generator(this, function (_a) {
|
|
@@ -39,6 +39,7 @@ 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 { PurchaseAdviceFilters } from "./model/purchase-advice-filters";
|
|
42
43
|
import { PurchasePortalFilters } from "./model/purchase-portal-filters.bo";
|
|
43
44
|
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
44
45
|
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
@@ -65,6 +66,15 @@ var remoteOptions = {
|
|
|
65
66
|
username: "patrick",
|
|
66
67
|
password: "patrick"
|
|
67
68
|
};
|
|
69
|
+
var developRemoteOptions = {
|
|
70
|
+
url: "http://130.62.7.55:8888/ione/",
|
|
71
|
+
ajaxUrl: "http://130.62.7.55:8888/ione/",
|
|
72
|
+
schema: "815",
|
|
73
|
+
version: "252",
|
|
74
|
+
useLoginEncryption: true,
|
|
75
|
+
username: "patrick",
|
|
76
|
+
password: "patrick"
|
|
77
|
+
};
|
|
68
78
|
var publicOptions = {
|
|
69
79
|
url: "http://130.62.7.180:8082/ione",
|
|
70
80
|
ajaxUrl: "http://130.62.7.180:8082/ione",
|
|
@@ -74,7 +84,7 @@ var publicOptions = {
|
|
|
74
84
|
describe("TransactionAPI", function () {
|
|
75
85
|
var transaction;
|
|
76
86
|
beforeEach(function () {
|
|
77
|
-
transaction = new Transaction(
|
|
87
|
+
transaction = new Transaction(developRemoteOptions);
|
|
78
88
|
jest.setTimeout(30000);
|
|
79
89
|
});
|
|
80
90
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -541,4 +551,23 @@ describe("TransactionAPI", function () {
|
|
|
541
551
|
}
|
|
542
552
|
});
|
|
543
553
|
}); });
|
|
554
|
+
it('getPurchaseAdviceLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
555
|
+
var filterObject, result;
|
|
556
|
+
return __generator(this, function (_a) {
|
|
557
|
+
switch (_a.label) {
|
|
558
|
+
case 0:
|
|
559
|
+
filterObject = new PurchaseAdviceFilters();
|
|
560
|
+
filterObject.transactionKind = 'A';
|
|
561
|
+
filterObject.purchaseAdvice = true;
|
|
562
|
+
filterObject.commissionAdvice = false;
|
|
563
|
+
filterObject.orderForComCode1 = true;
|
|
564
|
+
filterObject.warehouseCollection = [1];
|
|
565
|
+
return [4, transaction.getPurchaseAdviceLines(filterObject)];
|
|
566
|
+
case 1:
|
|
567
|
+
result = _a.sent();
|
|
568
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
569
|
+
return [2];
|
|
570
|
+
}
|
|
571
|
+
});
|
|
572
|
+
}); });
|
|
544
573
|
});
|