Fix bugs
This commit is contained in:
parent
34cfa0d92d
commit
a154a562bb
3 changed files with 8 additions and 3 deletions
|
|
@ -606,6 +606,7 @@ function UpdateFiche($p_cn,$p_array) {
|
|||
|
||||
// Change the name in TMP_PCMN
|
||||
// Get the new name
|
||||
$f_label=FormatString($f_label);
|
||||
ExecSql($p_cn,"update tmp_pcmn set pcm_lib='".$f_label."' where pcm_val=".$class);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -833,7 +833,7 @@ function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
|
|||
$r.='<H2 class="info">Articles</H2>';
|
||||
$r.='<TABLE>';
|
||||
$r.="<TR>";
|
||||
$r.="<th></th>";
|
||||
if ($view_only==false) $r.="<th></th>";
|
||||
$r.="<th>code</th>";
|
||||
$r.="<th>Dénomination</th>";
|
||||
$r.="<th>Prix</th>";
|
||||
|
|
@ -872,14 +872,17 @@ function FormAch($p_cn,$p_jrn,$p_user,$p_submit,$p_array=null,$view_only=true,$p
|
|||
}
|
||||
// retrieve the tva label and name
|
||||
$a_fiche=GetFicheAttribut($p_cn, $march);
|
||||
$march_label=$a_fiche['vw_name'];
|
||||
if ( $a_fiche != null and
|
||||
$march_tva_id == "" ) {
|
||||
$march_tva_id=$a_fiche['tva_id'];
|
||||
$march_tva_label=$a_fiche['tva_label'];
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}//else
|
||||
}
|
||||
else {
|
||||
if ( $view_only ) {
|
||||
|
|
|
|||
|
|
@ -66,6 +66,7 @@ echo_debug("ComputeVat $a_fiche $a_quant $a_price");
|
|||
foreach ( $a_fiche as $t=>$el) {
|
||||
echo_debug("t $t e $el");
|
||||
}
|
||||
$r=null;
|
||||
// foreach goods
|
||||
foreach ( $a_fiche as $idx=>$element) {
|
||||
echo_debug ("idx $idx element $element");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue