NEW: VAT report - Optimisation & collapse by rate
This commit is contained in:
parent
8079105aaf
commit
8ee1ec7944
@ -610,11 +610,12 @@ if (!is_array($x_coll) || !is_array($x_paye))
|
|||||||
|
|
||||||
if (is_array($x_both[$rate]['paye']['detail']))
|
if (is_array($x_both[$rate]['paye']['detail']))
|
||||||
{
|
{
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print '<td class="tax_rate">';
|
print '<td class="tax_rate" colspan="' . ($span+1) . '">';
|
||||||
print '<a href="' . dol_buildpath('/compta/tva/quadri_detail.php', 1) . '?invoice_type=supplier&vat_rate_show=' . $rate . '&year=' . $year_start . '&month=' . $month_start . '" title="' . $langs->trans('VATReportShowByRateDetails') . '">' . $langs->trans('Rate') . ' : ' . vatrate($rate) . '%' . '</a>';
|
print $langs->trans('Rate') . ' : ' . vatrate($rate) . '%';
|
||||||
print '</td><td colspan="' . ($span+1) . '"></td>';
|
print ' - <a href="' . dol_buildpath('/compta/tva/quadri_detail.php', 1) . '?invoice_type=supplier&vat_rate_show=' . $rate . '&year=' . $year_start . '&month=' . $month_start . '">' . img_picto('', 'chevron-down', 'class="paddingrightonly"') . $langs->trans('VATReportShowByRateDetails') . '</a>';
|
||||||
print '</tr>'."\n";
|
print '</td>';
|
||||||
|
print '</tr>'."\n";
|
||||||
|
|
||||||
foreach ($x_both[$rate]['paye']['detail'] as $index=>$fields) {
|
foreach ($x_both[$rate]['paye']['detail'] as $index=>$fields) {
|
||||||
// Define type
|
// Define type
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user