Les fonctions fwl_TOOSMART_NOOA_lowcode_report_PDF_facture_XXX sont pour l'édition du pdf de facturation les différentes fonctions represente les différentes parties du pdf où il y a besoin de fonction spé.
function fwl_TS_NOOA_FACTURE_lowcode_report_PDF_facture_entete(){
global $navi_id_type;
global $navi_id_obje;
global $factureManager;
if(!isset($factureManager)){
$factureManager = new FactureManager_Nooa($navi_id_type,$navi_id_obje);
}
$franchise = $factureManager->getEntite();
if(!empty($franchise['att3'])){
$phone_assembly = implode('.', str_split($franchise['att3'], 2));
// ... (truncated)
Fonction pour l'ajout du tampon facture acquité si le checkbox est true
function fwl_TS_NOOA_FACTURE_lowcode_report_PDF_facture_tampon()
{
global $navi_id_type;
global $navi_id_obje;
global $factureManager;
if(!isset($factureManager)){
$factureManager = new FactureManager_Nooa($navi_id_type,$navi_id_obje);
}
$tampon=($factureManager->getFactureInfos()[$factureManager->getModuleCodes()['fac_is_soldee']]==1)? $factureManager->getTamponAcquite():' ';
return $tampon;
}
function fwl_TS_NOOA_FACTURE_lowcode_report_PDF_facture_pied_de_page(){
global $navi_id_obje;
global $navi_id_type;
global $factureManager;
if(!isset($factureManager)){
$factureManager = new FactureManager_Nooa($navi_id_type,$navi_id_obje);
}
$franchise = $factureManager->getEntite();
return '<div style="line-height: 5em;">'.
'<p style="text-align: center; color: #4a5568">'.$franchise["att2"].' - '.$franchise["att15"].' au capital de '.$franchise["att16"].'€ - RCS '.$franchise["att17"].'</p>'.
// ... (truncated)
↩️ Returns
(string) format html avec les informations à mettre en pied de page