@colijnit/transaction 12.1.152 → 12.1.154
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 +170 -47
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/cache/service/business-object-cache-manager.service.js +7 -1
- package/esm2015/lib/cache/service/select-single-cache.service.js +7 -4
- package/esm2015/lib/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +2 -1
- package/esm2015/lib/component/checkout/checkout.component.js +5 -1
- package/esm2015/lib/component/deposit-payment/deposit-payment.component.js +4 -3
- package/esm2015/lib/component/payment/payment.component.js +54 -37
- package/esm2015/lib/component/payment/payment.module.js +4 -3
- package/esm2015/lib/component/relation/relation-address/relation-address.component.js +7 -4
- package/esm2015/lib/component/relation/relation-address-select/relation-address-select.component.js +6 -3
- package/esm2015/lib/component/relation/relation-addresses/relation-addresses.component.js +7 -7
- package/esm2015/lib/component/relation/relation-base.component.js +14 -2
- package/esm2015/lib/component/relation/relation-general/relation-general.component.js +5 -6
- package/esm2015/lib/component/relation/relation-preferences/relation-preferences.component.js +10 -7
- package/esm2015/lib/component/shopping-cart/shopping-cart.component.js +1 -1
- package/esm2015/lib/component/shopping-cart-preview/shopping-cart-preview.component.js +3 -3
- package/esm2015/lib/component/transaction-card/transaction-card/transaction-card.component.js +2 -2
- package/esm2015/lib/component/transaction-card/transaction-card-footer/transaction-card-footer.module.js +8 -8
- package/esm2015/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.component.js +3 -3
- package/esm2015/lib/component/transaction-card/transaction-card-receive-goods/transaction-card-receive-goods.component.js +1 -1
- package/esm2015/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.component.js +3 -3
- package/esm2015/lib/component/transaction-header/transaction-header-payment/transaction-header-payment.component.js +8 -5
- package/esm2015/lib/component/transaction-header-fields/transaction-header-definitive.component.js +5 -3
- package/esm2015/lib/component/transaction-header-fields/transaction-header-partial-delivery/transaction-header-partial-delivery.component.js +5 -3
- package/esm2015/lib/component/transaction-line/transaction-overview-line/transaction-overview-line.component.js +1 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line-base.component.js +4 -1
- package/esm2015/lib/component/transaction-line/transaction-purchase-order-line/transaction-purchase-order-line.component.js +2 -6
- package/esm2015/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.js +2 -2
- package/esm2015/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.js +36 -6
- package/esm2015/lib/component/transaction-line-purchase-confirmation/transaction-line-purchase-confirmation.component.js +5 -5
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-order-confirmation/transaction-quick-access-order-confirmation.component.js +3 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-picked/transaction-quick-access-picked.component.js +3 -3
- package/esm2015/lib/component/transaction-quick-access/transaction-quick-access-to-be-picked/transaction-quick-access-to-be-picked.component.js +3 -3
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +9 -1
- package/esm2015/lib/service/article-connector.service.js +1 -1
- package/esm2015/lib/service/relation-connector.service.js +1 -1
- package/esm2015/lib/service/relation.service.js +21 -11
- package/esm2015/lib/service/transaction-base.service.js +13 -2
- package/esm2015/lib/service/transaction-screen-configuration.service.js +4 -1
- package/esm2015/lib/service/transaction.service.js +5 -4
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +207 -91
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/cache/service/business-object-cache-manager.service.d.ts +3 -0
- package/lib/cache/service/select-single-cache.service.d.ts +5 -5
- package/lib/component/checkout/checkout.component.d.ts +4 -0
- package/lib/component/deposit-payment/style/_layout.scss +3 -1
- package/lib/component/deposit-payment/style/_material-definition.scss +2 -2
- package/lib/component/payment/payment.component.d.ts +4 -1
- package/lib/component/payment/style/_layout.scss +64 -35
- package/lib/component/payment/style/_material-definition.scss +1 -1
- package/lib/component/payment/style/_theme.scss +0 -3
- package/lib/component/payment-tile/style/_layout.scss +5 -3
- package/lib/component/payment-to-pay/style/_layout.scss +6 -5
- package/lib/component/payment-to-pay/style/_material-definition.scss +4 -4
- package/lib/component/relation/relation-address/relation-address.component.d.ts +3 -1
- package/lib/component/relation/relation-address-select/relation-address-select.component.d.ts +3 -1
- package/lib/component/relation/relation-addresses/relation-addresses.component.d.ts +3 -3
- package/lib/component/relation/relation-base.component.d.ts +7 -2
- package/lib/component/relation/relation-general/relation-general.component.d.ts +2 -2
- package/lib/component/relation/relation-preferences/relation-preferences.component.d.ts +6 -4
- package/lib/component/shopping-cart-preview/shopping-cart-preview.component.d.ts +2 -2
- package/lib/component/stepper/style/_material-definition.scss +4 -4
- package/lib/component/transaction/style/_layout.scss +1 -1
- package/lib/component/transaction-card/transaction-card/transaction-card.component.d.ts +1 -1
- package/lib/component/transaction-card/transaction-card-purchase-overview/transaction-card-purchase-overview.component.d.ts +3 -3
- package/lib/component/transaction-card/transaction-card-sales-overview/transaction-card-sales-overview.component.d.ts +3 -3
- package/lib/component/transaction-header/transaction-header-payment/style/_layout.scss +17 -0
- package/lib/component/transaction-header-fields/transaction-header-definitive.component.d.ts +2 -0
- package/lib/component/transaction-header-fields/transaction-header-partial-delivery/transaction-header-partial-delivery.component.d.ts +2 -0
- package/lib/component/transaction-line-fields/transaction-line-delivery-date-button.component.d.ts +2 -2
- package/lib/component/transaction-line-fields/transaction-line-supplier-delivery-date-button.component.d.ts +6 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-picked/transaction-quick-access-picked.component.d.ts +1 -1
- package/lib/component/transaction-quick-access/transaction-quick-access-to-be-picked/transaction-quick-access-to-be-picked.component.d.ts +1 -1
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +1 -0
- package/lib/service/relation.service.d.ts +2 -0
- package/lib/service/transaction-base.service.d.ts +2 -0
- package/lib/service/transaction-screen-configuration.service.d.ts +1 -0
- package/lib/service/transaction.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -89,7 +89,7 @@ import { TurnoverGroupImage } from '@colijnit/articleapi/build/model/turnover-gr
|
|
|
89
89
|
import { MainArticle } from '@colijnit/articleapi/build/model/main-article.bo';
|
|
90
90
|
import { InternalParam } from '@colijnit/mainapi/build/enum/internal-param.enum';
|
|
91
91
|
import { RelationKind } from '@colijnit/relationapi/build/enum/relation-kind.enum';
|
|
92
|
-
import { BaseModuleScreenConfigService, BaseModuleService, FormMasterService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, IconModule, InputTextComponent, TooltipDirectiveModule, CheckmarkOverlayModule, InputSearchModule, ColumnAlign, SimpleGridColumnDirective, OverlayService, ObserveVisibilityModule, ClickoutsideModule, OverlayModule, CalendarComponent, InputNumberPickerModule, InputDatePickerComponent, InputDatePickerModule, ColorSequenceService, PriceDisplayPipeModule, Carousel3dModule, CarouselModule, FilterPipeModule, InputTextareaComponent, InputTextareaModule, FormComponent, PopupModule, ContentViewMode, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, CoDialogWizardModule, ViewModeButtonsModule, FilterItemModule, FilterItemMode, FilterViewmodel, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
92
|
+
import { BaseModuleScreenConfigService, BaseModuleService, FormMasterService, SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME, CoDialogModule, ButtonModule, CollapsibleModule, InputCheckboxModule, InputTextModule, ListOfValuesModule, FormModule, ScreenConfigurationModule, InputRadioButtonModule, IconModule, InputTextComponent, TooltipDirectiveModule, CheckmarkOverlayModule, InputSearchModule, ColumnAlign, SimpleGridColumnDirective, OverlayService, ObserveVisibilityModule, ClickoutsideModule, OverlayModule, CalendarComponent, InputNumberPickerModule, InputDatePickerComponent, InputDatePickerModule, ColorSequenceService, PriceDisplayPipeModule, Carousel3dModule, CarouselModule, FilterPipeModule, InputTextareaComponent, InputTextareaModule, FormComponent, InputCheckboxComponent, PopupModule, ContentViewMode, SimpleGridModule, GridToolbarButtonModule, InputDateRangePickerModule, CoDialogWizardModule, ViewModeButtonsModule, FilterItemModule, FilterItemMode, FilterViewmodel, PaginationModule, PaginationBarModule, IconCollapseHandleModule } from '@colijnit/corecomponents_v12';
|
|
93
93
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
94
94
|
import * as i4 from '@colijnit/sharedcomponents';
|
|
95
95
|
import { SharedService as SharedService$1, sendMethodsWithIcon, StatusbarModule, KeyPadModule, SendMethodDialogModule, StockModule, DocsignModule, SimpleTagsModule } from '@colijnit/sharedcomponents';
|
|
@@ -199,8 +199,8 @@ class Version {
|
|
|
199
199
|
constructor() {
|
|
200
200
|
this.name = "@colijnit/transaction";
|
|
201
201
|
this.description = "Colijn IT transaction package";
|
|
202
|
-
this.symVer = "12.1.
|
|
203
|
-
this.publishDate = "
|
|
202
|
+
this.symVer = "12.1.154";
|
|
203
|
+
this.publishDate = "20-10-2023 19:08:26";
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
|
|
@@ -1251,6 +1251,12 @@ class BusinessObjectCacheManagerService {
|
|
|
1251
1251
|
const cacheId = id.toString();
|
|
1252
1252
|
return this._selectSingleCache.has(key) && this._selectSingleCache.get(key)[cacheId];
|
|
1253
1253
|
}
|
|
1254
|
+
deleteSingleCacheItem(key, id = BusinessObjectCacheManagerService._NullBoId) {
|
|
1255
|
+
const cacheId = id.toString();
|
|
1256
|
+
if (this._selectSingleCache.has(key)) {
|
|
1257
|
+
this._selectSingleCache.delete(key);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1254
1260
|
// Returns the parameterized cache item with the given key. T is the type of the cache value items requested, e.g. Color.
|
|
1255
1261
|
getSelectMultipleParameterCacheItem(key) {
|
|
1256
1262
|
return this._selectMultipleParameterizedCache.get(key);
|
|
@@ -4657,7 +4663,10 @@ class SelectSingleCacheService {
|
|
|
4657
4663
|
constructor(_boCacheManager) {
|
|
4658
4664
|
this._boCacheManager = _boCacheManager;
|
|
4659
4665
|
}
|
|
4660
|
-
requestCache(clazz, sourceId, loadFunction) {
|
|
4666
|
+
requestCache(clazz, sourceId, loadFunction, reload = false) {
|
|
4667
|
+
if (reload) {
|
|
4668
|
+
this._boCacheManager.deleteSingleCacheItem(clazz, sourceId);
|
|
4669
|
+
}
|
|
4661
4670
|
if (!this._boCacheManager.hasSingleCacheItem(clazz, sourceId)) {
|
|
4662
4671
|
this._createCacheItem(clazz, sourceId, loadFunction);
|
|
4663
4672
|
}
|
|
@@ -5807,6 +5816,9 @@ class TransactionScreenConfigurationService extends BaseModuleScreenConfigServic
|
|
|
5807
5816
|
this.screenModuleName = "Transactions";
|
|
5808
5817
|
this._screenConfigurationObjectCache = new Map();
|
|
5809
5818
|
}
|
|
5819
|
+
clear() {
|
|
5820
|
+
this._screenConfigurationObjectCache.clear();
|
|
5821
|
+
}
|
|
5810
5822
|
loadConfigForModule(params, insertRights) {
|
|
5811
5823
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5812
5824
|
if (params) {
|
|
@@ -6725,6 +6737,7 @@ class RelationService {
|
|
|
6725
6737
|
this._selectMultipleCacheService = _selectMultipleCacheService;
|
|
6726
6738
|
this._selectSingleCacheService = _selectSingleCacheService;
|
|
6727
6739
|
this._selectMultipleParameterizedCacheService = _selectMultipleParameterizedCacheService;
|
|
6740
|
+
this.relationSuggestionsRequestClear = new Subject();
|
|
6728
6741
|
this._lockMethods = new Map([
|
|
6729
6742
|
[RelationKind$1.Customer, (relationNr) => this._lockCustomerFullObject(relationNr)],
|
|
6730
6743
|
[RelationKind$1.Supplier, (relationNr) => this._lockSupplierFullObject(relationNr)],
|
|
@@ -6749,14 +6762,14 @@ class RelationService {
|
|
|
6749
6762
|
this._boFactory = new BusinessObjectFactory();
|
|
6750
6763
|
}
|
|
6751
6764
|
getCustomerFullObject(relationNo) {
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6765
|
+
return this._selectSingleCacheService.requestCache(CustomerFullObject, relationNo, () => {
|
|
6766
|
+
return this._adapterService.getCustomerFullObject(relationNo);
|
|
6767
|
+
}).getValue();
|
|
6755
6768
|
}
|
|
6756
6769
|
getSupplierFullObject(relationNo) {
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6770
|
+
return this._selectSingleCacheService.requestCache(SupplierFullObject, relationNo, () => {
|
|
6771
|
+
return this._adapterService.getSupplierFullObject(relationNo);
|
|
6772
|
+
}).getValue();
|
|
6760
6773
|
}
|
|
6761
6774
|
insertAddress(address) {
|
|
6762
6775
|
return this._adapterService.insertAddress(address);
|
|
@@ -6765,19 +6778,27 @@ class RelationService {
|
|
|
6765
6778
|
return this._adapterService.updateAddress(address);
|
|
6766
6779
|
}
|
|
6767
6780
|
insertCustomer(relation) {
|
|
6768
|
-
return this.
|
|
6781
|
+
return this._selectSingleCacheService.requestCache(CustomerFullObject, relation.relationNumber, () => {
|
|
6782
|
+
return this._adapterService.insertCustomer(relation);
|
|
6783
|
+
}, true).getValue();
|
|
6769
6784
|
}
|
|
6770
6785
|
updateCustomer(relation) {
|
|
6771
6786
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6772
|
-
return this.
|
|
6787
|
+
return this._selectSingleCacheService.requestCache(CustomerFullObject, relation.relationNumber, () => {
|
|
6788
|
+
return this._adapterService.updateCustomer(relation);
|
|
6789
|
+
}, true).getValue();
|
|
6773
6790
|
});
|
|
6774
6791
|
}
|
|
6775
6792
|
insertSupplier(relation) {
|
|
6776
|
-
return this.
|
|
6793
|
+
return this._selectSingleCacheService.requestCache(SupplierFullObject, relation.relationNumber, () => {
|
|
6794
|
+
return this._adapterService.insertSupplier(relation);
|
|
6795
|
+
}, true).getValue();
|
|
6777
6796
|
}
|
|
6778
6797
|
updateSupplier(relation) {
|
|
6779
6798
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6780
|
-
return this.
|
|
6799
|
+
return this._selectSingleCacheService.requestCache(SupplierFullObject, relation.relationNumber, () => {
|
|
6800
|
+
return this._adapterService.updateSupplier(relation);
|
|
6801
|
+
}, true).getValue();
|
|
6781
6802
|
});
|
|
6782
6803
|
}
|
|
6783
6804
|
getRelationListObjects(relationRequest) {
|
|
@@ -7083,6 +7104,14 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
7083
7104
|
const clazz = this._getRelationClass(this.transactionKind);
|
|
7084
7105
|
this.relation = new clazz;
|
|
7085
7106
|
}
|
|
7107
|
+
setRelationOnTransaction(relationNr, relationKind) {
|
|
7108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7109
|
+
const relation = yield this.relationService.getRelation(relationKind, relationNr);
|
|
7110
|
+
if (relation) {
|
|
7111
|
+
this.relation = relation;
|
|
7112
|
+
}
|
|
7113
|
+
});
|
|
7114
|
+
}
|
|
7086
7115
|
resetCurrentTransaction() {
|
|
7087
7116
|
this.currentTransaction = new TransactionInfoResponse();
|
|
7088
7117
|
this._relation = new CustomerFullObject();
|
|
@@ -7090,7 +7119,10 @@ class TransactionBaseService extends BaseModuleService {
|
|
|
7090
7119
|
}
|
|
7091
7120
|
saveTransaction(rememberTransaction = true) {
|
|
7092
7121
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7093
|
-
const response = yield this.connector.saveTransaction(this.currentTransaction.transactionInfo.uuid)
|
|
7122
|
+
const response = yield this.connector.saveTransaction(this.currentTransaction.transactionInfo.uuid)
|
|
7123
|
+
.catch(() => {
|
|
7124
|
+
return null;
|
|
7125
|
+
});
|
|
7094
7126
|
if (response && response.isSuccess) {
|
|
7095
7127
|
this._resetLockTransaction();
|
|
7096
7128
|
if (rememberTransaction) {
|
|
@@ -7592,6 +7624,7 @@ class TransactionService extends PendingReasonService {
|
|
|
7592
7624
|
logOut() {
|
|
7593
7625
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7594
7626
|
yield this.connector.logOut();
|
|
7627
|
+
this.logout.next();
|
|
7595
7628
|
});
|
|
7596
7629
|
}
|
|
7597
7630
|
preparePakBinnenInternalParam() {
|
|
@@ -9395,6 +9428,9 @@ class CheckoutComponent {
|
|
|
9395
9428
|
this.service.transactionKind = this.transactionType;
|
|
9396
9429
|
this.relationType = this.service.getRelationKindFromTransactionKind();
|
|
9397
9430
|
this.service.createNewRelation();
|
|
9431
|
+
if (this.relationNr) {
|
|
9432
|
+
this.service.setRelationOnTransaction(this.relationNr, this.relationType);
|
|
9433
|
+
}
|
|
9398
9434
|
}
|
|
9399
9435
|
ngOnDestroy() {
|
|
9400
9436
|
this._subs.forEach(s => s.unsubscribe());
|
|
@@ -9557,6 +9593,7 @@ CheckoutComponent.propDecorators = {
|
|
|
9557
9593
|
checkoutDelivery: [{ type: ViewChild, args: ["checkoutDelivery",] }],
|
|
9558
9594
|
checkoutPayment: [{ type: ViewChild, args: ["checkoutPayment",] }],
|
|
9559
9595
|
newTransaction: [{ type: Input }],
|
|
9596
|
+
relationNr: [{ type: Input }],
|
|
9560
9597
|
sellerId: [{ type: Input }],
|
|
9561
9598
|
transactionType: [{ type: Input }],
|
|
9562
9599
|
showCreateTransactionButton: [{ type: Input }],
|
|
@@ -9742,6 +9779,7 @@ class CheckoutOverviewRelationEditComponent {
|
|
|
9742
9779
|
emptyRelation(event) {
|
|
9743
9780
|
this.service.createNewRelation();
|
|
9744
9781
|
this._requestForSuggestions = {};
|
|
9782
|
+
this._relationService.relationSuggestionsRequestClear.next();
|
|
9745
9783
|
this.hideSidebar();
|
|
9746
9784
|
this.updateRelation(this.service.relation);
|
|
9747
9785
|
}
|
|
@@ -10931,13 +10969,18 @@ CoreModule.decorators = [
|
|
|
10931
10969
|
];
|
|
10932
10970
|
|
|
10933
10971
|
class RelationBaseComponent {
|
|
10934
|
-
constructor() {
|
|
10972
|
+
constructor(relationService) {
|
|
10973
|
+
this.relationService = relationService;
|
|
10935
10974
|
this.relKind = RelationKind;
|
|
10936
10975
|
this.cfgNames = TransactionCfgName;
|
|
10937
10976
|
this.relationChange = new EventEmitter();
|
|
10938
10977
|
this.inputChangeForSuggestions = new EventEmitter();
|
|
10939
10978
|
this._relation = NULL_RELATION_OBJECT;
|
|
10979
|
+
this._subs = [];
|
|
10940
10980
|
this.suggestionRequest = {};
|
|
10981
|
+
this._subs.push(this.relationService.relationSuggestionsRequestClear.subscribe(() => {
|
|
10982
|
+
this.suggestionRequest = {};
|
|
10983
|
+
}));
|
|
10941
10984
|
}
|
|
10942
10985
|
set relation(value) {
|
|
10943
10986
|
if (value) {
|
|
@@ -10951,6 +10994,9 @@ class RelationBaseComponent {
|
|
|
10951
10994
|
get relationAsCustomer() {
|
|
10952
10995
|
return this._relation && this._relation;
|
|
10953
10996
|
}
|
|
10997
|
+
ngOnDestroy() {
|
|
10998
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
10999
|
+
}
|
|
10954
11000
|
// overridden by descendant classes
|
|
10955
11001
|
relationSet() {
|
|
10956
11002
|
}
|
|
@@ -10958,6 +11004,9 @@ class RelationBaseComponent {
|
|
|
10958
11004
|
RelationBaseComponent.decorators = [
|
|
10959
11005
|
{ type: Directive }
|
|
10960
11006
|
];
|
|
11007
|
+
RelationBaseComponent.ctorParameters = () => [
|
|
11008
|
+
{ type: RelationService }
|
|
11009
|
+
];
|
|
10961
11010
|
RelationBaseComponent.propDecorators = {
|
|
10962
11011
|
relation: [{ type: Input }],
|
|
10963
11012
|
relationChange: [{ type: Output }],
|
|
@@ -10965,8 +11014,9 @@ RelationBaseComponent.propDecorators = {
|
|
|
10965
11014
|
};
|
|
10966
11015
|
|
|
10967
11016
|
class RelationAddressSelectComponent extends RelationBaseComponent {
|
|
10968
|
-
constructor(_formMasterService) {
|
|
10969
|
-
super();
|
|
11017
|
+
constructor(relationService, _formMasterService) {
|
|
11018
|
+
super(relationService);
|
|
11019
|
+
this.relationService = relationService;
|
|
10970
11020
|
this._formMasterService = _formMasterService;
|
|
10971
11021
|
this.icons = Icon;
|
|
10972
11022
|
this.collection = [];
|
|
@@ -11088,6 +11138,7 @@ RelationAddressSelectComponent.decorators = [
|
|
|
11088
11138
|
},] }
|
|
11089
11139
|
];
|
|
11090
11140
|
RelationAddressSelectComponent.ctorParameters = () => [
|
|
11141
|
+
{ type: RelationService },
|
|
11091
11142
|
{ type: FormMasterService }
|
|
11092
11143
|
];
|
|
11093
11144
|
RelationAddressSelectComponent.propDecorators = {
|
|
@@ -11102,11 +11153,12 @@ RelationAddressSelectComponent.propDecorators = {
|
|
|
11102
11153
|
};
|
|
11103
11154
|
|
|
11104
11155
|
class RelationAddressComponent extends RelationBaseComponent {
|
|
11105
|
-
constructor(_dictionary, _connector, _formMasterService) {
|
|
11106
|
-
super();
|
|
11156
|
+
constructor(_dictionary, _connector, _formMasterService, relationService) {
|
|
11157
|
+
super(relationService);
|
|
11107
11158
|
this._dictionary = _dictionary;
|
|
11108
11159
|
this._connector = _connector;
|
|
11109
11160
|
this._formMasterService = _formMasterService;
|
|
11161
|
+
this.relationService = relationService;
|
|
11110
11162
|
this.addressChange = new EventEmitter();
|
|
11111
11163
|
this.countries = [];
|
|
11112
11164
|
this.fields = { text: "description", value: "code" };
|
|
@@ -11259,7 +11311,8 @@ RelationAddressComponent.decorators = [
|
|
|
11259
11311
|
RelationAddressComponent.ctorParameters = () => [
|
|
11260
11312
|
{ type: DictionaryService },
|
|
11261
11313
|
{ type: TransactionConnectorService },
|
|
11262
|
-
{ type: FormMasterService }
|
|
11314
|
+
{ type: FormMasterService },
|
|
11315
|
+
{ type: RelationService }
|
|
11263
11316
|
];
|
|
11264
11317
|
RelationAddressComponent.propDecorators = {
|
|
11265
11318
|
configNames: [{ type: Input }],
|
|
@@ -12726,6 +12779,8 @@ class TransactionSearchService {
|
|
|
12726
12779
|
this.searchTransactions();
|
|
12727
12780
|
}
|
|
12728
12781
|
}
|
|
12782
|
+
}), this._transactionService.logout.subscribe(() => {
|
|
12783
|
+
this._resetCache();
|
|
12729
12784
|
}));
|
|
12730
12785
|
}
|
|
12731
12786
|
set transactionType(value) {
|
|
@@ -12799,6 +12854,12 @@ class TransactionSearchService {
|
|
|
12799
12854
|
this.showFilterSidebar = true;
|
|
12800
12855
|
}, 10);
|
|
12801
12856
|
}
|
|
12857
|
+
_resetCache() {
|
|
12858
|
+
this.searchRequest = new TransactionSearchViewRequest();
|
|
12859
|
+
this._settingsService.settings.transactionParameters = new TransactionSearchViewRequest();
|
|
12860
|
+
this.transactions.length = 0;
|
|
12861
|
+
this._screenConfigService.clear();
|
|
12862
|
+
}
|
|
12802
12863
|
_resetRequest() {
|
|
12803
12864
|
this.searchRequest = this._settingsService.settings.transactionParameters;
|
|
12804
12865
|
}
|
|
@@ -13378,8 +13439,8 @@ class TransactionQuickAccessOrderConfirmationComponent extends TransactionBaseCo
|
|
|
13378
13439
|
.map((line) => {
|
|
13379
13440
|
const details = new PurchaseOrderConfirmationLineDetails();
|
|
13380
13441
|
details.lineNumber = line.lineNr;
|
|
13381
|
-
details.amountConfirmed = line.
|
|
13382
|
-
details.confirmedDate = this.purchaseOrderConfirmation.confirmationDate;
|
|
13442
|
+
details.amountConfirmed = +line.purchasePortalLine.amountToBeConfirmed;
|
|
13443
|
+
details.confirmedDate = line.purchasePortalLine.deliveryDateConfirmed ? new Date(line.purchasePortalLine.deliveryDateConfirmed) : this.purchaseOrderConfirmation.confirmationDate;
|
|
13383
13444
|
details.confirmedPrice = +line.purchasePortalLine.confirmedPrice;
|
|
13384
13445
|
return details;
|
|
13385
13446
|
});
|
|
@@ -15654,6 +15715,9 @@ class TransactionPurchaseOrderLineBaseComponent extends TransactionBaseComponent
|
|
|
15654
15715
|
this._subs = [];
|
|
15655
15716
|
}
|
|
15656
15717
|
ngOnInit() {
|
|
15718
|
+
if (this.transactionLine.purchasePortalLine.amountToBeConfirmed === null || this.transactionLine.purchasePortalLine.amountToBeConfirmed === undefined) {
|
|
15719
|
+
this.transactionLine.purchasePortalLine.amountToBeConfirmed = this.transactionLine.amount.toString();
|
|
15720
|
+
}
|
|
15657
15721
|
this._subs.push(this.transactionEventService.selectAllSalesOrderLinesForPurchase.subscribe((value) => {
|
|
15658
15722
|
this.selected = value && this.showCheckboxForLine;
|
|
15659
15723
|
this.detectChanges();
|
|
@@ -15779,28 +15843,24 @@ TransactionPurchaseOrderLineComponent.decorators = [
|
|
|
15779
15843
|
[model]="transactionLine.purchasePortalLine.articleNoSupplier ? transactionLine.purchasePortalLine.articleNoSupplier : '-'"
|
|
15780
15844
|
[leftIconData]="iconCacheService.getIcon(icons.RegularIndustryTag)"
|
|
15781
15845
|
[customHeight]="true"
|
|
15782
|
-
[tooltip]="'ARTICLE_NO_SUPPLIER' | localize"
|
|
15783
15846
|
></co-input-text>
|
|
15784
15847
|
<co-transaction-line-confirmed-price class="transaction-line-confirmed-price price"
|
|
15785
15848
|
[screenConfigurationObject]="cfgNames.LineConfirmedPrice"
|
|
15786
15849
|
[(price)]="transactionLine.purchasePortalLine.confirmedPrice"
|
|
15787
15850
|
[showLabel]="false"
|
|
15788
15851
|
[defaultEditMode]="false"
|
|
15789
|
-
[tooltip]="'CONFIRMED_PRICE' | localize"
|
|
15790
15852
|
></co-transaction-line-confirmed-price>
|
|
15791
15853
|
<co-input-number-picker class="amount-number-picker"
|
|
15792
15854
|
[screenConfigurationObject]="cfgNames.LineConfirmedAmount"
|
|
15793
15855
|
[required]="true"
|
|
15794
|
-
[(model)]="
|
|
15856
|
+
[(model)]="transactionLine.purchasePortalLine.amountToBeConfirmed"
|
|
15795
15857
|
[min]="1"
|
|
15796
15858
|
[max]="+transactionLine.purchasePortalLine.amountOrdered"
|
|
15797
15859
|
[leftIconData]="iconCacheService.getIcon(icons.FileCircleInfoRegular)"
|
|
15798
|
-
[tooltip]="'CONFIRMED' | localize"
|
|
15799
15860
|
></co-input-number-picker>
|
|
15800
15861
|
<co-transaction-line-supplier-delivery-date-button
|
|
15801
15862
|
[screenConfigurationObject]="cfgNames.LineConfirmedDate"
|
|
15802
15863
|
[transactionLine]="transactionLine"
|
|
15803
|
-
[tooltip]="'CONFIRMED_DATE' | localize"
|
|
15804
15864
|
></co-transaction-line-supplier-delivery-date-button>
|
|
15805
15865
|
</div>
|
|
15806
15866
|
</div>
|
|
@@ -19747,7 +19807,7 @@ TransactionLineDeliveryDateButtonComponent.decorators = [
|
|
|
19747
19807
|
[label]="transactionLine.deliveryDate | date:'d MMM yyyy'"
|
|
19748
19808
|
[rightIconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"
|
|
19749
19809
|
(click)="handleShowHideClick()"
|
|
19750
|
-
|
|
19810
|
+
></co-transaction-button>
|
|
19751
19811
|
`,
|
|
19752
19812
|
providers: [
|
|
19753
19813
|
OverlayService,
|
|
@@ -21735,11 +21795,12 @@ PaymentService.ctorParameters = () => [
|
|
|
21735
21795
|
];
|
|
21736
21796
|
|
|
21737
21797
|
class PaymentComponent {
|
|
21738
|
-
constructor(_transactionService, _sharedService, _paymentService, _transactionEventService) {
|
|
21798
|
+
constructor(_transactionService, _sharedService, _paymentService, _transactionEventService, iconCacheService) {
|
|
21739
21799
|
this._transactionService = _transactionService;
|
|
21740
21800
|
this._sharedService = _sharedService;
|
|
21741
21801
|
this._paymentService = _paymentService;
|
|
21742
21802
|
this._transactionEventService = _transactionEventService;
|
|
21803
|
+
this.iconCacheService = iconCacheService;
|
|
21743
21804
|
this.icons = Icon;
|
|
21744
21805
|
this.updateDepositAmount = true;
|
|
21745
21806
|
this.payed = new EventEmitter();
|
|
@@ -21752,6 +21813,7 @@ class PaymentComponent {
|
|
|
21752
21813
|
this.showPspQrCode = false;
|
|
21753
21814
|
this.showLoader = true;
|
|
21754
21815
|
this.amountToPay = 0;
|
|
21816
|
+
this.depositAmount = 0;
|
|
21755
21817
|
this.statusMessage = "";
|
|
21756
21818
|
this._amount = 0;
|
|
21757
21819
|
this._paymentStatusPollIntervalMs = 5000;
|
|
@@ -21846,6 +21908,7 @@ class PaymentComponent {
|
|
|
21846
21908
|
const info = yield this._paymentService.getDepositPaymentInfo(this.transactionUuid);
|
|
21847
21909
|
if (info) {
|
|
21848
21910
|
this.amountToPay = info.depositRemainderAmount;
|
|
21911
|
+
this.depositAmount = info.depositAmount;
|
|
21849
21912
|
}
|
|
21850
21913
|
}
|
|
21851
21914
|
else {
|
|
@@ -21955,47 +22018,59 @@ PaymentComponent.decorators = [
|
|
|
21955
22018
|
selector: "co-payment",
|
|
21956
22019
|
template: `
|
|
21957
22020
|
<div class="payment-wrapper">
|
|
21958
|
-
<div class="payment-methods-
|
|
21959
|
-
<
|
|
21960
|
-
|
|
21961
|
-
|
|
21962
|
-
|
|
21963
|
-
|
|
21964
|
-
|
|
21965
|
-
|
|
21966
|
-
|
|
21967
|
-
|
|
21968
|
-
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
21975
|
-
|
|
21976
|
-
<span class="payment-header-title" [textContent]="'SELECT_CASH_REGISTER' | localize"></span>
|
|
22021
|
+
<div class="payment-methods-register-wrapper">
|
|
22022
|
+
<div class="payment-methods-wrapper">
|
|
22023
|
+
<div class="payment-methods-header">
|
|
22024
|
+
<span class="payment-header-title" [textContent]="'SELECT' | localize"></span>
|
|
22025
|
+
<!--span class="payment-header-title extra" [textContent]="'FREE' | localize:false"></span-->
|
|
22026
|
+
<span class="payment-header-title" [textContent]="'PAYMENT_METHOD' | localize:false"></span>
|
|
22027
|
+
</div>
|
|
22028
|
+
<div class="payment-methods co-small-scrollbar">
|
|
22029
|
+
<co-loader class="loader" *ngIf="showLoader"></co-loader>
|
|
22030
|
+
<ng-container *ngIf="!showLoader">
|
|
22031
|
+
<co-payment-tile *ngFor="let paymentMethod of paymentMethods; let index = index"
|
|
22032
|
+
[image]="paymentMethod.image"
|
|
22033
|
+
[description]="paymentMethod.payment.description"
|
|
22034
|
+
[selected]="paymentMethodIdx === index"
|
|
22035
|
+
(selectedChange)="paymentMethodSelected(paymentMethod.payment, index)"
|
|
22036
|
+
></co-payment-tile>
|
|
22037
|
+
</ng-container>
|
|
22038
|
+
</div>
|
|
21977
22039
|
</div>
|
|
21978
|
-
<div class="payment-
|
|
21979
|
-
<
|
|
21980
|
-
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
|
|
22040
|
+
<div class="payment-cash-register-wrapper" *ngIf="showCashRegisters">
|
|
22041
|
+
<div class="payment-cash-register-header">
|
|
22042
|
+
<span class="payment-header-title" [textContent]="'SELECT_CASH_REGISTER' | localize"></span>
|
|
22043
|
+
</div>
|
|
22044
|
+
<div class="payment-methods">
|
|
22045
|
+
<co-payment-tile *ngFor="let cashRegister of cashRegisters; let index = index"
|
|
22046
|
+
[icon]="cashRegister.icon"
|
|
22047
|
+
[description]="cashRegister.description"
|
|
22048
|
+
[selected]="cashRegisterIdx === index"
|
|
22049
|
+
(selectedChange)="cashRegisterSelected(cashRegister, index)"
|
|
22050
|
+
></co-payment-tile>
|
|
22051
|
+
</div>
|
|
21985
22052
|
</div>
|
|
21986
22053
|
</div>
|
|
21987
22054
|
<div class="payment-to-pay-wrapper">
|
|
21988
|
-
<
|
|
22055
|
+
<div class="payment-to-pay-total">
|
|
22056
|
+
<div class="payment-to-pay-header">
|
|
22057
|
+
<span class="payment-header-title" [textContent]="'TOTAL_AMOUNT_TO_PAY' | localize"></span>
|
|
22058
|
+
<span class="payment-total-pay" [textContent]="depositAmount === 0 ? depositAmount : (depositAmount | coCurrency)"></span>
|
|
22059
|
+
</div>
|
|
22060
|
+
<div class="payment-input-button-wrapper">
|
|
22061
|
+
<div class="payment-input-button">
|
|
22062
|
+
<co-payment-to-pay [amountToPay]="amountToPay"></co-payment-to-pay>
|
|
22063
|
+
<div class="payment-to-pay-button">
|
|
22064
|
+
<co-button [iconData]="iconCacheService.getIcon(icons.CheckDuotone)" (click)="handlePayment()" [disabled]="amountToPay === 0"></co-button>
|
|
22065
|
+
</div>
|
|
22066
|
+
</div>
|
|
22067
|
+
<div class="payment-error-message" *ngIf="statusMessage" [textContent]="statusMessage"></div>
|
|
22068
|
+
</div>
|
|
22069
|
+
</div>
|
|
22070
|
+
|
|
21989
22071
|
<div class="payment-deposit">
|
|
21990
22072
|
<co-deposit-payment [branch]="branch" [transactionUuid]="transactionUuid"></co-deposit-payment>
|
|
21991
22073
|
</div>
|
|
21992
|
-
<div class="payment-to-pay-button">
|
|
21993
|
-
<!--
|
|
21994
|
-
<co-loader *ngIf="statusMessage"></co-loader>
|
|
21995
|
-
-->
|
|
21996
|
-
<div class="payment-error-message" *ngIf="statusMessage" [textContent]="statusMessage"></div>
|
|
21997
|
-
<co-button [label]="'PAY' | localize" (click)="handlePayment()" [disabled]="amountToPay === 0"></co-button>
|
|
21998
|
-
</div>
|
|
21999
22074
|
<co-key-pad class="payment-to-pay-keypad"
|
|
22000
22075
|
[showValue]="false"
|
|
22001
22076
|
[emitModelChangeOnEnter]="false"
|
|
@@ -22018,7 +22093,8 @@ PaymentComponent.ctorParameters = () => [
|
|
|
22018
22093
|
{ type: TransactionService },
|
|
22019
22094
|
{ type: SharedService },
|
|
22020
22095
|
{ type: PaymentService },
|
|
22021
|
-
{ type: TransactionEventService }
|
|
22096
|
+
{ type: TransactionEventService },
|
|
22097
|
+
{ type: IconCacheService }
|
|
22022
22098
|
];
|
|
22023
22099
|
PaymentComponent.propDecorators = {
|
|
22024
22100
|
transId: [{ type: Input }],
|
|
@@ -22183,9 +22259,10 @@ DepositPaymentComponent.decorators = [
|
|
|
22183
22259
|
[image]="payment.paymentMethod?.image"
|
|
22184
22260
|
[description]="payment.paymentMethod?.payment.description"
|
|
22185
22261
|
></co-payment-tile>
|
|
22186
|
-
<div class="
|
|
22262
|
+
<div class="down-payment-date-wrapper">
|
|
22263
|
+
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy'"></div>
|
|
22264
|
+
</div>
|
|
22187
22265
|
<div class="down-payment-amount-wrapper">
|
|
22188
|
-
<div class="down-payment-date" [textContent]="payment.depositPayment?.date | date:'d MMMM yyyy | HH:mm'"></div>
|
|
22189
22266
|
<div class="down-payment-amount" [textContent]="payment.depositPayment?.depositPaymentAmount | coCurrency"></div>
|
|
22190
22267
|
</div>
|
|
22191
22268
|
</div>
|
|
@@ -22284,7 +22361,8 @@ PaymentModule.decorators = [
|
|
|
22284
22361
|
PaymentQrCodeModule,
|
|
22285
22362
|
DepositPaymentModule,
|
|
22286
22363
|
LoaderModule,
|
|
22287
|
-
PaymentToPayModule
|
|
22364
|
+
PaymentToPayModule,
|
|
22365
|
+
IconModule
|
|
22288
22366
|
],
|
|
22289
22367
|
declarations: [
|
|
22290
22368
|
PaymentComponent
|
|
@@ -22363,11 +22441,11 @@ RelationTypeModule.decorators = [
|
|
|
22363
22441
|
];
|
|
22364
22442
|
|
|
22365
22443
|
class RelationGeneralComponent extends RelationBaseComponent {
|
|
22366
|
-
constructor(_service, _dialogService,
|
|
22367
|
-
super();
|
|
22444
|
+
constructor(_service, _dialogService, relationService) {
|
|
22445
|
+
super(relationService);
|
|
22368
22446
|
this._service = _service;
|
|
22369
22447
|
this._dialogService = _dialogService;
|
|
22370
|
-
this.
|
|
22448
|
+
this.relationService = relationService;
|
|
22371
22449
|
this.relType = RelationNameKind;
|
|
22372
22450
|
this.genderType = GenderType;
|
|
22373
22451
|
this.readonly = false;
|
|
@@ -22417,7 +22495,6 @@ RelationGeneralComponent.decorators = [
|
|
|
22417
22495
|
[(model)]="relation.firstName"
|
|
22418
22496
|
[placeholder]="'FIRST_NAME' | localize"
|
|
22419
22497
|
(modelChange)="firstNameChange($event)"
|
|
22420
|
-
[required]="true"
|
|
22421
22498
|
></co-input-text>
|
|
22422
22499
|
<co-input-text
|
|
22423
22500
|
class="checkout-prefix-name default-width"
|
|
@@ -22433,7 +22510,7 @@ RelationGeneralComponent.decorators = [
|
|
|
22433
22510
|
[(model)]="relation.familyName"
|
|
22434
22511
|
[placeholder]="'LAST_NAME' | localize"
|
|
22435
22512
|
(modelChange)="familyNameChange($event)"
|
|
22436
|
-
|
|
22513
|
+
></co-input-text>
|
|
22437
22514
|
</div>
|
|
22438
22515
|
<div class="default-data-row" [screenConfigurationObject]="configNames?.relationGender" screenConfigNativeElement>
|
|
22439
22516
|
<co-input-radio-button class="default-width"
|
|
@@ -22654,10 +22731,10 @@ RelationGeneralModule.decorators = [
|
|
|
22654
22731
|
];
|
|
22655
22732
|
|
|
22656
22733
|
class RelationAddressesComponent extends RelationBaseComponent {
|
|
22657
|
-
constructor(_formMasterService,
|
|
22658
|
-
super();
|
|
22734
|
+
constructor(_formMasterService, relationService, iconCacheService) {
|
|
22735
|
+
super(relationService);
|
|
22659
22736
|
this._formMasterService = _formMasterService;
|
|
22660
|
-
this.
|
|
22737
|
+
this.relationService = relationService;
|
|
22661
22738
|
this.iconCacheService = iconCacheService;
|
|
22662
22739
|
this.icons = Icon;
|
|
22663
22740
|
this.readonly = false;
|
|
@@ -22689,12 +22766,12 @@ class RelationAddressesComponent extends RelationBaseComponent {
|
|
|
22689
22766
|
if (!address.nawNr) { // new address
|
|
22690
22767
|
address.startDate = new Date();
|
|
22691
22768
|
address.sequence = this.relation.getNextAddressSequence();
|
|
22692
|
-
const savedAddress = yield this.
|
|
22769
|
+
const savedAddress = yield this.relationService.insertAddress(address);
|
|
22693
22770
|
this.relation.addresses.push(savedAddress);
|
|
22694
22771
|
this.changeAddress(savedAddress);
|
|
22695
22772
|
}
|
|
22696
22773
|
else {
|
|
22697
|
-
const savedAddress = yield this.
|
|
22774
|
+
const savedAddress = yield this.relationService.updateAddress(address);
|
|
22698
22775
|
const idx = this.relation.addresses.findIndex(a => a.nawNr === address.nawNr);
|
|
22699
22776
|
if (idx > -1) {
|
|
22700
22777
|
this.relation.addresses[idx] = savedAddress;
|
|
@@ -22817,8 +22894,9 @@ RelationAddressesModule.decorators = [
|
|
|
22817
22894
|
class PrivacySettingViewModel {
|
|
22818
22895
|
}
|
|
22819
22896
|
class RelationPreferencesComponent extends RelationBaseComponent {
|
|
22820
|
-
constructor(_service) {
|
|
22821
|
-
super();
|
|
22897
|
+
constructor(relationService, _service) {
|
|
22898
|
+
super(relationService);
|
|
22899
|
+
this.relationService = relationService;
|
|
22822
22900
|
this._service = _service;
|
|
22823
22901
|
this.readonly = false;
|
|
22824
22902
|
this.privacySettings = [];
|
|
@@ -22874,6 +22952,7 @@ RelationPreferencesComponent.decorators = [
|
|
|
22874
22952
|
},] }
|
|
22875
22953
|
];
|
|
22876
22954
|
RelationPreferencesComponent.ctorParameters = () => [
|
|
22955
|
+
{ type: RelationService },
|
|
22877
22956
|
{ type: TransactionService }
|
|
22878
22957
|
];
|
|
22879
22958
|
RelationPreferencesComponent.propDecorators = {
|
|
@@ -25447,6 +25526,7 @@ class TransactionHeaderDefinitiveComponent extends TransactionBaseComponent {
|
|
|
25447
25526
|
const success = yield this.transactionService.updateHeaderTransactionDefinitive(this.transactionInfo.uuid, definitive, this.lockAndSave);
|
|
25448
25527
|
if (!success) {
|
|
25449
25528
|
this.transactionInfo.transactionDefinitive = oldDefinitive;
|
|
25529
|
+
this.checkbox.setModel(this.transactionInfo.transactionDefinitive);
|
|
25450
25530
|
return success;
|
|
25451
25531
|
}
|
|
25452
25532
|
}
|
|
@@ -25475,6 +25555,7 @@ TransactionHeaderDefinitiveComponent.decorators = [
|
|
|
25475
25555
|
},] }
|
|
25476
25556
|
];
|
|
25477
25557
|
TransactionHeaderDefinitiveComponent.propDecorators = {
|
|
25558
|
+
checkbox: [{ type: ViewChild, args: [InputCheckboxComponent,] }],
|
|
25478
25559
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-header-definitive",] }]
|
|
25479
25560
|
};
|
|
25480
25561
|
|
|
@@ -26243,6 +26324,7 @@ class TransactionHeaderPartialDeliveryComponent extends TransactionBaseComponent
|
|
|
26243
26324
|
this.showLoader = false;
|
|
26244
26325
|
if (!success) {
|
|
26245
26326
|
this.transactionInfo.allowPartialDelivery = oldPartial;
|
|
26327
|
+
this.checkbox.setModel(this.transactionInfo.allowPartialDelivery);
|
|
26246
26328
|
return success;
|
|
26247
26329
|
}
|
|
26248
26330
|
else {
|
|
@@ -26278,6 +26360,7 @@ TransactionHeaderPartialDeliveryComponent.decorators = [
|
|
|
26278
26360
|
},] }
|
|
26279
26361
|
];
|
|
26280
26362
|
TransactionHeaderPartialDeliveryComponent.propDecorators = {
|
|
26363
|
+
checkbox: [{ type: ViewChild, args: [InputCheckboxComponent,] }],
|
|
26281
26364
|
showClass: [{ type: HostBinding, args: ["class.co-transaction-header-partial-delivery",] }]
|
|
26282
26365
|
};
|
|
26283
26366
|
|
|
@@ -27691,10 +27774,13 @@ TransactionHeaderPaymentComponent.decorators = [
|
|
|
27691
27774
|
</div>
|
|
27692
27775
|
</co-dialog>
|
|
27693
27776
|
-->
|
|
27694
|
-
<co-dialog class="payment-dialog" [
|
|
27695
|
-
|
|
27696
|
-
|
|
27697
|
-
|
|
27777
|
+
<co-dialog class="payment-dialog" [modal]="true" [headerTemplate]="headerTemplate" *ngIf="showPaymentDialog" (closeClick)="showPaymentDialog = false">
|
|
27778
|
+
<ng-template #headerTemplate>
|
|
27779
|
+
<div class="payment-wrapper-popup-title">
|
|
27780
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.CreditCardRegularCheck)"></co-icon>
|
|
27781
|
+
<div class="co-dialog-header-title" [textContent]="'PAYMENT_METHOD' | localize"></div>
|
|
27782
|
+
</div>
|
|
27783
|
+
</ng-template>
|
|
27698
27784
|
<co-payment
|
|
27699
27785
|
[transId]="transactionInfo.id"
|
|
27700
27786
|
[branch]="transactionInfo.branch?.relationNr"
|
|
@@ -29793,8 +29879,6 @@ class TransactionLinePurchaseConfirmationComponent extends TransactionBaseCompon
|
|
|
29793
29879
|
existingBatch.docAmount = this.docDeliveryBatch.docAmount;
|
|
29794
29880
|
existingBatch.docDate = this.docDeliveryBatch.docDate;
|
|
29795
29881
|
existingBatch.reference = this.docDeliveryBatch.reference;
|
|
29796
|
-
existingBatch.docAmountOrg = this.docDeliveryBatch.docAmountOrg;
|
|
29797
|
-
existingBatch.docDateOrg = this.docDeliveryBatch.docDateOrg;
|
|
29798
29882
|
}
|
|
29799
29883
|
else { // or create a new one
|
|
29800
29884
|
this.docDeliveryBatch.deleteLine = 'F';
|
|
@@ -29824,7 +29908,7 @@ class TransactionLinePurchaseConfirmationComponent extends TransactionBaseCompon
|
|
|
29824
29908
|
}
|
|
29825
29909
|
handleSelectHistoryRow(row) {
|
|
29826
29910
|
this.docDeliveryBatch = row;
|
|
29827
|
-
|
|
29911
|
+
this.docDeliveryBatch.docDate = new Date(row.docDate);
|
|
29828
29912
|
}
|
|
29829
29913
|
handleCancelClick() {
|
|
29830
29914
|
this._initNewDocDeliveryBatch();
|
|
@@ -29837,7 +29921,9 @@ class TransactionLinePurchaseConfirmationComponent extends TransactionBaseCompon
|
|
|
29837
29921
|
}
|
|
29838
29922
|
_initNewDocDeliveryBatch() {
|
|
29839
29923
|
this.docDeliveryBatch = new DocDeliveryBatch();
|
|
29840
|
-
this.docDeliveryBatch.docAmount =
|
|
29924
|
+
this.docDeliveryBatch.docAmount = this.transactionLine.purchasePortalLine.docBatchArray.length === 0
|
|
29925
|
+
? +this.transactionLine.amount
|
|
29926
|
+
: +this.transactionLine.purchasePortalLine.amountOrdered;
|
|
29841
29927
|
this.docDeliveryBatch.confirmedPrice = +this.transactionLine.purchasePortalLine.netOrderPrice;
|
|
29842
29928
|
}
|
|
29843
29929
|
}
|
|
@@ -33219,24 +33305,53 @@ class TransactionLineSupplierDeliveryDateButtonComponent extends TransactionBase
|
|
|
33219
33305
|
this._overlayService = _overlayService;
|
|
33220
33306
|
this._elementRef = _elementRef;
|
|
33221
33307
|
this.icons = Icon;
|
|
33308
|
+
this.showCalender = false;
|
|
33222
33309
|
}
|
|
33223
33310
|
showClass() {
|
|
33224
33311
|
return true;
|
|
33225
33312
|
}
|
|
33226
|
-
|
|
33313
|
+
handleShowHideClick() {
|
|
33314
|
+
this.showCalender = !this.showCalender;
|
|
33315
|
+
if (this.showCalender) {
|
|
33316
|
+
this._showPopup();
|
|
33317
|
+
}
|
|
33318
|
+
else {
|
|
33319
|
+
this._hidePopup();
|
|
33320
|
+
}
|
|
33321
|
+
}
|
|
33322
|
+
_showPopup() {
|
|
33323
|
+
this.showCalender = true;
|
|
33324
|
+
this._calendarPopupComponentRef = this._overlayService.createComponent(CalendarComponent, {
|
|
33325
|
+
parentForOverlay: this.parentComponent,
|
|
33326
|
+
selectedDate: new Date(this.transactionLine.purchasePortalLine.deliveryDateConfirmed
|
|
33327
|
+
? this.transactionLine.purchasePortalLine.deliveryDateConfirmed
|
|
33328
|
+
: new Date())
|
|
33329
|
+
}, {
|
|
33330
|
+
dateSelected: (date) => this._handleDateChanged(date),
|
|
33331
|
+
clickedOutside: () => this.handleShowHideClick()
|
|
33332
|
+
});
|
|
33333
|
+
}
|
|
33334
|
+
_handleDateChanged(date) {
|
|
33335
|
+
this.transactionLine.purchasePortalLine.deliveryDateConfirmed = date.toDateString();
|
|
33336
|
+
this.handleShowHideClick();
|
|
33337
|
+
this.detectChanges();
|
|
33338
|
+
}
|
|
33339
|
+
_hidePopup() {
|
|
33340
|
+
this.showCalender = false;
|
|
33341
|
+
this._overlayService.removeComponent(this._calendarPopupComponentRef);
|
|
33227
33342
|
}
|
|
33228
33343
|
}
|
|
33229
33344
|
TransactionLineSupplierDeliveryDateButtonComponent.decorators = [
|
|
33230
33345
|
{ type: Component, args: [{
|
|
33231
33346
|
selector: 'co-transaction-line-supplier-delivery-date-button',
|
|
33232
33347
|
template: `
|
|
33233
|
-
<co-transaction-button class="big center-align"
|
|
33348
|
+
<co-transaction-button #parentComponent class="big center-align"
|
|
33234
33349
|
[hidden]="hidden"
|
|
33235
33350
|
[readonly]="readonly"
|
|
33236
33351
|
[iconData]="iconCacheService.getIcon(icons.RegularIndustryClock)"
|
|
33237
33352
|
[label]="transactionLine.purchasePortalLine.deliveryDateConfirmed | date:'d MMM yyyy'"
|
|
33238
33353
|
[rightIconData]="iconCacheService.getIcon(icons.CalendarDayRegular)"
|
|
33239
|
-
(click)="
|
|
33354
|
+
(click)="handleShowHideClick()"
|
|
33240
33355
|
></co-transaction-button>
|
|
33241
33356
|
`,
|
|
33242
33357
|
providers: [
|
|
@@ -33261,6 +33376,7 @@ TransactionLineSupplierDeliveryDateButtonComponent.ctorParameters = () => [
|
|
|
33261
33376
|
{ type: ElementRef }
|
|
33262
33377
|
];
|
|
33263
33378
|
TransactionLineSupplierDeliveryDateButtonComponent.propDecorators = {
|
|
33379
|
+
parentComponent: [{ type: ViewChild, args: ['parentComponent', { read: ElementRef },] }],
|
|
33264
33380
|
showClass: [{ type: HostBinding, args: ['class.co-transaction-line-supplier-delivery-date-button',] }]
|
|
33265
33381
|
};
|
|
33266
33382
|
|