diff --git a/include/lettering.gestion.inc.php b/include/lettering.gestion.inc.php index e06a67db1..56fa50fcf 100644 --- a/include/lettering.gestion.inc.php +++ b/include/lettering.gestion.inc.php @@ -60,12 +60,14 @@ if ( isset($_POST['record'])) //-------------------------------------------------------------------------------- // Show the result //-------------------------------------------------------------------------------- -if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null ) -{ - echo alert(_('Date malformée, désolé')); - exit(); -} - +if ( isset($_GET['start']) && isset($_GET['end'])) + { + if ( isDate($_GET['start']) == null || isDate($_GET['end']) == null ) + { + echo alert(_('Date malformée, désolé')); + exit(); + } + } echo '
'; $fiche=new Fiche($cn,$_REQUEST['f_id']); $quick_code=$fiche->get_quick_code(); diff --git a/include/template/letter_all.php b/include/template/letter_all.php index fc63beffe..1e7da0e0d 100644 --- a/include/template/letter_all.php +++ b/include/template/letter_all.php @@ -65,7 +65,7 @@ $r=sprintf(' content[$i]['j_montant'])?> content[$i]['j_debit']=='t')?'D':'C'?> content[$i]['j_debit']=='f')?$this->content[$i]['j_montant endfor; ?> -

Solde débit : -

Solde crédit : - Solde débit : +

Solde crédit : + 0 ) : ?> -

Solde débiteur : +

Solde débiteur : -

Solde créditeur : +

Solde créditeur : diff --git a/include/template/letter_prop.php b/include/template/letter_prop.php index 8b4693c44..322558b82 100644 --- a/include/template/letter_prop.php +++ b/include/template/letter_prop.php @@ -71,7 +71,7 @@ $r=sprintf(''; else echo ''; - $row->getAttribut(); - foreach($row->attribut as $attr) : + $fiche=new Fiche($cn); + $fiche->id=$row['f_id']; + $fiche->getAttribut(); + foreach($fiche->attribut as $attr) : echo td($attr->av_text,'style="padding: 0 10 1 10;white-space:nowrap;"'); endforeach; echo '';