Ajout numéro RNA

This commit is contained in:
Noizette 2020-10-24 01:57:41 +02:00
parent 0b0983b01a
commit 64dc0d541d
3 changed files with 6 additions and 1 deletions

View File

@ -13,6 +13,8 @@
<fieldset>
<legend>Configuration du plugin</legend>
<dl>
<dt><label for="f_siret">RNA de l'assocation</label></dt>
<dd><input type="text" name="rna_asso" id="f_rna" value="{$rna_asso}"></dd>
<dt><label for="f_siret">SIRET de l'assocation</label></dt>
<dd><input type="text" name="siret_asso" id="f_siret" value="{$siret_asso}"></dd>

View File

@ -9,7 +9,8 @@ $session->requireAccess('compta', Membres::DROIT_ADMIN);
if (f('save') && $form->check('facturation_config'))
{
try {
$plugin->setConfig('siret_asso', f('siret_asso'));
$plugin->setConfig('rna_asso', trim(f('rna_asso')));
$plugin->setConfig('siret_asso', trim(f('siret_asso')));
$plugin->setConfig('validate_cp', f('validate_cp'));
$plugin->setConfig('unique_client_name', f('unique_name'));
$plugin->setConfig('footer', f('footer'));
@ -24,6 +25,7 @@ if (f('save') && $form->check('facturation_config'))
$tpl->assign('ok', qg('ok') !== null);
$tpl->assign('rna_asso', $plugin->getConfig('rna_asso') ?: '');
$tpl->assign('siret_asso', $plugin->getConfig('siret_asso') ?: '');
$tpl->assign('footer', $plugin->getConfig('footer') ?: '');
$tpl->assign('validate_cp', $plugin->getConfig('validate_cp') ? 'checked':'');

View File

@ -64,6 +64,7 @@ $asso =
// 'Émis par :<br><br>'.
'<b>'.$config->get('nom_asso')."</b><br>".
str_replace("\n", '<br>', $config->get('adresse_asso'))."<br>".
(($t = $plugin->getConfig('rna_asso'))?"RNA : $t<br>":'').
(($t = $plugin->getConfig('siret_asso'))?"SIRET : $t<br>":'').
(($t = $config->get('email_asso'))?"Email : $t<br>":'').
(($t = $config->get('site_asso'))?"Site web : $t<br>":'');