@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.
Files changed (25) hide show
  1. package/esm2020/lib/components/hit-params-companies/hit-params-company.component.mjs +9 -9
  2. package/esm2020/lib/components/hit-setup-wizard/hit-setup-wizard.component.mjs +53 -1
  3. package/esm2020/lib/paramse-dispatches/paramse-dispatch/paramse-dispatch.module.mjs +1 -1
  4. package/esm2020/lib/paramse-invoices/paramse-invoice/paramse-invoice.module.mjs +1 -1
  5. package/esm2020/lib/proxy/document-serials/index.mjs +1 -1
  6. package/esm2020/lib/proxy/gib-partner-pks/index.mjs +1 -1
  7. package/esm2020/lib/proxy/note-rule-doc-types/index.mjs +1 -1
  8. package/esm2020/lib/proxy/note-rule-scenarios/index.mjs +1 -1
  9. package/esm2020/lib/proxy/note-rules/index.mjs +1 -1
  10. package/esm2020/lib/proxy/params-companies/index.mjs +1 -1
  11. package/esm2020/lib/proxy/params-generals/index.mjs +1 -1
  12. package/esm2020/lib/proxy/params-integrators/index.mjs +1 -1
  13. package/esm2020/lib/proxy/paramse-dispatches/index.mjs +1 -1
  14. package/esm2020/lib/proxy/paramse-invoices/index.mjs +1 -1
  15. package/esm2020/lib/proxy/xslt-formats/index.mjs +1 -1
  16. package/esm2020/lib/proxy/xslt-rule-doc-types/index.mjs +1 -1
  17. package/esm2020/lib/proxy/xslt-rule-scenarios/index.mjs +1 -1
  18. package/esm2020/lib/proxy/xslt-rules/index.mjs +1 -1
  19. package/fesm2015/hitsoft-e-donusum.mjs +66 -17
  20. package/fesm2015/hitsoft-e-donusum.mjs.map +1 -1
  21. package/fesm2020/hitsoft-e-donusum.mjs +60 -8
  22. package/fesm2020/hitsoft-e-donusum.mjs.map +1 -1
  23. package/lib/components/hit-params-companies/hit-params-company.component.d.ts +2 -2
  24. package/lib/components/hit-setup-wizard/hit-setup-wizard.component.d.ts +5 -0
  25. package/package.json +1 -1
@@ -6563,10 +6563,8 @@ class HitParamsCompanyComponent {
6563
6563
  this.paramsCompany = new EventEmitter();
6564
6564
  }
6565
6565
  ngOnInit() {
6566
- return __awaiter(this, void 0, void 0, function* () {
6567
- this.buildForm();
6568
- yield this.getParamsCompany(true);
6569
- });
6566
+ this.buildForm();
6567
+ this.getParamsCompany(true);
6570
6568
  }
6571
6569
  buildForm() {
6572
6570
  debugger;
@@ -6617,28 +6615,26 @@ class HitParamsCompanyComponent {
6617
6615
  .pipe(finalize$1(() => {
6618
6616
  this.submitButtonDisabled = false;
6619
6617
  }), tap$1(() => { }))
6620
- .subscribe((data) => __awaiter(this, void 0, void 0, function* () {
6618
+ .subscribe(data => {
6621
6619
  // this.toasterService.success('eDonusum::TransactionSuccessful');
6622
- yield this.getParamsCompany();
6620
+ this.getParamsCompany();
6623
6621
  this.valid.emit(true);
6624
6622
  this.paramsCompany.emit(data);
6625
- }), err => {
6623
+ }, err => {
6626
6624
  this.toasterService.error('eDonusum::TransactionUnsuccessful');
6627
6625
  this.valid.emit(false);
6628
6626
  });
6629
6627
  });
6630
6628
  }
6631
6629
  getParamsCompany(buildForm = false) {
6632
- return __awaiter(this, void 0, void 0, function* () {
6633
- this.hitParamsCompaniesService.getParamsCompany().subscribe(data => {
6634
- var _a;
6635
- this.paramsCompanyDto = data;
6636
- this.paramsCompany.emit(data);
6637
- if (buildForm)
6638
- this.buildForm();
6639
- (_a = this.formParamsCompany.get('isTestCompany')) === null || _a === void 0 ? void 0 : _a[this.paramsCompanyDto ? 'disable' : 'enable']();
6640
- });
6641
- });
6630
+ return this.hitParamsCompaniesService.getParamsCompany().pipe(tap$1(data => {
6631
+ var _a, _b;
6632
+ this.paramsCompanyDto = data;
6633
+ this.paramsCompany.emit(data);
6634
+ if (buildForm)
6635
+ this.buildForm();
6636
+ (_b = (_a = this.formParamsCompany) === null || _a === void 0 ? void 0 : _a.get('isTestCompany')) === null || _b === void 0 ? void 0 : _b[this.paramsCompanyDto ? 'disable' : 'enable']();
6637
+ })).subscribe();
6642
6638
  }
6643
6639
  }
6644
6640
  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 });
@@ -7621,6 +7617,8 @@ class HitSetupWizardComponent {
7621
7617
  this.updateSetupStatus(this.currentStep.value == 7);
7622
7618
  this.currentStep.next(this.nextStepNumber);
7623
7619
  this.nextStepValidRefresh();
7620
+ // İleri gidilen adımın formunu backend'den yeniden yükle
7621
+ this.refreshStepForm(this.nextStepNumber);
7624
7622
  }
7625
7623
  this.loading = false;
7626
7624
  }
@@ -7633,6 +7631,57 @@ class HitSetupWizardComponent {
7633
7631
  return;
7634
7632
  }
7635
7633
  this.currentStep.next(prevStep);
7634
+ // Geri gelinen adımın formunu backend'den yeniden yükle
7635
+ this.refreshStepForm(prevStep);
7636
+ }
7637
+ /**
7638
+ * Belirtilen adımın formunu backend'den yeniden yükler
7639
+ * Bu sayede kullanıcı her zaman kaydedilmiş güncel verileri görür
7640
+ */
7641
+ refreshStepForm(stepIndex) {
7642
+ var _a, _b, _c;
7643
+ switch (stepIndex) {
7644
+ case 2:
7645
+ // ParamsCompany formunu yeniden yükle
7646
+ if (this.HitParamsCompanyComponent) {
7647
+ this.HitParamsCompanyComponent.getParamsCompany(true);
7648
+ }
7649
+ break;
7650
+ case 3:
7651
+ // ParamsGeneral Part1 formunu yeniden yükle
7652
+ if (this.HitParamsGeneralPart1Component) {
7653
+ this.HitParamsGeneralPart1Component.getGeneralParams(true);
7654
+ }
7655
+ break;
7656
+ case 4:
7657
+ // ParamsGeneral Part2 formunu yeniden yükle
7658
+ if (this.HitParamsGeneralPart2Component) {
7659
+ this.HitParamsGeneralPart2Component.ngOnInit();
7660
+ }
7661
+ break;
7662
+ case 5:
7663
+ // ParamsIntegrator formunu yeniden yükle
7664
+ if (this.HitParamsIntegratorComponent) {
7665
+ const branchId = ((_c = (_b = (_a = this.HitParamsIntegratorComponent.formParamsIntegrator) === null || _a === void 0 ? void 0 : _a.controls) === null || _b === void 0 ? void 0 : _b.branchId) === null || _c === void 0 ? void 0 : _c.value) || '';
7666
+ this.HitParamsIntegratorComponent.getParamsIntegrator(true, branchId);
7667
+ }
7668
+ break;
7669
+ case 6:
7670
+ // ParamsInvoice formunu yeniden yükle
7671
+ if (this.HitParamsInvoiceComponent) {
7672
+ this.HitParamsInvoiceComponent.getParamsInvoice(true);
7673
+ }
7674
+ break;
7675
+ case 7:
7676
+ // ParamsDispatch formunu yeniden yükle
7677
+ if (this.HitParamsDispatchComponent) {
7678
+ this.HitParamsDispatchComponent.getParamsDispatch(true);
7679
+ }
7680
+ break;
7681
+ default:
7682
+ // Adım 1 ve 8 için form yükleme gerekmiyor
7683
+ break;
7684
+ }
7636
7685
  }
7637
7686
  setParamsCompany(value) {
7638
7687
  this.paramsCompany = value;