@hitsoft/e-donusum 1.0.56 → 1.0.58
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/esm2020/lib/components/hit-params-companies/hit-params-company.component.mjs +9 -9
- package/esm2020/lib/components/hit-setup-wizard/hit-setup-wizard.component.mjs +53 -1
- package/esm2020/lib/paramse-dispatches/paramse-dispatch/paramse-dispatch.module.mjs +1 -1
- package/esm2020/lib/paramse-invoices/paramse-invoice/paramse-invoice.module.mjs +1 -1
- package/esm2020/lib/proxy/document-serials/index.mjs +1 -1
- package/esm2020/lib/proxy/gib-partner-pks/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rule-doc-types/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rule-scenarios/index.mjs +1 -1
- package/esm2020/lib/proxy/note-rules/index.mjs +1 -1
- package/esm2020/lib/proxy/params-companies/index.mjs +1 -1
- package/esm2020/lib/proxy/params-generals/index.mjs +1 -1
- package/esm2020/lib/proxy/params-integrators/index.mjs +1 -1
- package/esm2020/lib/proxy/paramse-dispatches/index.mjs +1 -1
- package/esm2020/lib/proxy/paramse-invoices/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-formats/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rule-doc-types/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rule-scenarios/index.mjs +1 -1
- package/esm2020/lib/proxy/xslt-rules/index.mjs +1 -1
- package/fesm2015/hitsoft-e-donusum.mjs +66 -17
- package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
- package/fesm2020/hitsoft-e-donusum.mjs +60 -8
- package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
- package/lib/components/hit-params-companies/hit-params-company.component.d.ts +2 -2
- package/lib/components/hit-setup-wizard/hit-setup-wizard.component.d.ts +5 -0
- package/package.json +1 -1
|
@@ -6716,9 +6716,9 @@ class HitParamsCompanyComponent {
|
|
|
6716
6716
|
this.valid = new EventEmitter();
|
|
6717
6717
|
this.paramsCompany = new EventEmitter();
|
|
6718
6718
|
}
|
|
6719
|
-
|
|
6719
|
+
ngOnInit() {
|
|
6720
6720
|
this.buildForm();
|
|
6721
|
-
|
|
6721
|
+
this.getParamsCompany(true);
|
|
6722
6722
|
}
|
|
6723
6723
|
buildForm() {
|
|
6724
6724
|
debugger;
|
|
@@ -6770,9 +6770,9 @@ class HitParamsCompanyComponent {
|
|
|
6770
6770
|
.pipe(finalize$1(() => {
|
|
6771
6771
|
this.submitButtonDisabled = false;
|
|
6772
6772
|
}), tap$1(() => { }))
|
|
6773
|
-
.subscribe(
|
|
6773
|
+
.subscribe(data => {
|
|
6774
6774
|
// this.toasterService.success('eDonusum::TransactionSuccessful');
|
|
6775
|
-
|
|
6775
|
+
this.getParamsCompany();
|
|
6776
6776
|
this.valid.emit(true);
|
|
6777
6777
|
this.paramsCompany.emit(data);
|
|
6778
6778
|
}, err => {
|
|
@@ -6780,14 +6780,14 @@ class HitParamsCompanyComponent {
|
|
|
6780
6780
|
this.valid.emit(false);
|
|
6781
6781
|
});
|
|
6782
6782
|
}
|
|
6783
|
-
|
|
6784
|
-
this.hitParamsCompaniesService.getParamsCompany().
|
|
6783
|
+
getParamsCompany(buildForm = false) {
|
|
6784
|
+
return this.hitParamsCompaniesService.getParamsCompany().pipe(tap$1(data => {
|
|
6785
6785
|
this.paramsCompanyDto = data;
|
|
6786
6786
|
this.paramsCompany.emit(data);
|
|
6787
6787
|
if (buildForm)
|
|
6788
6788
|
this.buildForm();
|
|
6789
|
-
this.formParamsCompany
|
|
6790
|
-
});
|
|
6789
|
+
this.formParamsCompany?.get('isTestCompany')?.[this.paramsCompanyDto ? 'disable' : 'enable']();
|
|
6790
|
+
})).subscribe();
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
6793
|
HitParamsCompanyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: HitParamsCompanyComponent, deps: [{ token: i1.ListService }, { token: i1.TrackByService }, { token: ParamsCompanyService }, { token: i3.ConfirmationService }, { token: i4.FormBuilder }, { token: HitParamsCompaniesService }, { token: i3.ToasterService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -7741,6 +7741,8 @@ class HitSetupWizardComponent {
|
|
|
7741
7741
|
this.updateSetupStatus(this.currentStep.value == 7);
|
|
7742
7742
|
this.currentStep.next(this.nextStepNumber);
|
|
7743
7743
|
this.nextStepValidRefresh();
|
|
7744
|
+
// İleri gidilen adımın formunu backend'den yeniden yükle
|
|
7745
|
+
this.refreshStepForm(this.nextStepNumber);
|
|
7744
7746
|
}
|
|
7745
7747
|
this.loading = false;
|
|
7746
7748
|
}
|
|
@@ -7753,6 +7755,56 @@ class HitSetupWizardComponent {
|
|
|
7753
7755
|
return;
|
|
7754
7756
|
}
|
|
7755
7757
|
this.currentStep.next(prevStep);
|
|
7758
|
+
// Geri gelinen adımın formunu backend'den yeniden yükle
|
|
7759
|
+
this.refreshStepForm(prevStep);
|
|
7760
|
+
}
|
|
7761
|
+
/**
|
|
7762
|
+
* Belirtilen adımın formunu backend'den yeniden yükler
|
|
7763
|
+
* Bu sayede kullanıcı her zaman kaydedilmiş güncel verileri görür
|
|
7764
|
+
*/
|
|
7765
|
+
refreshStepForm(stepIndex) {
|
|
7766
|
+
switch (stepIndex) {
|
|
7767
|
+
case 2:
|
|
7768
|
+
// ParamsCompany formunu yeniden yükle
|
|
7769
|
+
if (this.HitParamsCompanyComponent) {
|
|
7770
|
+
this.HitParamsCompanyComponent.getParamsCompany(true);
|
|
7771
|
+
}
|
|
7772
|
+
break;
|
|
7773
|
+
case 3:
|
|
7774
|
+
// ParamsGeneral Part1 formunu yeniden yükle
|
|
7775
|
+
if (this.HitParamsGeneralPart1Component) {
|
|
7776
|
+
this.HitParamsGeneralPart1Component.getGeneralParams(true);
|
|
7777
|
+
}
|
|
7778
|
+
break;
|
|
7779
|
+
case 4:
|
|
7780
|
+
// ParamsGeneral Part2 formunu yeniden yükle
|
|
7781
|
+
if (this.HitParamsGeneralPart2Component) {
|
|
7782
|
+
this.HitParamsGeneralPart2Component.ngOnInit();
|
|
7783
|
+
}
|
|
7784
|
+
break;
|
|
7785
|
+
case 5:
|
|
7786
|
+
// ParamsIntegrator formunu yeniden yükle
|
|
7787
|
+
if (this.HitParamsIntegratorComponent) {
|
|
7788
|
+
const branchId = this.HitParamsIntegratorComponent.formParamsIntegrator?.controls?.branchId?.value || '';
|
|
7789
|
+
this.HitParamsIntegratorComponent.getParamsIntegrator(true, branchId);
|
|
7790
|
+
}
|
|
7791
|
+
break;
|
|
7792
|
+
case 6:
|
|
7793
|
+
// ParamsInvoice formunu yeniden yükle
|
|
7794
|
+
if (this.HitParamsInvoiceComponent) {
|
|
7795
|
+
this.HitParamsInvoiceComponent.getParamsInvoice(true);
|
|
7796
|
+
}
|
|
7797
|
+
break;
|
|
7798
|
+
case 7:
|
|
7799
|
+
// ParamsDispatch formunu yeniden yükle
|
|
7800
|
+
if (this.HitParamsDispatchComponent) {
|
|
7801
|
+
this.HitParamsDispatchComponent.getParamsDispatch(true);
|
|
7802
|
+
}
|
|
7803
|
+
break;
|
|
7804
|
+
default:
|
|
7805
|
+
// Adım 1 ve 8 için form yükleme gerekmiyor
|
|
7806
|
+
break;
|
|
7807
|
+
}
|
|
7756
7808
|
}
|
|
7757
7809
|
setParamsCompany(value) {
|
|
7758
7810
|
this.paramsCompany = value;
|