@colijnit/transaction 12.1.75 → 12.1.76
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/bundles/colijnit-transaction.umd.js +16 -13
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +5 -4
- package/esm2015/lib/service/transaction-connector-adapter.service.js +3 -3
- package/esm2015/lib/service/transaction-connector.service.js +3 -3
- package/esm2015/lib/service/transaction-mapping.service.js +1 -2
- package/esm2015/lib/service/transaction.service.js +10 -6
- package/fesm2015/colijnit-transaction.js +16 -13
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/service/transaction-connector-adapter.service.d.ts +1 -1
- package/lib/service/transaction-connector.service.d.ts +1 -1
- package/lib/service/transaction.service.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3338,12 +3338,12 @@
|
|
|
3338
3338
|
});
|
|
3339
3339
|
});
|
|
3340
3340
|
};
|
|
3341
|
-
TransactionConnectorAdapterService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount,
|
|
3341
|
+
TransactionConnectorAdapterService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount, isReturn, aboveLineNr, belowLineNr) {
|
|
3342
3342
|
return __awaiter(this, void 0, void 0, function () {
|
|
3343
3343
|
var _this = this;
|
|
3344
3344
|
return __generator(this, function (_a) {
|
|
3345
3345
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
3346
|
-
return _this.connector.addTransactionLine(uuid, articleLine, articleNo, amount,
|
|
3346
|
+
return _this.connector.addTransactionLine(uuid, articleLine, articleNo, amount, isReturn, aboveLineNr, belowLineNr).then(function (result) {
|
|
3347
3347
|
if (result.validationResult && result.validationResult.success) {
|
|
3348
3348
|
resolve(_this._boFactory.makeWithRawBackendData(transactionInfoResponse_bo.TransactionInfoResponse, result.resultObject));
|
|
3349
3349
|
}
|
|
@@ -5388,10 +5388,10 @@
|
|
|
5388
5388
|
});
|
|
5389
5389
|
});
|
|
5390
5390
|
};
|
|
5391
|
-
TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount,
|
|
5391
|
+
TransactionConnectorService.prototype.addTransactionLine = function (uuid, articleLine, articleNo, amount, isReturn, aboveLineNr, belowLineNr) {
|
|
5392
5392
|
return __awaiter(this, void 0, void 0, function () {
|
|
5393
5393
|
return __generator(this, function (_a) {
|
|
5394
|
-
return [2 /*return*/, this._adapterService.addTransactionLine(uuid, articleLine, articleNo, amount,
|
|
5394
|
+
return [2 /*return*/, this._adapterService.addTransactionLine(uuid, articleLine, articleNo, amount, isReturn, aboveLineNr, belowLineNr)];
|
|
5395
5395
|
});
|
|
5396
5396
|
});
|
|
5397
5397
|
};
|
|
@@ -7717,6 +7717,8 @@
|
|
|
7717
7717
|
var _this = this;
|
|
7718
7718
|
return __generator(this, function (_a) {
|
|
7719
7719
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
7720
|
+
// todo fix this
|
|
7721
|
+
request.branchNr = "1";
|
|
7720
7722
|
_this.connector.createSalesOrder(request).then(function (response) {
|
|
7721
7723
|
_this.rememberCurrentTransaction(response);
|
|
7722
7724
|
resolve(true);
|
|
@@ -7743,6 +7745,8 @@
|
|
|
7743
7745
|
var _this = this;
|
|
7744
7746
|
return __generator(this, function (_a) {
|
|
7745
7747
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
7748
|
+
// todo fix this
|
|
7749
|
+
request.branchNr = "1";
|
|
7746
7750
|
_this.connector.createPurchaseOrder(request).then(function (response) {
|
|
7747
7751
|
_this.rememberCurrentTransaction(response);
|
|
7748
7752
|
resolve(true);
|
|
@@ -7756,6 +7760,8 @@
|
|
|
7756
7760
|
var _this = this;
|
|
7757
7761
|
return __generator(this, function (_a) {
|
|
7758
7762
|
return [2 /*return*/, new Promise(function (resolve) {
|
|
7763
|
+
// todo fix this
|
|
7764
|
+
request.branchNr = "1";
|
|
7759
7765
|
_this.connector.createServiceOrder(request).then(function (response) {
|
|
7760
7766
|
_this.rememberCurrentTransaction(response);
|
|
7761
7767
|
resolve(true);
|
|
@@ -7908,7 +7914,7 @@
|
|
|
7908
7914
|
case 0: return [4 /*yield*/, this._checkAndCreateTransaction()];
|
|
7909
7915
|
case 1:
|
|
7910
7916
|
_a.sent();
|
|
7911
|
-
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo, null,
|
|
7917
|
+
return [4 /*yield*/, this.connector.addTransactionLine(this.currentTransaction.transactionInfo.uuid, transactionLineType_enum.TransactionLineType.ArticleLine, articleNo, null, isReturn, aboveLineNr, belowLineNr)];
|
|
7912
7918
|
case 2:
|
|
7913
7919
|
response = _a.sent();
|
|
7914
7920
|
return [2 /*return*/, this.handleLineOperationStatuses(response)];
|
|
@@ -7932,7 +7938,7 @@
|
|
|
7932
7938
|
// });
|
|
7933
7939
|
// });
|
|
7934
7940
|
// }
|
|
7935
|
-
TransactionService.prototype.addTransactionLine = function (lineType, articleNo, amount,
|
|
7941
|
+
TransactionService.prototype.addTransactionLine = function (lineType, articleNo, amount, isReturn, aboveLineNr, belowLineNr, remember) {
|
|
7936
7942
|
if (remember === void 0) { remember = true; }
|
|
7937
7943
|
return __awaiter(this, void 0, void 0, function () {
|
|
7938
7944
|
var _this = this;
|
|
@@ -7942,7 +7948,7 @@
|
|
|
7942
7948
|
case 1:
|
|
7943
7949
|
_a.sent();
|
|
7944
7950
|
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
7945
|
-
_this.connector.addTransactionLine(_this.currentTransaction.transactionInfo.uuid, lineType, articleNo, amount,
|
|
7951
|
+
_this.connector.addTransactionLine(_this.currentTransaction.transactionInfo.uuid, lineType, articleNo, amount, isReturn, aboveLineNr, belowLineNr)
|
|
7946
7952
|
.then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
7947
7953
|
return __generator(this, function (_a) {
|
|
7948
7954
|
this.rememberCurrentTransaction(response);
|
|
@@ -8461,8 +8467,6 @@
|
|
|
8461
8467
|
createMethod = this._createTransactionMethods.get(this.transactionKind);
|
|
8462
8468
|
if (createMethod) {
|
|
8463
8469
|
request = new createTransactionRequest.CreateTransactionRequest();
|
|
8464
|
-
// todo fix this
|
|
8465
|
-
request.branchNr = "1";
|
|
8466
8470
|
return [2 /*return*/, createMethod.call(this, request)];
|
|
8467
8471
|
}
|
|
8468
8472
|
else {
|
|
@@ -8696,12 +8700,12 @@
|
|
|
8696
8700
|
set: function (value) {
|
|
8697
8701
|
this._relation = value;
|
|
8698
8702
|
if (this._relation) {
|
|
8703
|
+
if (this._relation instanceof supplierFullObject_bo.SupplierFullObject) {
|
|
8704
|
+
this._relation.type = relationNameKind_enum.RelationNameKind.Company;
|
|
8705
|
+
}
|
|
8699
8706
|
if (this._relation instanceof customerFullObject_bo.CustomerFullObject) {
|
|
8700
8707
|
this.customerGroup = this._relation.customerGroup;
|
|
8701
8708
|
}
|
|
8702
|
-
else {
|
|
8703
|
-
this._relation.type = relationNameKind_enum.RelationNameKind.Company;
|
|
8704
|
-
}
|
|
8705
8709
|
this.address = this._relation.getFirstAddressOrCreateNew();
|
|
8706
8710
|
var firstActiveAddress = this._relation.activeAddresses.length > 0 ? this._relation.activeAddresses[0] : undefined;
|
|
8707
8711
|
this.deliveryAddressNawNr = firstActiveAddress ? firstActiveAddress.nawNr : 0;
|
|
@@ -13481,7 +13485,6 @@
|
|
|
13481
13485
|
[{ type: transactionKind_enum.TransactionKind.SalesOrder, category: TransactionTypeCategory.SalesOrderInvoice }, TransactionOrderDeliveryLineComponent],
|
|
13482
13486
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOverview }, TransactionPurchaseLineComponent],
|
|
13483
13487
|
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderReceivedGoods }, TransactionReceiveGoodsLineComponent],
|
|
13484
|
-
[{ type: transactionKind_enum.TransactionKind.PurchaseOrder, category: TransactionTypeCategory.PurchaseOrderOrderConfirmation }, TransactionReceiveGoodsLineComponent],
|
|
13485
13488
|
]);
|
|
13486
13489
|
this._transactionFilterComponent = new Map([
|
|
13487
13490
|
[{ type: transactionKind_enum.TransactionKind.SalesOrder }, TransactionSalesOrderFilterComponent],
|