From 339266f1cdbd228035b44e0e16a8a16020b614cd Mon Sep 17 00:00:00 2001 From: www-data Date: Mon, 3 Jan 2022 20:10:16 +0100 Subject: [PATCH] Updated things I thought where already done. --- app/compta/page_ledger_mes_documents.php | 37 +++++++----- app/compta/reports/syndic_annexe1.php | 4 +- app/compta/reports/syndic_annexe2.php | 4 +- app/compta/reports/syndic_annexe3.php | 4 +- app/compta/reports/syndic_annexe4.php | 4 +- app/compta/reports/syndic_annexe_data.php | 4 +- app/compta/reports/syndic_builder_annexe.php | 4 +- .../reports/syndic_builder_decompte.php | 4 +- app/compta/reports/syndic_charges.php | 1 - app/compta/reports/syndic_compte.php | 4 +- app/compta/views/compta_index.php | 2 +- app/config/mysql.conf.php | 1 + app/config/mysql.conf.php.home | 6 ++ app/config/syndic.php | 59 ++----------------- js/login.js | 9 +-- 15 files changed, 56 insertions(+), 91 deletions(-) create mode 120000 app/config/mysql.conf.php diff --git a/app/compta/page_ledger_mes_documents.php b/app/compta/page_ledger_mes_documents.php index 6c5ed07..9a64e91 100644 --- a/app/compta/page_ledger_mes_documents.php +++ b/app/compta/page_ledger_mes_documents.php @@ -2,6 +2,7 @@ require_once(dirname(__FILE__)."/pages.php"); require_once(dirname(__FILE__)."/api_exercice.php"); require_once(dirname(__FILE__)."/api_syndic.php"); +require_once(dirname(__FILE__)."/api_retrieve.php"); $XmlComptaDocuments = << @@ -44,30 +45,38 @@ class PageMesDocuments extends PageCompta { function __construct($s,$b) { parent::__construct($s,$b); + GLOBAL $conf; + $this->conf_auth = $conf['auth']['mysql']; + $this->_retrieve = new \Retrieve( $this->session + , $this->conf_auth + , $this->session->getDb()); } - private function decompte($period) + private function decompte($period,$cpt) { $_scheme = $this->request->getScheme(); - $root = $_scheme."".$this->request->getServerHost()."/".$this->alias."/app/compta/reports/decompte_charge.php?period="; - echo '
  • Décompte de charge '.$period.'
  • '; + $root = $_scheme."".$this->request->getServerHost()."/".$this->alias."/app/compta/reports/syndic_builder_decompte.php?period="; + echo '
  • Décompte de charge '.$period.'
  • '; } private function documents() { - $_cfg = $this->_auth_cfg; - $ex = new Exercice( $this->getSession() + $_cfg = $this->_auth_cfg; + $ex = new Exercice( $this->getSession() , $_cfg , $this->getSession()->getDb()); - $syndic = new Syndic( $this->getSession() + $syndic = new Syndic( $this->getSession() , $_cfg , $this->getSession()->getDb()); - $acc = $syndic->getCoproprietaires(0); - $p = $ex->getClosed(false); - echo "