Skip to content
Snippets Groups Projects
Commit bdead30e authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Missing function

parent 8189a5ea
Branches
Tags
No related merge requests found
...@@ -210,9 +210,8 @@ $total = 0; ...@@ -210,9 +210,8 @@ $total = 0;
$i=0; $i=0;
// Load arrays of datas // Load arrays of datas
$x_coll= local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell', $local); $x_coll = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell');
//$x_coll = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'sell'); $x_paye = vat_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'buy');
$x_paye = local_by_date($db, 0, 0, $date_start, $date_end, $modetax, 'buy', $local);
echo '<table class="noborder" width="100%">'; echo '<table class="noborder" width="100%">';
...@@ -235,9 +234,9 @@ else ...@@ -235,9 +234,9 @@ else
{ {
//foreach($x_coll[$my_coll_rate][localtax1_list]){ //foreach($x_coll[$my_coll_rate][localtax1_list]){
$x_both[$my_coll_rate]['coll']['totalht'] = $x_coll[$my_coll_rate]['totalht']; $x_both[$my_coll_rate]['coll']['totalht'] = $x_coll[$my_coll_rate]['totalht'];
$x_both[$my_coll_rate]['coll']['vat'] = $x_coll[$my_coll_rate]['vat']; $x_both[$my_coll_rate]['coll']['localtax'.$local] = $x_coll[$my_coll_rate]['localtax'.$local];
$x_both[$my_coll_rate]['paye']['totalht'] = 0; $x_both[$my_coll_rate]['paye']['totalht'] = 0;
$x_both[$my_coll_rate]['paye']['vat'] = 0; $x_both[$my_coll_rate]['paye']['localtax'.$local] = 0;
$x_both[$my_coll_rate]['coll']['links'] = ''; $x_both[$my_coll_rate]['coll']['links'] = '';
$x_both[$my_coll_rate]['coll']['detail'] = array(); $x_both[$my_coll_rate]['coll']['detail'] = array();
foreach($x_coll[$my_coll_rate]['facid'] as $id=>$dummy) foreach($x_coll[$my_coll_rate]['facid'] as $id=>$dummy)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment