module budget : detail is finished

This commit is contained in:
sparkyx 2007-12-23 19:40:46 +00:00
parent 0e3761de05
commit 41cc846ade
4 changed files with 23 additions and 4 deletions

View file

@ -55,6 +55,10 @@ class Bud_Data {
}
function load() {
if ( $this->po_id == -1)
$sql_po_id="po_id is null";
else
$sql_po_id=".$this->po_id";
$sql=" select bd_id,bc_id,bc_code,bd.bh_id,bd.bh_name,".
" tmp_pcmn.pcm_val as pcm_val,pcm_lib ".
" from bud_detail ".
@ -62,7 +66,7 @@ class Bud_Data {
" join bud_card using (bc_id) ".
" join tmp_pcmn using (pcm_val) ".
" where bd.bh_id=".$this->bh_id.
" and po_id=".$this->po_id;
" and $sql_po_id ;";
echo_debug(__FILE__.':'.__LINE__.'- load',' SQL ',$sql);
$res1=ExecSql($this->cn,$sql);