bug #21599: comptabilité analytique && Ecriture ouverture

This commit is contained in:
sparkyx 2007-11-16 21:49:23 +00:00
parent 600ca269e0
commit f208d503de
4 changed files with 12 additions and 2 deletions

View file

@ -39,5 +39,7 @@ CREATE TRIGGER document_modele_validate
BEFORE INSERT OR UPDATE ON document_modele
FOR EACH ROW
EXECUTE PROCEDURE t_document_modele_validate();
update operation_analytique set oa_debit=j_debit from jrnx where jrnx.j_id=operation_analytique.j_id ;
update version set val=36;
commit;

View file

@ -74,6 +74,7 @@ if ( isset ($_GET['export'])) {
$w->name="p_periode";
echo 'Période : '.$w->IOValue();
echo $w->Submit('export','Export');
echo dossier::hidden();
echo "</form>";
exit(0);
}
@ -88,6 +89,8 @@ if ( isset ($_GET['import'])) {
?>
<FORM NAME="form_detail" enctype="multipart/form-data" ACTION="ecrit_ouv.php?import" METHOD="POST">
<?php
echo dossier::hidden();
// TODO propose ODS ledger
$ods=make_array($cn,"select jrn_def_id,jrn_def_name from jrn_def where jrn_def_type = 'ODS'");
$x=new widget("select");

View file

@ -86,6 +86,7 @@ if ( $sub_action=="blank")
echo '<input type="hidden" name="sa" value="insert">';
echo '<input type="hidden" name="fd_id" value="'.$_GET['fd_id'].'">';
echo '<input type="hidden" name="url" value="'.$_GET['url'].'">';
echo dossier::hidden();
echo $c->blank($_GET['fd_id']);
echo '<input type="Submit" value="Sauve">';
echo '</form>';
@ -100,7 +101,9 @@ if ( $sub_action == "list" )
<div class="u_content">
<span style="position:float;float:left">
<form method="get" action="commercial.php">
<?php
<?php
echo dossier::hidden();
$a=(isset($_GET['query']))?$_GET['query']:"";
printf ('<input type="text" name="query" value="%s">',
$a);
@ -120,6 +123,8 @@ if ( $sub_action == "list" )
$w->value= make_array($cn,"select fd_id,fd_label from fiche_def where ".
" frd_id=".FICHE_TYPE_FOURNISSEUR);
echo $w->IOValue();
echo dossier::hidden();
?>
<input type="hidden" name="sa" value="blank">
<input type="submit" name="submit_query" value="Ajout Sup">

View file

@ -911,7 +911,7 @@ function RecordSell($p_cn,$p_array,$p_user,$p_jrn)
$op->oa_group=$group;
$op->j_id=$j_id;
$op->oa_date=$e_date;
$op->oa_debit=($op->oa_amount < 0 )?'t':'f';
$op->oa_debit=($op->oa_amount < 0 )?'f':'t';
$op->oa_description=$comm;
$op->save_form_plan($_POST,$i);
}