#315 Détail article
Erreur dans script SQL Change MYUPDLAB par MY_UPDLAB Si MY_UPDLAB == Y alors input sinon span
This commit is contained in:
parent
6490066b1a
commit
7092813f0c
5 changed files with 22 additions and 10 deletions
|
|
@ -1149,7 +1149,14 @@ class Acc_Ledger_Purchase extends Acc_Ledger
|
|||
$htva->value=0;
|
||||
$array[$i]['htva']=$htva->input();
|
||||
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
if ( $g_parameter->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
$Span->size=45;
|
||||
} else
|
||||
{
|
||||
$Span=new ISpan("e_march".$i."_label");
|
||||
}
|
||||
$Span->value=$march_label;
|
||||
$Span->setReadOnly(false);
|
||||
// card's name, price
|
||||
|
|
|
|||
|
|
@ -1187,10 +1187,8 @@ class Acc_Ledger_Sold extends Acc_Ledger
|
|||
;
|
||||
if ( $flag_tva=='Y')
|
||||
{
|
||||
$march_tva_id=(isset(${"e_march$i"."_tva_id"}))?${"e_march$i"."_tva_id"}:""
|
||||
;
|
||||
$march_tva_amount=(isset(${"e_march$i"."_tva_amount"}))?${"e_march$i"."_tva_amount"}:""
|
||||
;
|
||||
$march_tva_id=(isset(${"e_march$i"."_tva_id"}))?${"e_march$i"."_tva_id"}:"";
|
||||
$march_tva_amount=(isset(${"e_march$i"."_tva_amount"}))?${"e_march$i"."_tva_amount"}:"";
|
||||
}
|
||||
$march_label=(isset(${"e_march".$i."_label"}))?${"e_march".$i."_label"}:"";
|
||||
|
||||
|
|
@ -1252,8 +1250,15 @@ class Acc_Ledger_Sold extends Acc_Ledger
|
|||
$tvac->value=0;
|
||||
$array[$i]['tvac']=$tvac->input();
|
||||
|
||||
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
if ( $g_parameter->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$Span=new IText("e_march".$i."_label");
|
||||
$Span->size=45;
|
||||
} else
|
||||
{
|
||||
$Span=new ISpan("e_march".$i."_label");
|
||||
}
|
||||
$Span->value=$march_label;
|
||||
$Span->setReadOnly(false);
|
||||
// card's name, price
|
||||
//--
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ echo '</tr>';
|
|||
$tva->load();
|
||||
$sym_tva=h($tva->get_parameter('label'));
|
||||
}
|
||||
if ($owner->MYUPDLAB == 'Y')
|
||||
if ($owner->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$l_lib = ($q[$e]['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : $q[$e]['j_text'];
|
||||
$hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']);
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ echo '</tr>';
|
|||
$fiche->id, $gDossier, $fiche->strAttribut(ATTR_DEF_QUICKCODE));
|
||||
|
||||
$row = td($view_history);
|
||||
if ($owner->MYUPDLAB == 'Y')
|
||||
if ($owner->MY_UPDLAB == 'Y')
|
||||
{
|
||||
$l_lib = ($q[$e]['j_text'] == '') ? $fiche->strAttribut(ATTR_DEF_NAME) : $q[$e]['j_text'];
|
||||
$hidden = HtmlInput::hidden("j_id[]", $q[$e]['j_id']);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
update jrnx set j_text = null from jrn where jr_grpt_id=j_grpt and j_text=jr_comment;
|
||||
insert into parameter (pr_option,pr_value) values ('MY_UPDLAB','N');
|
||||
insert into parameter (pr_id,pr_value) values ('MY_UPDLAB','N');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue