diff --git a/htdocs/compta/export/modules/compta.export.poivre.class.php b/htdocs/compta/export/modules/compta.export.poivre.class.php index bfb1bc96e9e..0e3ed754919 100644 --- a/htdocs/compta/export/modules/compta.export.poivre.class.php +++ b/htdocs/compta/export/modules/compta.export.poivre.class.php @@ -194,43 +194,41 @@ class ComptaExportPoivre { // Ligne client $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, "4110000"); + $page->write_string($j, 1, "VI"); + $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][5]); // Numé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 + $page->write_string($j, 5, $this->line_out[$i][5]); // Numéro de factur + $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, 8, strftime("%d%m%y",$this->line_out[$i][0])); $j++; // Ligne TVA $page->write_string($j, 0, strftime("%d%m%y",$this->line_out[$i][0])); - $page->write_string($j, 1, "VE"); + $page->write_string($j, 1, "VI"); $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][5]); // Numé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édit - $page->write_string($j, 9, 'EUR'); // D pour débit + $page->write($j, 6, ereg_replace(",",".",$this->line_out[$i][6])); // Montant de TVA + $page->write_string($j, 7, 'C'); // C pour crédit + $page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0])); + $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, 1, 'VI'); $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][5]); // Numéro de facture - $page->write_string($j, 6, strftime("%d%m%y",$this->line_out[$i][0])); - $page->write($j, 7, ereg_replace(",",".",round($this->line_out[$i][8], 2))); // Montant de la ligne - $page->write_string($j, 8, 'C'); // C pour crédit - $page->write_string($j, 9, 'EUR'); // D pour débit + $page->write_string($j, 5, $this->line_out[$i][5]); + $page->write($j, 6, ereg_replace(",",".",round($this->line_out[$i][8], 2))); + $page->write_string($j, 7, 'C'); // C pour crédit + $page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0])); $j++; } @@ -305,25 +303,23 @@ class ComptaExportPoivre $page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); // $page->write_string($j,5, $linep[$i][7]); // Numéro de facture - $page->write_string($j,6, strftime("%d%m%y",$linep[$i][0])); - $page->write($j,7, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne - $page->write_string($j,8,$debit); - $page->write_string($j,9,'EUR'); + $page->write($j,6, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne + $page->write_string($j,7,$debit); + $page->write_string($j,8, strftime("%d%m%y",$linep[$i][0])); + $j++; $page->write_string($j,0, strftime("%d%m%y",$linep[$i][0])); $page->write_string($j,1, 'CE'); - $page->write_string($j,2, '4110000'); + $page->write_string($j,2, '41100000'); $page->write_string($j,3, $linep[$i][2]); $page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); // - $page->write_string($j,5, $linep[$i][7]); // Numéro de facture - - $page->write_string($j,6, strftime("%d%m%y",$linep[$i][0])); - $page->write($j,7, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne - $page->write_string($j,8, $credit); - $page->write_string($j,9, 'EUR'); + $page->write_string($j,5, $linep[$i][7]); // Numéro de facture + $page->write($j,6, ereg_replace(",",".",round(abs($linep[$i][5]), 2))); // Montant de la ligne + $page->write_string($j,7, $credit); + $page->write_string($j,8, strftime("%d%m%y",$linep[$i][0])); $j++;