equal
deleted
inserted
replaced
421 $preu_per_compradors = $_POST["preu"]; |
421 $preu_per_compradors = $_POST["preu"]; |
422 |
422 |
423 /* Posem a 0 els toca_pagar finals */ |
423 /* Posem a 0 els toca_pagar finals */ |
424 foreach($habitants as $j) |
424 foreach($habitants as $j) |
425 $toca_pagar[$j["id"]] = 0.; |
425 $toca_pagar[$j["id"]] = 0.; |
|
426 for($i=0; $i < $_POST["num_altres"]; $i++) |
|
427 { |
|
428 $persona = $_POST["altres"][$i]; |
|
429 $toca_pagar[$persona] = 0.; |
|
430 } |
426 |
431 |
427 for ($i = 1; $i <= $_POST["num_excepcions"]; $i++) |
432 for ($i = 1; $i <= $_POST["num_excepcions"]; $i++) |
428 { |
433 { |
429 if($_POST["earticle"][$i] != "") |
434 if($_POST["earticle"][$i] != "") |
430 { |
435 { |
436 return false; |
441 return false; |
437 } |
442 } |
438 |
443 |
439 $preu_per_compradors -= $_POST["epreu"][$i]; |
444 $preu_per_compradors -= $_POST["epreu"][$i]; |
440 |
445 |
|
446 $participants = 0; |
441 foreach($habitants as $j) |
447 foreach($habitants as $j) |
442 if (isset($_POST["eparticipat"][$i][$j["id"]])) |
448 if (isset($_POST["eparticipat"][$i][$j["id"]])) |
443 $participants++; |
449 $participants++; |
444 |
450 |
445 for ($j=0;$j<$_POST["num_altres_excepcions"];$j++) |
451 for ($j=0;$j<$_POST["num_altres_excepcions"];$j++) |