@colijnit/transactionapi 1.1.10 → 1.1.13
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/discount-type.enum.d.ts +9 -0
- package/build/enum/discount-type.enum.js +10 -0
- package/build/enum/master-data-object-name.enum.d.ts +3 -1
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/operation-name.enum.d.ts +3 -1
- package/build/enum/operation-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +3 -1
- package/build/enum/public-service-method.js +2 -0
- package/build/enum/transaction-method.enum.d.ts +17 -4
- package/build/enum/transaction-method.enum.js +16 -3
- package/build/enum/transaction-object-name.enum.d.ts +3 -0
- package/build/enum/transaction-object-name.enum.js +4 -0
- package/build/ione-api-transaction.d.ts +37 -4
- package/build/model/cash-register.d.ts +13 -0
- package/build/model/cash-register.js +25 -0
- package/build/model/change-line-assembly-time-request.d.ts +5 -0
- package/build/model/change-line-assembly-time-request.js +6 -0
- package/build/model/change-line-collection-code-request.d.ts +5 -0
- package/build/model/change-line-collection-code-request.js +6 -0
- package/build/model/change-line-commission-code-request.d.ts +5 -0
- package/build/model/change-line-commission-code-request.js +6 -0
- package/build/model/change-line-delivery-date-request.d.ts +5 -0
- package/build/model/change-line-delivery-date-request.js +20 -0
- package/build/model/change-line-delivery-method-request.d.ts +5 -0
- package/build/model/change-line-delivery-method-request.js +6 -0
- package/build/model/change-line-discount-request.d.ts +8 -0
- package/build/model/change-line-discount-request.js +6 -0
- package/build/model/change-line-edit-time-request.d.ts +5 -0
- package/build/model/change-line-edit-time-request.js +6 -0
- package/build/model/change-line-price-list-request.d.ts +5 -0
- package/build/model/change-line-price-list-request.js +6 -0
- package/build/model/change-line-price-request.d.ts +5 -0
- package/build/model/change-line-price-request.js +6 -0
- package/build/model/change-line-quantity-request.d.ts +5 -0
- package/build/model/change-line-quantity-request.js +6 -0
- package/build/model/change-line-reference-request.d.ts +5 -0
- package/build/model/change-line-reference-request.js +6 -0
- package/build/model/change-line-sequence-request.d.ts +6 -0
- package/build/model/change-line-sequence-request.js +6 -0
- package/build/model/change-line-supplier-article-number-request.d.ts +5 -0
- package/build/model/change-line-supplier-article-number-request.js +6 -0
- package/build/model/change-line-vat-request.d.ts +5 -0
- package/build/model/change-line-vat-request.js +6 -0
- package/build/model/change-line-warehouse-request.d.ts +5 -0
- package/build/model/change-line-warehouse-request.js +6 -0
- package/build/model/price-list.d.ts +2 -0
- package/build/model/price-list.js +18 -0
- package/build/model/resolve-pending-reason-request.bo.d.ts +1 -1
- package/build/model/resolve-pending-reason-request.bo.js +4 -4
- package/build/model/search-transaction-request.d.ts +43 -0
- package/build/model/search-transaction-request.js +38 -0
- package/build/model/set-transaction-delivery-options-request.bo.d.ts +7 -0
- package/build/model/set-transaction-delivery-options-request.bo.js +4 -0
- package/build/model/transaction-info-response.bo.js +2 -0
- package/build/model/transaction-line-info.bo.d.ts +25 -4
- package/build/model/vat.d.ts +15 -0
- package/build/model/vat.js +43 -0
- package/build/transaction-auth.d.ts +37 -4
- package/build/transaction-auth.js +156 -17
- package/build/transaction-public.d.ts +37 -4
- package/build/transaction-public.js +93 -17
- package/build/transaction.d.ts +37 -4
- package/build/transaction.js +56 -4
- package/build/transaction.unit.test.js +88 -0
- package/package.json +1 -1
|
@@ -73,6 +73,15 @@ var TransactionPublic = (function (_super) {
|
|
|
73
73
|
_this.endPoint = EndPoint.PublicService;
|
|
74
74
|
return _this;
|
|
75
75
|
}
|
|
76
|
+
TransactionPublic.prototype.searchTransactions = function (request) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
78
|
+
var data;
|
|
79
|
+
return __generator(this, function (_a) {
|
|
80
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: request });
|
|
81
|
+
return [2, this._call(PublicServiceMethod.SearchTransactions, data)];
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
};
|
|
76
85
|
TransactionPublic.prototype.getGoodIdFromArticleNr = function (sku) {
|
|
77
86
|
return __awaiter(this, void 0, void 0, function () {
|
|
78
87
|
var params, data;
|
|
@@ -165,6 +174,10 @@ var TransactionPublic = (function (_super) {
|
|
|
165
174
|
});
|
|
166
175
|
});
|
|
167
176
|
};
|
|
177
|
+
TransactionPublic.prototype.getCashRegisters = function () {
|
|
178
|
+
var data = __assign({}, this.createServiceRequestData());
|
|
179
|
+
return this._call(PublicServiceMethod.GetCashRegisters, data);
|
|
180
|
+
};
|
|
168
181
|
TransactionPublic.prototype.getCustomerGroups = function () {
|
|
169
182
|
return __awaiter(this, void 0, void 0, function () {
|
|
170
183
|
var data;
|
|
@@ -365,21 +378,67 @@ var TransactionPublic = (function (_super) {
|
|
|
365
378
|
});
|
|
366
379
|
});
|
|
367
380
|
};
|
|
368
|
-
TransactionPublic.prototype.changeLineSequence = function (
|
|
381
|
+
TransactionPublic.prototype.changeLineSequence = function (request) {
|
|
369
382
|
return __awaiter(this, void 0, void 0, function () {
|
|
370
|
-
var
|
|
383
|
+
var data;
|
|
371
384
|
return __generator(this, function (_a) {
|
|
372
|
-
|
|
373
|
-
transactionUuid: uuid,
|
|
374
|
-
lineUuid: lineUuid,
|
|
375
|
-
aboveLineNr: aboveLineNr,
|
|
376
|
-
belowLineNr: belowLineNr
|
|
377
|
-
};
|
|
378
|
-
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
385
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: request });
|
|
379
386
|
return [2, this._call(PublicServiceMethod.ChangeLineSequence, data)];
|
|
380
387
|
});
|
|
381
388
|
});
|
|
382
389
|
};
|
|
390
|
+
TransactionPublic.prototype.changeLineCommissionCode = function (request) {
|
|
391
|
+
console.warn('not implemented');
|
|
392
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
393
|
+
};
|
|
394
|
+
TransactionPublic.prototype.changeLineWarehouse = function (request) {
|
|
395
|
+
console.warn('not implemented');
|
|
396
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
397
|
+
};
|
|
398
|
+
TransactionPublic.prototype.changeLinePrice = function (request) {
|
|
399
|
+
console.warn('not implemented');
|
|
400
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
401
|
+
};
|
|
402
|
+
TransactionPublic.prototype.changeLinePriceList = function (request) {
|
|
403
|
+
console.warn('not implemented');
|
|
404
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
405
|
+
};
|
|
406
|
+
TransactionPublic.prototype.changeLineVat = function (request) {
|
|
407
|
+
console.warn('not implemented');
|
|
408
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
409
|
+
};
|
|
410
|
+
TransactionPublic.prototype.changeLineDiscount = function (request) {
|
|
411
|
+
console.warn('not implemented');
|
|
412
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
413
|
+
};
|
|
414
|
+
TransactionPublic.prototype.changeLineDeliveryMethod = function (request) {
|
|
415
|
+
console.warn('not implemented');
|
|
416
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
417
|
+
};
|
|
418
|
+
TransactionPublic.prototype.changeLineDeliveryDate = function (request) {
|
|
419
|
+
console.warn('not implemented');
|
|
420
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
421
|
+
};
|
|
422
|
+
TransactionPublic.prototype.changeLineAssemblyTime = function (request) {
|
|
423
|
+
console.warn('not implemented');
|
|
424
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
425
|
+
};
|
|
426
|
+
TransactionPublic.prototype.changeLineEditTime = function (request) {
|
|
427
|
+
console.warn('not implemented');
|
|
428
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
429
|
+
};
|
|
430
|
+
TransactionPublic.prototype.changeLineSupplierArticleNumber = function (request) {
|
|
431
|
+
console.warn('not implemented');
|
|
432
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
433
|
+
};
|
|
434
|
+
TransactionPublic.prototype.changeLineReference = function (request) {
|
|
435
|
+
console.warn('not implemented');
|
|
436
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
437
|
+
};
|
|
438
|
+
TransactionPublic.prototype.changeLineCollectionCode = function (request) {
|
|
439
|
+
console.warn('not implemented');
|
|
440
|
+
return Promise.resolve(new DataServiceResponseData());
|
|
441
|
+
};
|
|
383
442
|
TransactionPublic.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
384
443
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
444
|
var params, data;
|
|
@@ -405,16 +464,11 @@ var TransactionPublic = (function (_super) {
|
|
|
405
464
|
});
|
|
406
465
|
});
|
|
407
466
|
};
|
|
408
|
-
TransactionPublic.prototype.
|
|
467
|
+
TransactionPublic.prototype.changeLineQuantity = function (request) {
|
|
409
468
|
return __awaiter(this, void 0, void 0, function () {
|
|
410
|
-
var
|
|
469
|
+
var data;
|
|
411
470
|
return __generator(this, function (_a) {
|
|
412
|
-
|
|
413
|
-
transactionUuid: transactionUuid,
|
|
414
|
-
transactionLineUuid: lineUuid,
|
|
415
|
-
newQuantity: quantity
|
|
416
|
-
};
|
|
417
|
-
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
471
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: request });
|
|
418
472
|
return [2, this._call(PublicServiceMethod.ChangeTransactionLineQuantity, data)];
|
|
419
473
|
});
|
|
420
474
|
});
|
|
@@ -483,6 +537,28 @@ var TransactionPublic = (function (_super) {
|
|
|
483
537
|
});
|
|
484
538
|
});
|
|
485
539
|
};
|
|
540
|
+
TransactionPublic.prototype.getPriceLists = function (code) {
|
|
541
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
542
|
+
var params, data;
|
|
543
|
+
return __generator(this, function (_a) {
|
|
544
|
+
params = {};
|
|
545
|
+
if (code) {
|
|
546
|
+
params.code = code;
|
|
547
|
+
}
|
|
548
|
+
data = __assign(__assign({}, this.createServiceRequestData()), { parameterValues: params });
|
|
549
|
+
return [2, this._call(PublicServiceMethod.GetDeliveryMethods, data)];
|
|
550
|
+
});
|
|
551
|
+
});
|
|
552
|
+
};
|
|
553
|
+
TransactionPublic.prototype.getVatList = function (onlyValid) {
|
|
554
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
555
|
+
var data;
|
|
556
|
+
return __generator(this, function (_a) {
|
|
557
|
+
data = __assign({}, this.createServiceRequestData());
|
|
558
|
+
return [2, null];
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
};
|
|
486
562
|
TransactionPublic.prototype.getDeliveryMethods = function () {
|
|
487
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
488
564
|
var data;
|
package/build/transaction.d.ts
CHANGED
|
@@ -5,11 +5,27 @@ import { DataServiceResponseData } from "./model/data-service-response-data";
|
|
|
5
5
|
import { TransactionKind } from "./enum/transaction-kind.enum";
|
|
6
6
|
import { SetTransactionDeliveryOptionsRequest } from "./model/set-transaction-delivery-options-request.bo";
|
|
7
7
|
import { TransactionLineType } from "./enum/transaction-line-type.enum";
|
|
8
|
-
import {
|
|
8
|
+
import { ResolveLinePendingReasonRequest } from "./model/resolve-pending-reason-request.bo";
|
|
9
9
|
import { SequenceName } from "./enum/sequence-name.enum";
|
|
10
10
|
import { CustomerFullObject } from "./model/customer-full-object.bo";
|
|
11
11
|
import { RelationRequest } from "./model/relation-request";
|
|
12
12
|
import { Options } from "@colijnit/ioneconnector/build/model/options";
|
|
13
|
+
import { ChangeLineSequenceRequest } from "./model/change-line-sequence-request";
|
|
14
|
+
import { ChangeLineQuantityRequest } from "./model/change-line-quantity-request";
|
|
15
|
+
import { ChangeLineCommissionCodeRequest } from "./model/change-line-commission-code-request";
|
|
16
|
+
import { ChangeLineWarehouseRequest } from "./model/change-line-warehouse-request";
|
|
17
|
+
import { ChangeLinePriceRequest } from "./model/change-line-price-request";
|
|
18
|
+
import { ChangeLinePriceListRequest } from "./model/change-line-price-list-request";
|
|
19
|
+
import { ChangeLineVatRequest } from "./model/change-line-vat-request";
|
|
20
|
+
import { ChangeLineDiscountRequest } from "./model/change-line-discount-request";
|
|
21
|
+
import { ChangeLineDeliveryMethodRequest } from "./model/change-line-delivery-method-request";
|
|
22
|
+
import { ChangeLineDeliveryDateRequest } from "./model/change-line-delivery-date-request";
|
|
23
|
+
import { ChangeLineAssemblyTimeRequest } from "./model/change-line-assembly-time-request";
|
|
24
|
+
import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request";
|
|
25
|
+
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
26
|
+
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
27
|
+
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
28
|
+
import { SearchTransactionRequest } from "./model/search-transaction-request";
|
|
13
29
|
export declare class Transaction {
|
|
14
30
|
readonly showLoader: Subject<boolean>;
|
|
15
31
|
readonly connectionAborted: Subject<void>;
|
|
@@ -46,19 +62,36 @@ export declare class Transaction {
|
|
|
46
62
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<DataServiceResponseData>;
|
|
47
63
|
getTransactionById(transactionId: number): Promise<DataServiceResponseData>;
|
|
48
64
|
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<DataServiceResponseData>;
|
|
65
|
+
getCashRegister(branch?: string, group?: number): Promise<DataServiceResponseData>;
|
|
49
66
|
addRelationToTransaction(uuid: string, relationId: number): Promise<DataServiceResponseData>;
|
|
50
67
|
saveTransaction(uuid: string): Promise<DataServiceResponseData>;
|
|
51
68
|
setTransactionDeliveryOptions(request: SetTransactionDeliveryOptionsRequest): Promise<DataServiceResponseData>;
|
|
52
69
|
addTransactionLine(uuid: string, lineType: TransactionLineType, articleNumber: string, amount: number, warehouseNr?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
53
70
|
addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
54
|
-
changeLineSequence(
|
|
71
|
+
changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
55
72
|
cancelAddTransactionLine(lineUuid: string): Promise<DataServiceResponseData>;
|
|
56
73
|
deleteTransactionLine(uuid: string, lineUuid: string): Promise<DataServiceResponseData>;
|
|
57
|
-
changeTransactionLineQuantity(
|
|
58
|
-
|
|
74
|
+
changeTransactionLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
75
|
+
changeTransactionLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
76
|
+
changeTransactionLineWarehouse(request: ChangeLineWarehouseRequest): Promise<DataServiceResponseData>;
|
|
77
|
+
changeTransactionLinePrice(request: ChangeLinePriceRequest): Promise<DataServiceResponseData>;
|
|
78
|
+
changeTransactionLinePriceList(request: ChangeLinePriceListRequest): Promise<DataServiceResponseData>;
|
|
79
|
+
changeTransactionLineVat(request: ChangeLineVatRequest): Promise<DataServiceResponseData>;
|
|
80
|
+
changeTransactionLineDiscount(request: ChangeLineDiscountRequest): Promise<DataServiceResponseData>;
|
|
81
|
+
changeTransactionLineDeliveryMethod(request: ChangeLineDeliveryMethodRequest): Promise<DataServiceResponseData>;
|
|
82
|
+
changeTransactionLineDeliveryDate(request: ChangeLineDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
83
|
+
changeTransactionLineAssemblyTime(request: ChangeLineAssemblyTimeRequest): Promise<DataServiceResponseData>;
|
|
84
|
+
changeTransactionLineEditTime(request: ChangeLineEditTimeRequest): Promise<DataServiceResponseData>;
|
|
85
|
+
changeTransactionLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
86
|
+
changeTransactionLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
87
|
+
changeTransactionLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
88
|
+
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
89
|
+
searchTransactions(request: SearchTransactionRequest): Promise<DataServiceResponseData>;
|
|
59
90
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
60
91
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
61
92
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
93
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
94
|
+
getVatList(onlyValid?: boolean): Promise<DataServiceResponseData>;
|
|
62
95
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
63
96
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
64
97
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -124,6 +124,9 @@ var Transaction = (function () {
|
|
|
124
124
|
Transaction.prototype.getArticleBoundTextLinesOfArticleLine = function (articleLineUuid) {
|
|
125
125
|
return this.transaction.getArticleBoundTextLinesOfArticleLine(articleLineUuid);
|
|
126
126
|
};
|
|
127
|
+
Transaction.prototype.getCashRegister = function (branch, group) {
|
|
128
|
+
return this.transaction.getCashRegisters(branch, group);
|
|
129
|
+
};
|
|
127
130
|
Transaction.prototype.addRelationToTransaction = function (uuid, relationId) {
|
|
128
131
|
return this.transaction.addRelationToTransaction(uuid, relationId);
|
|
129
132
|
};
|
|
@@ -139,8 +142,8 @@ var Transaction = (function () {
|
|
|
139
142
|
Transaction.prototype.addTextLineToTransaction = function (uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
140
143
|
return this.transaction.addTextLineToTransaction(uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr);
|
|
141
144
|
};
|
|
142
|
-
Transaction.prototype.changeLineSequence = function (
|
|
143
|
-
return this.transaction.changeLineSequence(
|
|
145
|
+
Transaction.prototype.changeLineSequence = function (request) {
|
|
146
|
+
return this.transaction.changeLineSequence(request);
|
|
144
147
|
};
|
|
145
148
|
Transaction.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
146
149
|
return this.transaction.cancelAddTransactionLine(lineUuid);
|
|
@@ -148,12 +151,54 @@ var Transaction = (function () {
|
|
|
148
151
|
Transaction.prototype.deleteTransactionLine = function (uuid, lineUuid) {
|
|
149
152
|
return this.transaction.deleteTransactionLine(uuid, lineUuid);
|
|
150
153
|
};
|
|
151
|
-
Transaction.prototype.changeTransactionLineQuantity = function (
|
|
152
|
-
return this.transaction.
|
|
154
|
+
Transaction.prototype.changeTransactionLineQuantity = function (request) {
|
|
155
|
+
return this.transaction.changeLineQuantity(request);
|
|
156
|
+
};
|
|
157
|
+
Transaction.prototype.changeTransactionLineCommissionCode = function (request) {
|
|
158
|
+
return this.transaction.changeLineCommissionCode(request);
|
|
159
|
+
};
|
|
160
|
+
Transaction.prototype.changeTransactionLineWarehouse = function (request) {
|
|
161
|
+
return this.transaction.changeLineWarehouse(request);
|
|
162
|
+
};
|
|
163
|
+
Transaction.prototype.changeTransactionLinePrice = function (request) {
|
|
164
|
+
return this.transaction.changeLinePrice(request);
|
|
165
|
+
};
|
|
166
|
+
Transaction.prototype.changeTransactionLinePriceList = function (request) {
|
|
167
|
+
return this.transaction.changeLinePriceList(request);
|
|
168
|
+
};
|
|
169
|
+
Transaction.prototype.changeTransactionLineVat = function (request) {
|
|
170
|
+
return this.transaction.changeLineVat(request);
|
|
171
|
+
};
|
|
172
|
+
Transaction.prototype.changeTransactionLineDiscount = function (request) {
|
|
173
|
+
return this.transaction.changeLineDiscount(request);
|
|
174
|
+
};
|
|
175
|
+
Transaction.prototype.changeTransactionLineDeliveryMethod = function (request) {
|
|
176
|
+
return this.transaction.changeLineDeliveryMethod(request);
|
|
177
|
+
};
|
|
178
|
+
Transaction.prototype.changeTransactionLineDeliveryDate = function (request) {
|
|
179
|
+
return this.transaction.changeLineDeliveryDate(request);
|
|
180
|
+
};
|
|
181
|
+
Transaction.prototype.changeTransactionLineAssemblyTime = function (request) {
|
|
182
|
+
return this.transaction.changeLineAssemblyTime(request);
|
|
183
|
+
};
|
|
184
|
+
Transaction.prototype.changeTransactionLineEditTime = function (request) {
|
|
185
|
+
return this.transaction.changeLineEditTime(request);
|
|
186
|
+
};
|
|
187
|
+
Transaction.prototype.changeTransactionLineSupplierArticleNumber = function (request) {
|
|
188
|
+
return this.transaction.changeLineSupplierArticleNumber(request);
|
|
189
|
+
};
|
|
190
|
+
Transaction.prototype.changeTransactionLineReference = function (request) {
|
|
191
|
+
return this.transaction.changeLineReference(request);
|
|
192
|
+
};
|
|
193
|
+
Transaction.prototype.changeTransactionLineCollectionCode = function (request) {
|
|
194
|
+
return this.transaction.changeLineCollectionCode(request);
|
|
153
195
|
};
|
|
154
196
|
Transaction.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
155
197
|
return this.transaction.resolvePendingLineReason(pendingLineValues);
|
|
156
198
|
};
|
|
199
|
+
Transaction.prototype.searchTransactions = function (request) {
|
|
200
|
+
return this.transaction.searchTransactions(request);
|
|
201
|
+
};
|
|
157
202
|
Transaction.prototype.getCustomerFullObject = function (relationNo) {
|
|
158
203
|
return this.transaction.getCustomerFullObject(relationNo);
|
|
159
204
|
};
|
|
@@ -164,6 +209,13 @@ var Transaction = (function () {
|
|
|
164
209
|
if (noSequence === void 0) { noSequence = false; }
|
|
165
210
|
return this.transaction.getSequenceValue(sequenceName, noSequence);
|
|
166
211
|
};
|
|
212
|
+
Transaction.prototype.getPriceLists = function (code) {
|
|
213
|
+
return this.transaction.getPriceLists(code);
|
|
214
|
+
};
|
|
215
|
+
Transaction.prototype.getVatList = function (onlyValid) {
|
|
216
|
+
if (onlyValid === void 0) { onlyValid = false; }
|
|
217
|
+
return this.transaction.getVatList(onlyValid);
|
|
218
|
+
};
|
|
167
219
|
Transaction.prototype.insertCustomer = function (customer) {
|
|
168
220
|
return this.transaction.insertCustomer(customer);
|
|
169
221
|
};
|
|
@@ -38,6 +38,7 @@ import { Transaction } from "./transaction";
|
|
|
38
38
|
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
|
+
import { SearchTransactionRequest } from "./model/search-transaction-request";
|
|
41
42
|
var options = {
|
|
42
43
|
url: 'http',
|
|
43
44
|
ajaxUrl: 'http'
|
|
@@ -231,4 +232,91 @@ describe("TransactionAPI", function () {
|
|
|
231
232
|
}
|
|
232
233
|
});
|
|
233
234
|
}); });
|
|
235
|
+
it('getCashRegisters', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
236
|
+
var result;
|
|
237
|
+
return __generator(this, function (_a) {
|
|
238
|
+
switch (_a.label) {
|
|
239
|
+
case 0: return [4, transaction.getCashRegister()];
|
|
240
|
+
case 1:
|
|
241
|
+
result = _a.sent();
|
|
242
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
243
|
+
return [2];
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
}); });
|
|
247
|
+
it('getCashRegistersFromBranch', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
248
|
+
var result;
|
|
249
|
+
return __generator(this, function (_a) {
|
|
250
|
+
switch (_a.label) {
|
|
251
|
+
case 0: return [4, transaction.getCashRegister("1")];
|
|
252
|
+
case 1:
|
|
253
|
+
result = _a.sent();
|
|
254
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
255
|
+
return [2];
|
|
256
|
+
}
|
|
257
|
+
});
|
|
258
|
+
}); });
|
|
259
|
+
it('getCashRegistersFromGroup', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
260
|
+
var result;
|
|
261
|
+
return __generator(this, function (_a) {
|
|
262
|
+
switch (_a.label) {
|
|
263
|
+
case 0: return [4, transaction.getCashRegister()];
|
|
264
|
+
case 1:
|
|
265
|
+
result = _a.sent();
|
|
266
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
267
|
+
return [2];
|
|
268
|
+
}
|
|
269
|
+
});
|
|
270
|
+
}); });
|
|
271
|
+
it('getPriceLists', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
272
|
+
var result;
|
|
273
|
+
return __generator(this, function (_a) {
|
|
274
|
+
switch (_a.label) {
|
|
275
|
+
case 0: return [4, transaction.getPriceLists('test')];
|
|
276
|
+
case 1:
|
|
277
|
+
result = _a.sent();
|
|
278
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
279
|
+
return [2];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}); });
|
|
283
|
+
it('getVatCodes', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
284
|
+
var result;
|
|
285
|
+
return __generator(this, function (_a) {
|
|
286
|
+
switch (_a.label) {
|
|
287
|
+
case 0: return [4, transaction.getVatList(true)];
|
|
288
|
+
case 1:
|
|
289
|
+
result = _a.sent();
|
|
290
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
291
|
+
return [2];
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
}); });
|
|
295
|
+
it('getDeliveryMethods', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
296
|
+
var result;
|
|
297
|
+
return __generator(this, function (_a) {
|
|
298
|
+
switch (_a.label) {
|
|
299
|
+
case 0: return [4, transaction.getDeliveryMethods()];
|
|
300
|
+
case 1:
|
|
301
|
+
result = _a.sent();
|
|
302
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
303
|
+
return [2];
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
}); });
|
|
307
|
+
it('searchTransactions', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
308
|
+
var request, result;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0:
|
|
312
|
+
request = new SearchTransactionRequest();
|
|
313
|
+
request.general = 'lange';
|
|
314
|
+
return [4, transaction.searchTransactions(request)];
|
|
315
|
+
case 1:
|
|
316
|
+
result = _a.sent();
|
|
317
|
+
expect(result.resultObjects.length).toBeGreaterThan(0);
|
|
318
|
+
return [2];
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
}); });
|
|
234
322
|
});
|