This commit is contained in:
sparkyx 2004-04-07 17:36:58 +00:00
parent 34cfa0d92d
commit a154a562bb
3 changed files with 8 additions and 3 deletions

View file

@ -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);

View file

@ -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 ) {

View file

@ -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");