Problem with quickcode

This commit is contained in:
sparkyx 2006-10-08 16:53:30 +00:00
parent 9516d39118
commit 0bf1b346a8
2 changed files with 15 additions and 14 deletions

View file

@ -82,5 +82,7 @@ update jrnx set j_qcode = B.av_text from
where ad_id=23) as B using(f_id) where j_poste=a.av_text; where ad_id=23) as B using(f_id) where j_poste=a.av_text;
update jrnx set j_qcode = upper(j_qcode);
update version set val=23; update version set val=23;
commit; commit;

View file

@ -244,19 +244,18 @@ function GetTvaPoste($p_cn,$p_tva_id,$p_cred) {
************************************************** **************************************************
*\brief Insert into the table Jrn *\brief Insert into the table Jrn
* *
* parm : *
* - $p_cn database connection * \param $p_cn database connection
* - $p_type debit or credit * \param $p_type debit or credit
* - $p_user the current user * \param $p_user the current user
* - $p_jrn the current 'journal' (folder) * \param $p_jrn the current 'journal' (folder)
* - $p_poste the account * \param $p_poste the account
* - $p_date * \param $p_date
* - $p_amount amount to insert * \param $p_amount amount to insert
* - $p_periode the concerned periode * \param $p_periode the concerned periode
* gen : *
* - none * \return nothing
* return: *
* - nothing
*/ */
function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode,$p_qcode="") function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_grpt,$p_periode,$p_qcode="")
@ -276,7 +275,7 @@ function InsertJrnx($p_cn,$p_type,$p_user,$p_jrn,$p_poste,$p_date,$p_amount,$p_g
} }
$sql=sprintf("select insert_jrnx $sql=sprintf("select insert_jrnx
('%s',abs(%.2f),%d,%d,%d,%s,'%s',%d,'%s')", ('%s',abs(%.2f),%d,%d,%d,%s,'%s',%d,upper('%s'))",
$p_date,round($p_amount,2),$p_poste,$p_grpt,$p_jrn,$debit,$p_user,$p_periode,$p_qcode); $p_date,round($p_amount,2),$p_poste,$p_grpt,$p_jrn,$debit,$p_user,$p_periode,$p_qcode);
echo_debug('user_common.php',__LINE__,"InsertJrnx $sql"); echo_debug('user_common.php',__LINE__,"InsertJrnx $sql");