@colijnit/transactionapi 1.1.41 → 1.1.43
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.
|
@@ -37,6 +37,18 @@ export declare class TransactionListObject extends BusinessObject {
|
|
|
37
37
|
sourceGoodId: number;
|
|
38
38
|
sourceDocId: number;
|
|
39
39
|
createdBy: string;
|
|
40
|
+
quantityAllocatedFromStock: number;
|
|
41
|
+
quantityToBePicked: number;
|
|
42
|
+
quantityPicked: number;
|
|
43
|
+
quantityPlanned: number;
|
|
44
|
+
quantityDelivered: number;
|
|
45
|
+
quantityInvoiced: number;
|
|
46
|
+
quantityPlanningRequested: number;
|
|
47
|
+
quantityPlanningPreferredDateEntered: number;
|
|
48
|
+
quantityPlanningFinal: number;
|
|
49
|
+
quantityItemAccepted: number;
|
|
50
|
+
quantityTransportNotification: number;
|
|
51
|
+
quantityPurchaseConfirmed: number;
|
|
40
52
|
get closedAsString(): string;
|
|
41
53
|
get statusOfSalesOrder(): string;
|
|
42
54
|
get isDefinitiveDate(): boolean;
|
package/build/transaction.js
CHANGED
|
@@ -362,7 +362,7 @@ var Transaction = (function () {
|
|
|
362
362
|
return this.transaction.generatePurchaseOrders(purchaseAdviceLines);
|
|
363
363
|
};
|
|
364
364
|
Transaction.prototype.generateAndSendPurchaseOrders = function (purchaseAdviceLines) {
|
|
365
|
-
return this.transaction.
|
|
365
|
+
return this.transaction.generateAndSendPurchaseOrders(purchaseAdviceLines);
|
|
366
366
|
};
|
|
367
367
|
Transaction.prototype.setRelationByUser = function (uuid, username, password) {
|
|
368
368
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -43,6 +43,7 @@ import { PurchaseAdviceFilters } from './model/purchase-advice-filters';
|
|
|
43
43
|
import { PurchasePortalFilters } from './model/purchase-portal-filters.bo';
|
|
44
44
|
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
45
45
|
import { DocDeliveryBatch } from './model/doc-delivery-batch.bo';
|
|
46
|
+
import { PurchaseAdviceLine } from "./model/purchase-advice-line.bo";
|
|
46
47
|
var options = {
|
|
47
48
|
url: 'http',
|
|
48
49
|
ajaxUrl: 'http'
|
|
@@ -83,7 +84,7 @@ var publicOptions = {
|
|
|
83
84
|
describe("TransactionAPI", function () {
|
|
84
85
|
var transaction;
|
|
85
86
|
beforeEach(function () {
|
|
86
|
-
transaction = new Transaction(
|
|
87
|
+
transaction = new Transaction(developRemoteOptions);
|
|
87
88
|
jest.setTimeout(130000);
|
|
88
89
|
});
|
|
89
90
|
it('getPostalCodeRetrieval_shouldContainCityMiddelburg', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -575,7 +576,69 @@ describe("TransactionAPI", function () {
|
|
|
575
576
|
filterObject.commissionAdvice = false;
|
|
576
577
|
filterObject.orderForComCode1 = true;
|
|
577
578
|
filterObject.warehouseCollection = [1];
|
|
578
|
-
return [4, transaction.getPurchaseAdviceLines(filterObject)];
|
|
579
|
+
return [4, transaction.getPurchaseAdviceLines(filterObject, 688158)];
|
|
580
|
+
case 1:
|
|
581
|
+
result = _a.sent();
|
|
582
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
583
|
+
return [2];
|
|
584
|
+
}
|
|
585
|
+
});
|
|
586
|
+
}); });
|
|
587
|
+
it('generateAndSendPurchaseOrders', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
588
|
+
var line, result;
|
|
589
|
+
return __generator(this, function (_a) {
|
|
590
|
+
switch (_a.label) {
|
|
591
|
+
case 0:
|
|
592
|
+
line = Object.assign(new PurchaseAdviceLine(), {
|
|
593
|
+
"groupOrders": "T",
|
|
594
|
+
"salesDescription": "Leveringsvoorwaarden",
|
|
595
|
+
"carriageOrderAmount": 10000,
|
|
596
|
+
"orderAmount": 10,
|
|
597
|
+
"purchasePrice": 0,
|
|
598
|
+
"articleNo": "1000364753",
|
|
599
|
+
"codeCommission": "1",
|
|
600
|
+
"turnOverGroupNo": "100",
|
|
601
|
+
"freeSupplier": "T",
|
|
602
|
+
"currencyId": 27,
|
|
603
|
+
"dontSendOrderForms": "F",
|
|
604
|
+
"selected": "T",
|
|
605
|
+
"amountPurchaseList": 2,
|
|
606
|
+
"supplierProduct": [
|
|
607
|
+
{
|
|
608
|
+
"relationIdSupplier": 14,
|
|
609
|
+
"Gtin": "1000364753",
|
|
610
|
+
"orderingPriority": null,
|
|
611
|
+
"updateStock": null,
|
|
612
|
+
"ArticleNoSupplier": null,
|
|
613
|
+
"dropshipment": null,
|
|
614
|
+
"stockSupplier": null,
|
|
615
|
+
"goodId": 7909014,
|
|
616
|
+
"supplierProductId": null,
|
|
617
|
+
"periodStopNotApplicable": null,
|
|
618
|
+
"priceDeviation": null,
|
|
619
|
+
"periodStartNotApplicable": null
|
|
620
|
+
}
|
|
621
|
+
],
|
|
622
|
+
"goodId": 7909014,
|
|
623
|
+
"amountSales": 2,
|
|
624
|
+
"dropshipment": "F",
|
|
625
|
+
"purchaseDescription": "Leveringsvoorwaarden",
|
|
626
|
+
"kindAdvice": "B",
|
|
627
|
+
"supplierId": 14,
|
|
628
|
+
"configuration": "Afmeting: afmetingen;\nKies biersoort: Black",
|
|
629
|
+
"readilyAvailable": -2,
|
|
630
|
+
"amountPurchase": 0,
|
|
631
|
+
"supplierName": "Leverancier-dennis",
|
|
632
|
+
"showConfiguration": "T",
|
|
633
|
+
"amountCommissionList": 0,
|
|
634
|
+
"supplierNo": 100,
|
|
635
|
+
"branchName": " ",
|
|
636
|
+
"branchNo": "1",
|
|
637
|
+
"warehouseNo": 0,
|
|
638
|
+
"purchaseBasePrice": 0,
|
|
639
|
+
"econStock": -2
|
|
640
|
+
});
|
|
641
|
+
return [4, transaction.generateAndSendPurchaseOrders([line])];
|
|
579
642
|
case 1:
|
|
580
643
|
result = _a.sent();
|
|
581
644
|
expect(result.validationResult.success).toBeTruthy();
|