@colijnit/transactionapi 1.1.26 → 1.1.29
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/payment-method.enum.d.ts +2 -1
- package/build/enum/payment-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +5 -3
- package/build/model/create-payment-link-request.d.ts +5 -0
- package/build/model/create-payment-link-request.js +6 -0
- package/build/model/create-payment-link-result.bo.d.ts +7 -0
- package/build/model/create-payment-link-result.bo.js +22 -0
- package/build/model/doc-delivery-batch.bo.d.ts +5 -5
- package/build/model/paging-parameters.d.ts +2 -1
- package/build/model/paging-parameters.js +6 -1
- package/build/model/payment-request.d.ts +1 -1
- package/build/model/purchase-portal-line.bo.d.ts +4 -4
- package/build/transaction-auth.d.ts +4 -2
- package/build/transaction-auth.js +16 -2
- package/build/transaction-public.d.ts +4 -2
- package/build/transaction-public.js +4 -0
- package/build/transaction.d.ts +5 -3
- package/build/transaction.js +5 -2
- package/build/transaction.unit.test.js +14 -4
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare enum PaymentMethod {
|
|
2
2
|
CreateOutstandingEntry = "createOutstandingEntry",
|
|
3
|
-
RegisterSalesOrderPayment = "registerSalesOrderPayment"
|
|
3
|
+
RegisterSalesOrderPayment = "registerSalesOrderPayment",
|
|
4
|
+
CreateIonePaymentLinkAndQRCode = "createIonePaymentLinkAndQRCode"
|
|
4
5
|
}
|
|
@@ -2,4 +2,5 @@ export var PaymentMethod;
|
|
|
2
2
|
(function (PaymentMethod) {
|
|
3
3
|
PaymentMethod["CreateOutstandingEntry"] = "createOutstandingEntry";
|
|
4
4
|
PaymentMethod["RegisterSalesOrderPayment"] = "registerSalesOrderPayment";
|
|
5
|
+
PaymentMethod["CreateIonePaymentLinkAndQRCode"] = "createIonePaymentLinkAndQRCode";
|
|
5
6
|
})(PaymentMethod || (PaymentMethod = {}));
|
|
@@ -29,8 +29,9 @@ 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
|
|
33
|
-
import { PurchasePortalLine } from
|
|
32
|
+
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
33
|
+
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
34
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
34
35
|
export declare abstract class IoneApiTransaction {
|
|
35
36
|
readonly showLoader: Subject<boolean>;
|
|
36
37
|
readonly connectionAborted: Subject<void>;
|
|
@@ -87,6 +88,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
87
88
|
abstract setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
88
89
|
abstract createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
89
90
|
abstract registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
91
|
+
abstract createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
90
92
|
abstract getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
91
93
|
abstract changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
92
94
|
abstract changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
@@ -108,7 +110,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
108
110
|
abstract getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
109
111
|
abstract receiveGoodsForPurchaseOrder(request: ReceiveGoodsForPurchaseOrderRequest): Promise<DataServiceResponseData>;
|
|
110
112
|
abstract receiveGoodsForPurchaseOrderCorrection(request: ReceiveGoodsForPurchaseOrderCorrectionRequest): Promise<DataServiceResponseData>;
|
|
111
|
-
abstract getPurchasePortalLines(
|
|
113
|
+
abstract getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
112
114
|
abstract updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
113
115
|
abstract lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
114
116
|
abstract deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
@@ -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 CreatePaymentLinkResult = (function (_super) {
|
|
16
|
+
__extends(CreatePaymentLinkResult, _super);
|
|
17
|
+
function CreatePaymentLinkResult() {
|
|
18
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
19
|
+
}
|
|
20
|
+
return CreatePaymentLinkResult;
|
|
21
|
+
}(BusinessObject));
|
|
22
|
+
export { CreatePaymentLinkResult };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
2
|
export declare class DocDeliveryBatch extends BusinessObject {
|
|
3
3
|
deliveryBatch: string;
|
|
4
|
-
docAmountOrg:
|
|
5
|
-
docAmount:
|
|
6
|
-
docDateOrg:
|
|
7
|
-
docDate:
|
|
4
|
+
docAmountOrg: number;
|
|
5
|
+
docAmount: number;
|
|
6
|
+
docDateOrg: number;
|
|
7
|
+
docDate: number;
|
|
8
8
|
reference: string;
|
|
9
|
-
confirmedPrice:
|
|
9
|
+
confirmedPrice: number;
|
|
10
10
|
deleteLine: string;
|
|
11
11
|
}
|
|
@@ -10,6 +10,7 @@ export declare class PagingParameters {
|
|
|
10
10
|
pageUpperBound: number;
|
|
11
11
|
maximumRows: number;
|
|
12
12
|
isLastPage: boolean;
|
|
13
|
-
|
|
13
|
+
resultCount: number;
|
|
14
|
+
constructor(pageLowerBound?: number, pageUpperBound?: number, maximumRows?: number, isLastPage?: boolean, resultCount?: number);
|
|
14
15
|
setData(rawData: any): void;
|
|
15
16
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { notNill } from "../utils/function/not-nill.function";
|
|
2
2
|
var PagingParameters = (function () {
|
|
3
|
-
function PagingParameters(pageLowerBound, pageUpperBound, maximumRows, isLastPage) {
|
|
3
|
+
function PagingParameters(pageLowerBound, pageUpperBound, maximumRows, isLastPage, resultCount) {
|
|
4
4
|
if (pageLowerBound === void 0) { pageLowerBound = 1; }
|
|
5
5
|
if (pageUpperBound === void 0) { pageUpperBound = PagingParameters.DEFAULT_UPPER_BOUND; }
|
|
6
6
|
if (maximumRows === void 0) { maximumRows = PagingParameters.DEFAULT_UPPER_BOUND; }
|
|
7
7
|
if (isLastPage === void 0) { isLastPage = false; }
|
|
8
|
+
if (resultCount === void 0) { resultCount = 0; }
|
|
8
9
|
this.pageLowerBound = pageLowerBound;
|
|
9
10
|
this.pageUpperBound = pageUpperBound;
|
|
10
11
|
this.maximumRows = maximumRows;
|
|
11
12
|
this.isLastPage = isLastPage;
|
|
13
|
+
this.resultCount = resultCount;
|
|
12
14
|
}
|
|
13
15
|
PagingParameters.prototype.setData = function (rawData) {
|
|
14
16
|
if (!rawData) {
|
|
@@ -26,6 +28,9 @@ var PagingParameters = (function () {
|
|
|
26
28
|
if (notNill(rawData.isLastPage)) {
|
|
27
29
|
this.isLastPage = rawData.isLastPage;
|
|
28
30
|
}
|
|
31
|
+
if (notNill(rawData.resultCount)) {
|
|
32
|
+
this.resultCount = rawData.resultCount;
|
|
33
|
+
}
|
|
29
34
|
};
|
|
30
35
|
PagingParameters.DEFAULT_UPPER_BOUND = 1000;
|
|
31
36
|
PagingParameters.DEFAULTS = new PagingParameters(1, PagingParameters.DEFAULT_UPPER_BOUND, PagingParameters.DEFAULT_UPPER_BOUND);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
2
|
import { DocDeliveryBatch } from "./doc-delivery-batch.bo";
|
|
3
3
|
export declare class PurchasePortalLine extends BusinessObject {
|
|
4
|
-
transIdPurchase:
|
|
4
|
+
transIdPurchase: number;
|
|
5
5
|
transIdSales: string;
|
|
6
6
|
lineId: string;
|
|
7
7
|
transNo: string;
|
|
@@ -31,8 +31,8 @@ export declare class PurchasePortalLine extends BusinessObject {
|
|
|
31
31
|
amountToBeShipped: string;
|
|
32
32
|
amountSignedIn: string;
|
|
33
33
|
amountToBeConfirmed: string;
|
|
34
|
-
deliveryDate:
|
|
35
|
-
deliveryDateConfirmed:
|
|
34
|
+
deliveryDate: Date;
|
|
35
|
+
deliveryDateConfirmed: Date;
|
|
36
36
|
deliveryDateConfirmedOrg: string;
|
|
37
37
|
transportDate: string;
|
|
38
38
|
arrivalDate: string;
|
|
@@ -49,5 +49,5 @@ export declare class PurchasePortalLine extends BusinessObject {
|
|
|
49
49
|
articleNoSupplier: string;
|
|
50
50
|
deliveryBatchOrg: string;
|
|
51
51
|
deliveryBatch: string;
|
|
52
|
-
docBatchArray: DocDeliveryBatch;
|
|
52
|
+
docBatchArray: DocDeliveryBatch[];
|
|
53
53
|
}
|
|
@@ -28,8 +28,9 @@ 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
|
|
32
|
-
import { GetPurchasePortalLine } from
|
|
31
|
+
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
32
|
+
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
33
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
33
34
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
34
35
|
private _boSerializer;
|
|
35
36
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -96,6 +97,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
96
97
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
97
98
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
98
99
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
100
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
99
101
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
100
102
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
101
103
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
@@ -68,7 +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
|
|
71
|
+
import { PurchasePortal } from './model/purchase-portal-object-name.enum';
|
|
72
72
|
var TransactionAuth = (function (_super) {
|
|
73
73
|
__extends(TransactionAuth, _super);
|
|
74
74
|
function TransactionAuth() {
|
|
@@ -690,7 +690,7 @@ var TransactionAuth = (function (_super) {
|
|
|
690
690
|
var params = {
|
|
691
691
|
transUUID: request.transUUID,
|
|
692
692
|
amount: request.amount,
|
|
693
|
-
|
|
693
|
+
currencyId: request.currencyId,
|
|
694
694
|
paymentMethodCode: request.paymentMethodCode,
|
|
695
695
|
cashRegisterGroupId: request.cashRegisterGroupId
|
|
696
696
|
};
|
|
@@ -702,6 +702,20 @@ var TransactionAuth = (function (_super) {
|
|
|
702
702
|
};
|
|
703
703
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
704
704
|
};
|
|
705
|
+
TransactionAuth.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
706
|
+
var params = {
|
|
707
|
+
transUUID: request.transUUID,
|
|
708
|
+
amount: request.amount,
|
|
709
|
+
paymentMethodCode: request.paymentMethodCode
|
|
710
|
+
};
|
|
711
|
+
var data = {
|
|
712
|
+
moduleName: ModuleName.Accounting,
|
|
713
|
+
methodName: PaymentMethod.CreateIonePaymentLinkAndQRCode,
|
|
714
|
+
parameterValues: params,
|
|
715
|
+
refCursorAsArray: true
|
|
716
|
+
};
|
|
717
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
718
|
+
};
|
|
705
719
|
TransactionAuth.prototype.getPaymentMethods = function () {
|
|
706
720
|
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PaymentMethod);
|
|
707
721
|
};
|
|
@@ -28,8 +28,9 @@ 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
|
|
32
|
-
import { PurchasePortalLine } from
|
|
31
|
+
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
32
|
+
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
33
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
33
34
|
export declare class TransactionPublic extends IoneApiTransaction {
|
|
34
35
|
protected endPoint: string;
|
|
35
36
|
searchTransactions(request: TransactionSearchViewRequest): Promise<DataServiceResponseData>;
|
|
@@ -97,6 +98,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
97
98
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
98
99
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
99
100
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
101
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
100
102
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
101
103
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
102
104
|
getGoodsReceiptStatus(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
|
@@ -678,6 +678,10 @@ var TransactionPublic = (function (_super) {
|
|
|
678
678
|
console.warn('registerSalesOrderPayment not implemented');
|
|
679
679
|
return Promise.resolve(new DataServiceResponseData());
|
|
680
680
|
};
|
|
681
|
+
TransactionPublic.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
682
|
+
console.warn('createIonePaymentLinkAndQRCode not implemented');
|
|
683
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
684
|
+
};
|
|
681
685
|
TransactionPublic.prototype.getPaymentMethods = function () {
|
|
682
686
|
console.warn('registerSalesOrderPayment not implemented');
|
|
683
687
|
return Promise.resolve(new DataServiceResponseData());
|
package/build/transaction.d.ts
CHANGED
|
@@ -31,8 +31,9 @@ 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 {
|
|
35
|
-
import {
|
|
34
|
+
import { CreatePaymentLinkRequest } from './model/create-payment-link-request';
|
|
35
|
+
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
36
|
+
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
36
37
|
export declare class Transaction {
|
|
37
38
|
readonly showLoader: Subject<boolean>;
|
|
38
39
|
readonly connectionAborted: Subject<void>;
|
|
@@ -119,8 +120,9 @@ export declare class Transaction {
|
|
|
119
120
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
120
121
|
createOutstandingEntry(request: CreateOutstandingEntryRequest): Promise<DataServiceResponseData>;
|
|
121
122
|
registerSalesOrderPayment(request: PaymentRequest): Promise<DataServiceResponseData>;
|
|
123
|
+
createIonePaymentLinkAndQRCode(request: CreatePaymentLinkRequest): Promise<DataServiceResponseData>;
|
|
122
124
|
getPaymentMethods(): Promise<DataServiceResponseData>;
|
|
123
|
-
getPurchasePortalLines(
|
|
125
|
+
getPurchasePortalLines(purchasePortalLine: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
124
126
|
updatePurchasePortalLines(request: PurchasePortalLine): Promise<DataServiceResponseData>;
|
|
125
127
|
lockPurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
|
126
128
|
deletePurchasePortalLines(request: GetPurchasePortalLine): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -287,13 +287,16 @@ var Transaction = (function () {
|
|
|
287
287
|
Transaction.prototype.registerSalesOrderPayment = function (request) {
|
|
288
288
|
return this.transaction.registerSalesOrderPayment(request);
|
|
289
289
|
};
|
|
290
|
+
Transaction.prototype.createIonePaymentLinkAndQRCode = function (request) {
|
|
291
|
+
return this.transaction.createIonePaymentLinkAndQRCode(request);
|
|
292
|
+
};
|
|
290
293
|
Transaction.prototype.getPaymentMethods = function () {
|
|
291
294
|
return this.transaction.getPaymentMethods();
|
|
292
295
|
};
|
|
293
|
-
Transaction.prototype.getPurchasePortalLines = function (
|
|
296
|
+
Transaction.prototype.getPurchasePortalLines = function (purchasePortalLine) {
|
|
294
297
|
return __awaiter(this, void 0, void 0, function () {
|
|
295
298
|
return __generator(this, function (_a) {
|
|
296
|
-
return [2, this.transaction.getPurchasePortalLines(
|
|
299
|
+
return [2, this.transaction.getPurchasePortalLines(purchasePortalLine)];
|
|
297
300
|
});
|
|
298
301
|
});
|
|
299
302
|
};
|
|
@@ -42,6 +42,7 @@ import { TransactionSearchViewRequest } from './model/transaction-search-view-re
|
|
|
42
42
|
import { PurchasePortalFilters } from "./model/purchase-portal-filters.bo";
|
|
43
43
|
import { GetPurchasePortalLine } from "./model/get-purchase-portal-line";
|
|
44
44
|
import { PurchasePortalLine } from "./model/purchase-portal-line.bo";
|
|
45
|
+
import { DocDeliveryBatch } from "./model/doc-delivery-batch.bo";
|
|
45
46
|
var options = {
|
|
46
47
|
url: 'http',
|
|
47
48
|
ajaxUrl: 'http'
|
|
@@ -199,7 +200,7 @@ describe("TransactionAPI", function () {
|
|
|
199
200
|
}
|
|
200
201
|
});
|
|
201
202
|
}); });
|
|
202
|
-
it('
|
|
203
|
+
it('getPurchasePortalLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
204
|
var purchasePortalFilter, purchasePortalLine, result;
|
|
204
205
|
return __generator(this, function (_a) {
|
|
205
206
|
switch (_a.label) {
|
|
@@ -245,12 +246,21 @@ describe("TransactionAPI", function () {
|
|
|
245
246
|
});
|
|
246
247
|
}); });
|
|
247
248
|
it('updatePurchaseOrderLines', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
-
var purchasePortalLine, result;
|
|
249
|
+
var docBatchArray, purchasePortalLine, result;
|
|
249
250
|
return __generator(this, function (_a) {
|
|
250
251
|
switch (_a.label) {
|
|
251
252
|
case 0:
|
|
253
|
+
docBatchArray = new DocDeliveryBatch();
|
|
254
|
+
docBatchArray.deliveryBatch = "batch3";
|
|
255
|
+
docBatchArray.docAmount = 1;
|
|
256
|
+
docBatchArray.confirmedPrice = 10;
|
|
257
|
+
docBatchArray.reference = "Test ref";
|
|
258
|
+
docBatchArray.deleteLine = "F";
|
|
259
|
+
docBatchArray.docAmount = 2;
|
|
260
|
+
docBatchArray.docDate = 1656626400000;
|
|
261
|
+
docBatchArray.docDateOrg = 1656626400000;
|
|
252
262
|
purchasePortalLine = new PurchasePortalLine();
|
|
253
|
-
purchasePortalLine.transIdPurchase =
|
|
263
|
+
purchasePortalLine.transIdPurchase = 108937;
|
|
254
264
|
purchasePortalLine.transIdSales = null;
|
|
255
265
|
purchasePortalLine.lineId = null;
|
|
256
266
|
purchasePortalLine.transNo = null;
|
|
@@ -298,7 +308,7 @@ describe("TransactionAPI", function () {
|
|
|
298
308
|
purchasePortalLine.articleNoSupplier = null;
|
|
299
309
|
purchasePortalLine.deliveryBatchOrg = null;
|
|
300
310
|
purchasePortalLine.deliveryBatch = null;
|
|
301
|
-
purchasePortalLine.docBatchArray =
|
|
311
|
+
purchasePortalLine.docBatchArray = [docBatchArray];
|
|
302
312
|
return [4, transaction.updatePurchasePortalLines(purchasePortalLine)];
|
|
303
313
|
case 1:
|
|
304
314
|
result = _a.sent();
|