From: www-data Date: Mon, 3 Jan 2022 19:10:16 +0000 (+0100) Subject: Updated things I thought where already done. X-Git-Url: https://git.ebersold.fr/?a=commitdiff_plain;h=339266f1cdbd228035b44e0e16a8a16020b614cd;p=www%2Fsyndic.git Updated things I thought where already done. --- 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 "