2
0
forked from Wavyzz/dolibarr

Ajout de la date d'echeance

This commit is contained in:
Rodolphe Quiedeville
2005-03-11 15:56:30 +00:00
parent b33a50e6ee
commit 63ffba14d6

View File

@@ -136,21 +136,23 @@ class ComptaExportPoivre
$page->set_column(1,1,6); // B
$page->set_column(2,2,9); // C
$page->set_column(3,3,14); // D
$page->set_column(4,4,40); // E
$page->set_column(4,4,44); // E
$page->set_column(5,5,9); // F Num<75>ro de pi<70>ce
$page->set_column(6,6,8); // G
// Pour les factures
// Date Op<4F>ration 040604 pour 4 juin 2004
// VE -> ventilation
// code Compte g<>n<EFBFBD>ral
// code client
// Intitul<75>
// Num<75>ro de pi<70>ce
// Montant
// Type op<6F>ration D pour D<>bit ou C pour Cr<43>dit
// Date d'<27>ch<63>ance, = <20> la date d'op<6F>ration si pas d'<27>ch<63>ance
// EUR pour Monnaie en Euros
//A 0 Date Op<4F>ration 040604 pour 4 juin 2004
//B 1 VE -> ventilation
//C 2 code Compte g<>n<EFBFBD>ral
//D 3 code client
//E 4 Intitul<75>
//F 5 Num<75>ro de pi<70>ce
//G 6 Date d'<27>ch<63>ance, = <20> la date d'op<6F>ration si pas d'<27>ch<63>ance
//H 7 Montant
//I 8 Type op<6F>ration D pour D<>bit ou C pour Cr<43>dit
//J 9 EUR pour Monnaie en Euros
// Pour les paiements
@@ -170,9 +172,11 @@ class ComptaExportPoivre
$page->write_string($j, 2, "41100000");
$page->write_string($j, 3, stripslashes($this->line_out[$i][2]));
$page->write_string($j, 4, stripslashes($this->line_out[$i][3])." Facture");
$page->write_string($j, 5, $this->line_out[$i][9]); // Num<75>ro de facture
$page->write($j, 6, ereg_replace(",",".",$this->line_out[$i][7]));
$page->write_string($j, 7, 'D' ); // D pour d<>bit
$page->write_string($j, 5, $this->line_out[$i][5]); // Num<75>ro de facture
$page->write_string($j, 6, strftime("%d%m%y",$this->line_out[$i][0]));
$page->write($j, 7, ereg_replace(",",".",$this->line_out[$i][7]));
$page->write_string($j, 8, 'D' ); // D pour d<>bit
$page->write_string($j, 9, 'EUR'); // D pour d<>bit
$j++;
@@ -182,20 +186,25 @@ class ComptaExportPoivre
$page->write_string($j, 2, '4457119');
$page->write_string($j, 4, stripslashes($this->line_out[$i][3])." Facture");
$page->write_string($j, 5, $this->line_out[$i][9]); // Num<75>ro de facture
$page->write($j, 6, ereg_replace(",",".",$this->line_out[$i][6])); // Montant de TVA
$page->write_string($j, 7, 'C'); // C pour cr<63>dit
$page->write_string($j, 5, $this->line_out[$i][5]); // Num<75>ro de facture
$page->write_string($j, 6, strftime("%d%m%y",$this->line_out[$i][0]));
$page->write($j, 7, ereg_replace(",",".",$this->line_out[$i][6])); // Montant de TVA
$page->write_string($j, 8, 'C'); // C pour cr<63>dit
$page->write_string($j, 9, 'EUR'); // D pour d<>bit
$oldfacture = $this->line_out[$i][1];
$j++;
}
$page->write_string($j, 0, strftime("%d%m%y",$this->line_out[$i][0]));
$page->write_string($j, 1, 'VE');
$page->write_string($j, 2, $this->line_out[$i][4]); // Code Comptable
$page->write_string($j, 4, $this->line_out[$i][3]." Facture");
$page->write_string($j, 5, $this->line_out[$i][9]); // Num<75>ro de facture
$page->write_string($j, 5, $this->line_out[$i][5]); // Num<75>ro de facture
$page->write_string($j, 6, strftime("%d%m%y",$this->line_out[$i][0]));
$page->write($j, 6, ereg_replace(",",".",round($this->line_out[$i][8], 2))); // Montant de la ligne
$page->write_string($j, 7, 'C'); // C pour cr<63>dit
$page->write_string($j, 8, 'C'); // C pour cr<63>dit
$page->write_string($j, 9, 'EUR'); // D pour d<>bit
$j++;
}