/[phpcompta]/phpcompta/include/form_input.php
ViewVC logotype

Diff of /phpcompta/include/form_input.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.56 by sparkyx, Sat Aug 27 20:42:49 2005 UTC revision 1.57 by sparkyx, Sun Sep 4 16:08:07 2005 UTC
# Line 765  function RecordInvoice($p_cn,$p_array,$p Line 765  function RecordInvoice($p_cn,$p_array,$p
765   * gen :   * gen :
766   *      -   *      -
767   * return: string with the form   * return: string with the form
  * TODO Add in parameters the infos about the company for making the invoice  
768   */   */
769  function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$pview_only=true,$p_article=3,$saved=false)  function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$pview_only=true,$p_article=3,$saved=false)
770  {  {
# Line 1122  function RecordAchat($p_cn,$p_array,$p_u Line 1121  function RecordAchat($p_cn,$p_array,$p_u
1121    echo_debug(__FILE__,__LINE__,"echeance = $e_ech");    echo_debug(__FILE__,__LINE__,"echeance = $e_ech");
1122    echo_debug(__FILE__,__LINE__,"comment = $e_comment");    echo_debug(__FILE__,__LINE__,"comment = $e_comment");
1123    if ( ($amount+$sum_vat) != 0 ){    if ( ($amount+$sum_vat) != 0 ){
1124      if ( InsertJrn($p_cn,$e_date,$e_ech,$p_jrn,$e_comment,$amount+$sum_vat,$seq,$periode) == false ) {      if ( InsertJrn($p_cn,$e_date,$e_ech,$p_jrn,$e_comment,round($amount+$sum_vat,2),$seq,$periode) == false ) {
1125        $Rollback($p_cn);exit("error __FILE__ __LINE__");        $Rollback($p_cn);exit("error __FILE__ __LINE__");
1126      }      }
1127      // Set Internal code and Comment      // Set Internal code and Comment

Legend:
Removed from v.1.56  
changed lines
  Added in v.1.57

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26