Check sum analytic
This commit is contained in:
parent
bfeda942e6
commit
1cf7fc8a7a
1 changed files with 5 additions and 5 deletions
|
|
@ -247,10 +247,10 @@ if ( isset($_POST['update_record']) ) {
|
|||
$own = new Own($cn);
|
||||
|
||||
if ( $own->MY_ANALYTIC != "nu" )
|
||||
{
|
||||
{
|
||||
// Check the total only for mandatory
|
||||
//
|
||||
if ( $own->MY_ANALYTIC == "ob") {
|
||||
// if ( $own->MY_ANALYTIC == "ob") {
|
||||
$tab=0; $row=1;
|
||||
while (1) {
|
||||
if ( !isset ($_POST['nb_t'.$tab]))
|
||||
|
|
@ -264,14 +264,14 @@ if ( isset($_POST['update_record']) ) {
|
|||
}
|
||||
|
||||
if ( $tot_tab != $_POST['amount_t'.$tab]) {
|
||||
echo "Erreur montant CA";
|
||||
echo "Opération annulée";
|
||||
echo '<script>alert ("Erreur montant CA Operation annulee")</script>';
|
||||
get_redirect($_SERVER['HTTP_REFERER']);
|
||||
return;
|
||||
}
|
||||
$tot_tab=0;
|
||||
$tab++;
|
||||
}
|
||||
}
|
||||
// }
|
||||
|
||||
// we need first old the j_id and j_poste
|
||||
// so we fetch them all from the db
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue