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 |
{ |
{ |
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 |