diff --git a/include/form_input.php b/include/form_input.php index 9464c801f..4bf49d8ca 100644 --- a/include/form_input.php +++ b/include/form_input.php @@ -298,6 +298,8 @@ function FormVente($p_cn,$p_jrn,$p_user,$p_array=null,$view_only=true,$p_article $r.=''.InputType("Date ","Text","e_date",$op_date,$view_only).''; $r.=''.InputType("Echeance","Text","e_ech",$e_ech,$view_only).''; + $r.=''.InputType("Commentaire","Text_big","e_comm",$e_ech,$view_only).''; + include_once("fiche_inc.php"); // Display the customer $fiche='deb'; @@ -560,6 +562,10 @@ for ($o = 0;$o < $p_number; $o++) { $r.=""; $r.=InputType("Date limite","text","",$e_ech,true); $r.=""; + // Show desc + $r.=""; + $r.=InputType("Description","text_big","",$e_comm,true); + $r.=""; $sum_with_vat=0.0; $sum_march=0.0; @@ -782,7 +788,8 @@ function RecordInvoice($p_cn,$p_array,$p_user,$p_jrn) $r=InsertJrn($p_cn,$e_date,$e_ech,$p_jrn,"Invoice",$amount+$sum_vat,$seq,$periode); if ( $r == false ) { Rollback($p_cn); exit(" Error __FILE__ __LINE__");} // Set Internal code and Comment - $comment=SetInternalCode($p_cn,$seq,$p_jrn)." client : ".GetFicheName($p_cn,$e_client); + $internal=SetInternalCode($p_cn,$seq,$p_jrn); + $comment=(trim($e_comm) == "")?$internal." client : ".GetFicheName($p_cn,$e_client):$e_comm; // Update and set the invoice's comment $Res=ExecSql($p_cn,"update jrn set jr_comment='".$comment."' where jr_grpt_id=".$seq);