Suite rapport TVA

This commit is contained in:
Laurent Destailleur
2008-02-18 12:25:21 +00:00
parent d0f5e7bbe1
commit fefd9d066e
4 changed files with 52 additions and 40 deletions

View File

@@ -93,12 +93,12 @@ if ($modetax==1) // Caluclate on invoice for goods and services
$productcust=$langs->trans("Description");
$amountcust=$langs->trans("AmountHT");
$vatcust=$langs->trans("VATReceived");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("VATToPay").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("ToPay").')';
$elementsup=$langs->trans("SuppliersInvoices");
$productsup=$langs->trans("Description");
$amountsup=$langs->trans("AmountHT");
$vatsup=$langs->trans("VATPayed");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("VATToCollect").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("ToGetBack").')';
}
if ($modetax==0) // Invoice for goods, payment for services
{
@@ -116,12 +116,12 @@ if ($modetax==0) // Invoice for goods, payment for services
$productcust=$langs->trans("Description");
$amountcust=$langs->trans("AmountHT");
$vatcust=$langs->trans("VATReceived");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("VATToPay").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("ToPay").')';
$elementsup=$langs->trans("SuppliersInvoices");
$productsup=$langs->trans("Description");
$amountsup=$langs->trans("AmountHT");
$vatsup=$langs->trans("VATPayed");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("VATToCollect").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("TogetBack").')';
}
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink);

View File

@@ -97,12 +97,12 @@ if ($modetax==1) // Caluclate on invoice for goods and services
$productcust=$langs->trans("ProductOrService");
$amountcust=$langs->trans("AmountHT");
$vatcust=$langs->trans("VATReceived");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("VATToPay").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("ToPay").')';
$elementsup=$langs->trans("SuppliersInvoices");
$productsup=$langs->trans("ProductOrService");
$amountsup=$langs->trans("AmountHT");
$vatsup=$langs->trans("VATPayed");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("VATToCollect").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("ToGetBack").')';
}
if ($modetax==0) // Invoice for goods, payment for services
{
@@ -126,12 +126,12 @@ if ($modetax==0) // Invoice for goods, payment for services
$productcust=$langs->trans("ProductOrService");
$amountcust=$langs->trans("AmountHT");
$vatcust=$langs->trans("VATReceived");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("VATToPay").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatcust.=' ('.$langs->trans("ToPay").')';
$elementsup=$langs->trans("SuppliersInvoices");
$productsup=$langs->trans("ProductOrService");
$amountsup=$langs->trans("AmountHT");
$vatsup=$langs->trans("VATPayed");
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("VATToCollect").')';
if ($conf->global->FACTURE_TVAOPTION != 'franchise') $vatsup.=' ('.$langs->trans("ToGetBack").')';
}
report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportlink);
@@ -141,14 +141,11 @@ report_header($nom,$nomlink,$period,$periodlink,$description,$builddate,$exportl
echo '<table class="noborder" width="100%">';
$y = $year_current;
$total = 0; $subtotal = 0;
$total = 0;
$subtotal = 0;
$i=0;
$subtot_coll_total = 0;
$subtot_coll_vat = 0;
$subtot_paye_total = 0;
$subtot_paye_vat = 0;
// Load arrays of datas
$x_coll = vat_by_quarter($db, $y, $q, $modetax, 'sell');
$x_paye = vat_by_quarter($db, $y, $q, $modetax, 'buy');
@@ -243,13 +240,16 @@ print '<td align="left">'.$productcust.'</td>';
if ($modetax == 0)
{
print '<td align="right">'.$amountcust.'</td>';
print '<td align="right">'.$langs->trans("Payment").' (% of invoice)</td>';
print '<td align="right">'.$langs->trans("Payment").' ('.$langs->trans("PercentOfInvoice").')</td>';
}
print '<td align="right">'.$langs->trans("AmountHTVATRealReceived").'</td>';
print '<td align="right">'.$vatcust.'</td>';
print '</tr>';
foreach(array_keys($x_coll) as $rate)
{
$subtot_coll_total_ht = 0;
$subtot_coll_vat = 0;
if (is_array($x_both[$rate]['coll']['detail']))
{
$var=true;
@@ -260,7 +260,9 @@ foreach(array_keys($x_coll) as $rate)
{
$var=!$var;
print '<tr '.$bc[$var].'>';
// Ref
print '<td nowrap align="left">'.$fields['link'].'</td>';
//Description
print '<td align="left">';
if ($fields['pid'])
{
@@ -276,7 +278,7 @@ foreach(array_keys($x_coll) as $rate)
else $text = img_object($langs->trans('Product'),'product');
print $text.' ';
}
print dolibarr_trunc($fields['descr'],24).'</td>';
print dolibarr_trunc($fields['descr'],16).'</td>';
// Amount line
if ($modetax == 0)
{
@@ -318,9 +320,9 @@ foreach(array_keys($x_coll) as $rate)
print '</td>';
print '</tr>';
$subtot_coll_total += $temp_ht;
$subtot_coll_vat += $temp_vat;
$x_coll_sum += $temp_vat;
$subtot_coll_total_ht += $temp_ht;
$subtot_coll_vat += $temp_vat;
$x_coll_sum += $temp_vat;
}
}
print '<tr class="liste_total">';
@@ -331,7 +333,7 @@ foreach(array_keys($x_coll) as $rate)
print '<td nowrap align="right">&nbsp;</td>';
print '<td align="right">&nbsp;</td>';
}
print '<td align="right">'.price(price2num($subtot_coll_total,'MT')).'</td>';
print '<td align="right">'.price(price2num($subtot_coll_total_ht,'MT')).'</td>';
print '<td nowrap align="right">'.price(price2num($subtot_coll_vat,'MT')).'</td>';
print '</tr>';
}
@@ -354,6 +356,9 @@ print '<td align="right">'.$vatsup.'</td>';
print '</tr>'."\n";
foreach(array_keys($x_paye) as $rate)
{
$subtot_paye_total_ht = 0;
$subtot_paye_vat = 0;
if(is_array($x_both[$rate]['paye']['detail']))
{
$var=true;
@@ -422,9 +427,9 @@ foreach(array_keys($x_paye) as $rate)
print '</td>';
print '</tr>';
$subtot_paye_total += $temp_ht;
$subtot_paye_vat += $temp_vat;
$x_paye_sum += $temp_vat;
$subtot_paye_total_ht += $temp_ht;
$subtot_paye_vat += $temp_vat;
$x_paye_sum += $temp_vat;
}
}
@@ -436,18 +441,18 @@ foreach(array_keys($x_paye) as $rate)
print '<td nowrap align="right">&nbsp;</td>';
print '<td align="right">&nbsp;</td>';
}
print '<td align="right">'.price(price2num($subtot_paye_total,'MT')).'</td>';
print '<td align="right">'.price(price2num($subtot_paye_total_ht,'MT')).'</td>';
print '<td nowrap align="right">'.price(price2num($subtot_paye_vat,'MT')).'</td>';
print '</tr>';
}
print '<tr><td colspan="'.($span+1).'">&nbsp;</td></tr>';
print '<tr>';
print '<td colspan="'.$span.'"></td><td align="right">'.$langs->trans("TotalToPay").', '.$langs->trans("Quadri").$q.'</td>';
print '<td colspan="'.$span.'"></td><td align="right">'.$langs->trans("TotalToPay").', '.$langs->trans("Quadri").' '.$q.':</td>';
print '</tr>'."\n";
$diff = $x_coll_sum - $x_paye_sum;
//$total = $total + $diff;
//$subtotal = $subtotal + $diff;
print "<tr>";
print '<td colspan="'.$span.'"></td>';
print '<td nowrap align="right"><b>'.price(price2num($diff,'MT'))."</b></td>\n";

View File

@@ -8,7 +8,6 @@ OptionModeTrue=Option Input-Ouput
OptionModeVirtual=Option Credits-Debits
OptionModeTrueDesc=In this context, the turnover is calculated over paiements (date of payments). \nThe validity of the figures is assured only if the book-keeping is scrutinized through the input/output on the accounts via invoices.
OptionModeVirtualDesc=In this context, the turnover is calculated over invoices (date of validation). When these invoices are due, whether they have been paid or not, they are listed in the turnover output.
VATReportDesc=This report sows VAT received and payed.
FeatureIsSupportedInInOutModeOnly=Feature only available in CREDITS-DEBTS accountancy mode (See Accountancy module configuration)
Param=Setup
AccountsGeneral=Accounts
@@ -30,6 +29,8 @@ VATToCollect=VAT to collect
VATSummary=VAT Summary
VATPayed=VAT payed
VATCollected=VAT collected
ToPay=To pay
ToGet=To get back
TaxAndDividendsArea=Tax, social contributions and dividends area
SocialContribution=Social contribution
SocialContributions=Social contributions
@@ -87,12 +88,15 @@ RulesResultDue=- Amounts shown are with all taxes included<br>- It includes outs
RulesResultInOut=- Amounts shown are with all taxes included<br>- It includes the real payments made on invoices, expenses and VAT. <br>- It is based on the payment dates of the invoices, expenses anf VAT.<br>
RulesCADue=- It includes the clients' due invoices whether they are paid or not. <br>- It is based on the validation date of these invoices. <br>
RulesCAIn=- It includes all the effective payments of invoices received from clients.<br>- It is based on the payment date of these invoices<br>
VATReportByCustomersInInputOutputMode=Rapport par trimestre des TVA collect<63>es et pay<61>s (TVA sur encaissement)
VATReportByCustomersInDueDebtMode=Rapport par trimestre des TVA collect<63>es et pay<61>s (TVA sur d<>bit)
VATReportByQuarterInInputOutputMode=Rapport par client des TVA collect<63>es et pay<61>s (TVA sur encaissement)
VATReportByQuarterInDueDebtMode=Rapport par client des TVA collect<63>es et pay<61>s (TVA sur d<>bit)
SeeVATReportInInputOutputMode=Voir le rapport <b>%sRecettes-D<>penses%s</b> dit <b>TVA encaissement</b> pour un calcul sur les paiements effectivement r<>alis<69>s
SeeVATReportInDueDebtMode=Voir le rapport <b>%sCr<EFBFBD>ances-Dettes%s</b> dit <b>TVA sur d<>bit</b> pour un calcul sur les factures <20>mises
RulesVATIn=- Il inclut les TVA sur la base des r<>glements effectivement re<72>us ou <20>mis.<br>- Il se base sur la date du r<>glement.
RulesVATDue=- Il inclut les TVA sur la base des factures clients dues, qu'elles soient pay<61>es ou non.<br>- Il se base sur la date de validation de ces factures.
AmountHTVATQualified=HT VAT qualified
VATReportByCustomersInInputOutputMode=Rapport par client des TVA collect<63>es et pay<61>s (TVA sur encaissement)
VATReportByCustomersInDueDebtMode=Rapport par client des TVA collect<63>es et pay<61>s (TVA sur d<>bit)
VATReportByQuartersInInputOutputMode=Rapport par trimestre des TVA collect<63>es et pay<61>s (TVA sur encaissement)
VATReportByQuartersInDueDebtMode=Rapport par trimestre des TVA collect<63>es et pay<61>s (TVA sur d<>bit)
SeeVATReportInInputOutputMode=Voir le rapport <b>%sTVA encaissement%s</b> pour mode de calcul standard
SeeVATReportInDueDebtMode=Voir le rapport <b>%sTVA sur d<>bit%s</b> pour mode de calcul avec option sur les d<>bits
RulesVATIn=- Pour les services, le rapport inclut les TVA des r<>glements effectivement re<72>us ou <20>mis en se basant sur la date du r<>glement.<br>- Pour les biens mat<61>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
RulesVATDue=- Pour les services, le rapport inclut les TVA des factures dues, pay<61>es ou non en se basant sur la date de validation de ces factures.<br>- Pour les biens mat<EFBFBD>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
OptionVatInfoModuleComptabilite=Remarque : Pour les biens mat<61>riels, il faudrait utiliser la date de livraison pour <20>tre plus juste.
AmountHTVATRealReceived=HT collect<63>e
AmountHTVATRealPayed=HT pay<61>
PercentOfInvoice=%%/invoice

View File

@@ -29,6 +29,8 @@ VATToCollect=TVA
VATSummary=R<>sum<75> TVA
VATPayed=TVA pay<61>e
VATCollected=TVA r<>cup<75>r<EFBFBD>e
ToPay=A payer
ToGetBack=A r<>cup<75>rer
TaxAndDividendsArea=Espace taxes, charges sociales et dividendes
SocialContribution=Charge sociale
SocialContributions=Charges sociales
@@ -92,8 +94,9 @@ VATReportByQuartersInInputOutputMode=Rapport par trimestre des TVA collect
VATReportByQuartersInDueDebtMode=Rapport par trimestre des TVA collect<63>es et pay<61>s (TVA sur d<>bit)
SeeVATReportInInputOutputMode=Voir le rapport <b>%sTVA encaissement%s</b> pour mode de calcul standard
SeeVATReportInDueDebtMode=Voir le rapport <b>%sTVA sur d<>bit%s</b> pour mode de calcul avec option sur les d<>bits
RulesVATIn=- Pour les services, il inclut les TVA des r<>glements effectivement re<72>us ou <20>mis en se basant sur la date du r<>glement.<br>- Pour les biens mat<61>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
RulesVATDue=- Pour les services, il inclut les TVA des factures dues, pay<61>es ou non en se basant sur la date de validation de ces factures.<br>- Pour les biens mat<61>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
RulesVATIn=- Pour les services, le rapport inclut les TVA des r<>glements effectivement re<72>us ou <20>mis en se basant sur la date du r<>glement.<br>- Pour les biens mat<61>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
RulesVATDue=- Pour les services, le rapport inclut les TVA des factures dues, pay<61>es ou non en se basant sur la date de validation de ces factures.<br>- Pour les biens mat<61>riels, il inclut les TVA des factures en se basant sur la date de validation de la facture.
OptionVatInfoModuleComptabilite=Remarque : Pour les biens mat<61>riels, il faudrait utiliser la date de livraison pour <20>tre plus juste.
AmountHTVATRealReceived=HT collect<63>e
AmountHTVATRealPayed=HT pay<61>
AmountHTVATRealPayed=HT pay<61>
PercentOfInvoice=%%/facture