27if (!defined(
'ALLOWED')) die(
'Appel direct ne sont pas permis');
46$pdf->SetAuthor(
'NOALYSS');
47$pdf->setTitle(_(
"Résumé TVA"),
true);
55$a_sale_header = [_(
"Code TVA"), _(
"Taux"), _(
"Montant HT"), _(
"Montant TVA"),
56 _(
"Montant Autoliquidation")];
69$a_col=[
'tva_label',
'tva_rate',
'amount_wovat',
'amount_vat',
'amount_sided'];
87 $pdf->SetFont(
'DejaVuCond',
'B', 10);
92 $pdf->SetFont(
'DejaVuCond',
'B', 7);
102 $pdf->SetFont(
'DejaVuCond',
'', 7);
106 $pdf->SetFont(
'DejaVuCond',
'B', 7);
107 $pdf->write_cell(80, 5,
"");
117 $pdf->SetFont(
'DejaVuCond',
'B', 10);
122 $pdf->SetFont(
'DejaVuCond',
'B', 7);
132 $pdf->SetFont(
'DejaVuCond',
'', 7);
137 $pdf->write_cell(40, 5,
$array[
$i][$colname], 1, 0,
'L');
146$pdf->SetFont(
'DejaVuCond',
'B', 7);
147$pdf->write_cell(80, 5,
"");
158$pdf->SetFont(
'DejaVuCond',
'B', 10);
159$pdf->write_cell(50, 8, _(
"Résumé TVA vente"));
162$pdf->SetFont(
'DejaVuCond',
'B', 7);
177$pdf->SetFont(
'DejaVuCond',
'', 7);
185 $pdf->write_cell(40, 5,
$a_sum[
$i][$colname], 1, 0,
'L');
197$pdf->SetFont(
'DejaVuCond',
'B', 7);
198$pdf->write_cell(80, 5,
"");
209$a_colp=[
'tva_label',
'tva_rate',
'amount_wovat',
'amount_private',
'amount_vat',
'amount_sided',
210 'amount_noded_amount',
'amount_noded_tax',
'amount_noded_return'];
212 _(
"Montant Autoliquidation"), _(
"Montant Non Déd"), _(
"TVA ND"), _(
"TVA ND récup")];
215$a_size=[
'tva_label'=>40,
'tva_rate'=>10,
'amount_wovat'=>32,
'amount_private'=>32,
'amount_vat'=>32,
'amount_sided'=>32,
216 'amount_noded_amount'=>32,
'amount_noded_tax'=>32,
'amount_noded_return'=>32];
233 $pdf->SetFont(
'DejaVuCond',
'B', 10);
238 $pdf->SetFont(
'DejaVuCond',
'B', 7);
250 $pdf->SetFont(
'DejaVuCond',
'', 7);
254 $pdf->SetFont(
'DejaVuCond',
'B', 7);
267 $pdf->SetFont(
'DejaVuCond',
'B', 10);
270 $pdf->SetFont(
'DejaVuCond',
'B', 7);
287 $pdf->SetFont(
'DejaVuCond',
'', 7);
301$pdf->SetFont(
'DejaVuCond',
'B', 7);
312$pdf->SetFont(
'DejaVuCond',
'B', 10);
313$pdf->write_cell(50, 8, _(
"Résumé TVA Achat"));
316$pdf->SetFont(
'DejaVuCond',
'B', 7);
335$pdf->SetFont(
'DejaVuCond',
'', 7);
355$pdf->SetFont(
'DejaVuCond',
'B', 7);
nbm($p_number, $p_dec=2)
format the number with a sep.
Compute , display and export the tax summary.
for($e=2;$e< $nb_col;$e++) $a_sum
if( $delta< 0) elseif( $delta==0)