Fix install, use Paheko sign, fix $plugin vars
This commit is contained in:
parent
235f8ceeed
commit
899bf02775
16 changed files with 14 additions and 16 deletions
|
|
@ -9,6 +9,7 @@ $users = new Users\Users;
|
|||
f(['id' => 'required|numeric']);
|
||||
$id = (int) qg('id');
|
||||
$id_field = Users\DynamicFields::getNameFieldsSQL();
|
||||
$sign_tag = UserTemplate\Functions::signature();
|
||||
|
||||
// Vérification que le document existe
|
||||
if (!$f = $facture->get($id))
|
||||
|
|
@ -94,7 +95,7 @@ if ($f->type_facture != CERFA)
|
|||
{
|
||||
$echeance = ($f->type_facture?'Échéance de paiement':'Échéance du devis')." : ".$echeance;
|
||||
$reglee = !$f->reglee?'Cette facture est en attente de règlement.':'Cette facture a été reglée.';
|
||||
$footer = str_replace("\n", '<br>', $plugin->getConfig('footer'));
|
||||
$footer = str_replace("\n", '<br>', $plugin->getConfig('footer') ?? '[Pied de page à configurer]');
|
||||
$ttc = $plugin->getConfig('ttc') ? 'TTC':'HT';
|
||||
|
||||
// Génération du contenu de la facture
|
||||
|
|
@ -480,7 +481,7 @@ elseif ($f->type_facture == CERFA)
|
|||
<div style="top: 239mm; left: 148mm;">{$t['m2']}</div>
|
||||
<div style="top: 239mm; left: 156mm;">{$t['Y2']}</div>
|
||||
|
||||
<div style="top: 243mm; left: 137mm;"><img src="{$url}plugin/facturation/sign.png" style="width: 50mm;"/></div>
|
||||
<div style="top: 243mm; left: 137mm;">{$sign_tag}</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue