FROM ".TB_PREF."debtor_trans WHERE trans_no=$trans_no AND type=$trans_type";
$result = db_query($sql,"calculate the allocation");
$myrow = db_fetch_row($result);
FROM ".TB_PREF."debtor_trans WHERE trans_no=$trans_no AND type=$trans_type";
$result = db_query($sql,"calculate the allocation");
$myrow = db_fetch_row($result);