Fix problem with jrn_def_class_cred

This commit is contained in:
sparkyx 2007-10-18 20:06:55 +00:00
parent 3094c2c633
commit 849e4946d3
5 changed files with 6 additions and 7 deletions

View file

@ -67,13 +67,12 @@ if ( isset($_GET['filter']) && $_GET['filter'] != 'all') {
// Load the property
$l_line=GetJrnProp($gDossier,$_GET['p_jrn']);
if ( strlen(trim ($l_line['jrn_def_class_cred']) ) > 0 ) {
$valid_cred=split(" ",$l_line['jrn_def_class_cred']);
if ( strlen(trim ($l_line['jrn_def_class_deb']) ) > 0 ) {
$valid_cred=split(" ",$l_line['jrn_def_class_deb']);
// Creation query
foreach ( $valid_cred as $item_cred) {
if ( strlen (trim($item_cred))) {
echo_debug('poste_search.php',__LINE__,"l_line[jrn_def_class_cred] $l_line[jrn_def_class_cred] item_cred $item_cred");
if ( strstr($item_cred,"*") == true ) {
$item_cred=strtr($item_cred,"*","%");
$Sql=" pcm_val like '$item_cred' or";

View file

@ -42,7 +42,7 @@ div.info {
h2.info {
background:#879ed4;
color:white;
font-size:16pt;
font-size:12pt;
text-align:center;
padding:0px;
margin:0px;

View file

@ -41,7 +41,7 @@ div.info {
h2.info {
background:#879ed4;
color:white;
font-size:16pt;
font-size:12pt;
text-align:center;
padding:0px;
margin:0px;

View file

@ -43,7 +43,7 @@ background-color: #879ed4;
h2.info {
background-color:#879ed4;
color:white;
font-size:2.5em;
font-size:12pt;
text-align:center;
padding:0px;
margin:0px;

View file

@ -715,7 +715,7 @@ class Acc_Ledger {
* \return return an string
*/
function get_class_def() {
$sql="select jrn_def_class_cred ".
$sql="select jrn_def_class_deb ".
" from jrn_def where ".
" jrn_def_id = ".$this->id;