Doxygen
This commit is contained in:
parent
997903930b
commit
6c887071a6
@ -30,16 +30,16 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
\class ComptaExport
|
\class ComptaExport
|
||||||
\brief Classe permettant les exports comptables
|
\brief Parent class for class to build accountancy export
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ComptaExport
|
class ComptaExport
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
\brief Constructeur de la class
|
\brief Constructeur de la class
|
||||||
\param DB Object de base de donn<EFBFBD>es
|
\param DB Object de base de donnees
|
||||||
\param USER Object utilisateur
|
\param USER Object utilisateur
|
||||||
\param classe Nom de la classe utilis<EFBFBD>e pour formater les rapports
|
\param classe Nom de la classe utilisee pour formater les rapports
|
||||||
*/
|
*/
|
||||||
function ComptaExport ($DB, $USER, $classname)
|
function ComptaExport ($DB, $USER, $classname)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -27,7 +27,6 @@
|
|||||||
\remarks Ce fichier doit etre utilise comme un exemple, il est specifique a une utilisation particuliere
|
\remarks Ce fichier doit etre utilise comme un exemple, il est specifique a une utilisation particuliere
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_workbook.inc.php");
|
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_workbook.inc.php");
|
||||||
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_worksheet.inc.php");
|
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_worksheet.inc.php");
|
||||||
|
|
||||||
@ -35,7 +34,6 @@ require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_worksheet.inc.php");
|
|||||||
\class ComptaExportPoivre
|
\class ComptaExportPoivre
|
||||||
\brief Classe permettant les exports comptables au format tableur
|
\brief Classe permettant les exports comptables au format tableur
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class ComptaExportPoivre extends ComptaExport
|
class ComptaExportPoivre extends ComptaExport
|
||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
@ -45,13 +43,13 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
\brief Constructeur de la class
|
\brief Constructeur de la class
|
||||||
\param DB Object de base de donnees
|
\param DB Object de base de donnees
|
||||||
\param USER Object utilisateur
|
\param USER Object utilisateur
|
||||||
*/
|
*/
|
||||||
function ComptaExportPoivre ($DB, $USER)
|
function ComptaExportPoivre ($DB, $USER)
|
||||||
{
|
{
|
||||||
$this->db = $DB;
|
$this->db = $DB;
|
||||||
$this->user = $USER;
|
$this->user = $USER;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Agregation des lignes de facture
|
* Agregation des lignes de facture
|
||||||
*/
|
*/
|
||||||
@ -62,17 +60,17 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
$j = 0;
|
$j = 0;
|
||||||
$n = sizeof($line_in);
|
$n = sizeof($line_in);
|
||||||
|
|
||||||
// On commence par la ligne 0
|
// On commence par la ligne 0
|
||||||
|
|
||||||
$this->line_out[$j] = $line_in[$i];
|
$this->line_out[$j] = $line_in[$i];
|
||||||
|
|
||||||
//print "$j ".$this->line_out[$j][8] . "<br>";
|
//print "$j ".$this->line_out[$j][8] . "<br>";
|
||||||
|
|
||||||
for ( $i = 1 ; $i < $n ; $i++)
|
for ( $i = 1 ; $i < $n ; $i++)
|
||||||
{
|
{
|
||||||
// On agrege les lignes avec le meme code comptable
|
// On agrege les lignes avec le meme code comptable
|
||||||
|
|
||||||
if ( ($line_in[$i][1] == $line_in[$i-1][1]) && ($line_in[$i][4] == $line_in[$i-1][4]) )
|
if ( ($line_in[$i][1] == $line_in[$i-1][1]) && ($line_in[$i][4] == $line_in[$i-1][4]) )
|
||||||
{
|
{
|
||||||
$this->line_out[$j][8] = ($this->line_out[$j][8] + $line_in[$i][8]);
|
$this->line_out[$j][8] = ($this->line_out[$j][8] + $line_in[$i][8]);
|
||||||
@ -81,35 +79,35 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
{
|
{
|
||||||
$j++;
|
$j++;
|
||||||
$this->line_out[$j] = $line_in[$i];
|
$this->line_out[$j] = $line_in[$i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dol_syslog("ComptaExportPoivre::Agregate " . sizeof($this->line_out) . " lignes en sorties");
|
dol_syslog("ComptaExportPoivre::Agregate " . sizeof($this->line_out) . " lignes en sorties");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function Export($dir, $linec, $linep, $id=0)
|
function Export($dir, $linec, $linep, $id=0)
|
||||||
{
|
{
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
dol_syslog("ComptaExportPoivre::Export");
|
dol_syslog("ComptaExportPoivre::Export");
|
||||||
dol_syslog("ComptaExportPoivre::Export " . sizeof($linec) . " lignes en entrees");
|
dol_syslog("ComptaExportPoivre::Export " . sizeof($linec) . " lignes en entrees");
|
||||||
|
|
||||||
$this->Agregate($linec);
|
$this->Agregate($linec);
|
||||||
|
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
|
|
||||||
if ($id == 0)
|
if ($id == 0)
|
||||||
{
|
{
|
||||||
$dt = strftime('EC%y%m', time());
|
$dt = strftime('EC%y%m', time());
|
||||||
|
|
||||||
$sql = "SELECT count(ref) FROM ".MAIN_DB_PREFIX."export_compta";
|
$sql = "SELECT count(ref) FROM ".MAIN_DB_PREFIX."export_compta";
|
||||||
$sql .= " WHERE ref like '$dt%'";
|
$sql .= " WHERE ref like '$dt%'";
|
||||||
|
|
||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
$row = $this->db->fetch_row();
|
$row = $this->db->fetch_row();
|
||||||
@ -120,15 +118,15 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$error++;
|
$error++;
|
||||||
dol_syslog("ComptaExportPoivre::Export Erreur Select");
|
dol_syslog("ComptaExportPoivre::Export Erreur Select");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$this->ref = $dt . substr("000".$cc, -2);
|
$this->ref = $dt . substr("000".$cc, -2);
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."export_compta (ref, date_export, fk_user)";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."export_compta (ref, date_export, fk_user)";
|
||||||
$sql .= " VALUES ('".$this->ref."', ".$this->db->idate(mktime()).",".$this->user->id.")";
|
$sql .= " VALUES ('".$this->ref."', ".$this->db->idate(mktime()).",".$this->user->id.")";
|
||||||
|
|
||||||
if ($this->db->query($sql))
|
if ($this->db->query($sql))
|
||||||
{
|
{
|
||||||
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."export_compta");
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX."export_compta");
|
||||||
@ -143,12 +141,12 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->id = $id;
|
$this->id = $id;
|
||||||
|
|
||||||
$sql = "SELECT ref FROM ".MAIN_DB_PREFIX."export_compta";
|
$sql = "SELECT ref FROM ".MAIN_DB_PREFIX."export_compta";
|
||||||
$sql .= " WHERE rowid = ".$this->id;
|
$sql .= " WHERE rowid = ".$this->id;
|
||||||
|
|
||||||
$resql = $this->db->query($sql);
|
$resql = $this->db->query($sql);
|
||||||
|
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$row = $this->db->fetch_row($resql);
|
$row = $this->db->fetch_row($resql);
|
||||||
@ -160,18 +158,18 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
dol_syslog("ComptaExportPoivre::Export Erreur Select");
|
dol_syslog("ComptaExportPoivre::Export Erreur Select");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
dol_syslog("ComptaExportPoivre::Export ref : ".$this->ref);
|
dol_syslog("ComptaExportPoivre::Export ref : ".$this->ref);
|
||||||
|
|
||||||
$fxname = $dir . "/".$this->ref.".xls";
|
$fxname = $dir . "/".$this->ref.".xls";
|
||||||
|
|
||||||
$workbook = new writeexcel_workbook($fxname);
|
$workbook = new writeexcel_workbook($fxname);
|
||||||
|
|
||||||
$page = &$workbook->addworksheet('Export');
|
$page = &$workbook->addworksheet('Export');
|
||||||
|
|
||||||
$page->set_column(0,0,8); // A
|
$page->set_column(0,0,8); // A
|
||||||
$page->set_column(1,1,6); // B
|
$page->set_column(1,1,6); // B
|
||||||
$page->set_column(2,2,9); // C
|
$page->set_column(2,2,9); // C
|
||||||
@ -180,9 +178,9 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$page->set_column(5,5,9); // F Numero de piece
|
$page->set_column(5,5,9); // F Numero de piece
|
||||||
$page->set_column(6,6,8); // G
|
$page->set_column(6,6,8); // G
|
||||||
|
|
||||||
|
|
||||||
// Pour les factures
|
// Pour les factures
|
||||||
|
|
||||||
// A 0 Date Operation 040604 pour 4 juin 2004
|
// A 0 Date Operation 040604 pour 4 juin 2004
|
||||||
// B 1 VE -> ventilation
|
// B 1 VE -> ventilation
|
||||||
// C 2 code Compte general
|
// C 2 code Compte general
|
||||||
@ -193,15 +191,15 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
// H 8 Type operation D pour Debit ou C pour Credit
|
// H 8 Type operation D pour Debit ou C pour Credit
|
||||||
// I Date d'echeance, = a la date d'operation si pas d'echeance
|
// I Date d'echeance, = a la date d'operation si pas d'echeance
|
||||||
// J EUR pour Monnaie en Euros
|
// J EUR pour Monnaie en Euros
|
||||||
|
|
||||||
// Pour les paiements
|
// Pour les paiements
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
$j = 0;
|
$j = 0;
|
||||||
$n = sizeof($this->line_out);
|
$n = sizeof($this->line_out);
|
||||||
|
|
||||||
$oldfacture = 0;
|
$oldfacture = 0;
|
||||||
|
|
||||||
for ( $i = 0 ; $i < $n ; $i++)
|
for ( $i = 0 ; $i < $n ; $i++)
|
||||||
{
|
{
|
||||||
if ( $oldfacture <> $this->line_out[$i][1])
|
if ( $oldfacture <> $this->line_out[$i][1])
|
||||||
@ -216,20 +214,20 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$page->write($j, 6, price2num($this->line_out[$i][7]));
|
$page->write($j, 6, price2num($this->line_out[$i][7]));
|
||||||
$page->write_string($j, 7, 'D' ); // D pour debit
|
$page->write_string($j, 7, 'D' ); // D pour debit
|
||||||
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
||||||
|
|
||||||
$j++;
|
$j++;
|
||||||
|
|
||||||
// Ligne TVA
|
// Ligne TVA
|
||||||
$page->write_string($j, 0, strftime("%d%m%y",$this->line_out[$i][0]));
|
$page->write_string($j, 0, strftime("%d%m%y",$this->line_out[$i][0]));
|
||||||
$page->write_string($j, 1, "VI");
|
$page->write_string($j, 1, "VI");
|
||||||
$page->write_string($j, 2, '4457119');
|
$page->write_string($j, 2, '4457119');
|
||||||
|
|
||||||
$page->write_string($j, 4, stripslashes($this->line_out[$i][3])." Facture");
|
$page->write_string($j, 4, stripslashes($this->line_out[$i][3])." Facture");
|
||||||
$page->write_string($j, 5, $this->line_out[$i][5]); // Numero de facture
|
$page->write_string($j, 5, $this->line_out[$i][5]); // Numero de facture
|
||||||
$page->write($j, 6, price2num($this->line_out[$i][6])); // Montant de TVA
|
$page->write($j, 6, price2num($this->line_out[$i][6])); // Montant de TVA
|
||||||
$page->write_string($j, 7, 'C'); // C pour credit
|
$page->write_string($j, 7, 'C'); // C pour credit
|
||||||
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
||||||
|
|
||||||
$oldfacture = $this->line_out[$i][1];
|
$oldfacture = $this->line_out[$i][1];
|
||||||
$j++;
|
$j++;
|
||||||
}
|
}
|
||||||
@ -242,10 +240,10 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$page->write($j, 6, price2num(round($this->line_out[$i][8], 2)));
|
$page->write($j, 6, price2num(round($this->line_out[$i][8], 2)));
|
||||||
$page->write_string($j, 7, 'C'); // C pour credit
|
$page->write_string($j, 7, 'C'); // C pour credit
|
||||||
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
$page->write_string($j, 8, strftime("%d%m%y",$this->line_out[$i][0]));
|
||||||
|
|
||||||
$j++;
|
$j++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tag des lignes de factures
|
// Tag des lignes de factures
|
||||||
$n = sizeof($linec);
|
$n = sizeof($linec);
|
||||||
for ( $i = 0 ; $i < $n ; $i++)
|
for ( $i = 0 ; $i < $n ; $i++)
|
||||||
@ -253,15 +251,15 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."facturedet";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."facturedet";
|
||||||
$sql .= " SET fk_export_compta=".$this->id;
|
$sql .= " SET fk_export_compta=".$this->id;
|
||||||
$sql .= " WHERE rowid = ".$linec[$i][10];
|
$sql .= " WHERE rowid = ".$linec[$i][10];
|
||||||
|
|
||||||
if (!$this->db->query($sql))
|
if (!$this->db->query($sql))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pour les paiements
|
// Pour les paiements
|
||||||
|
|
||||||
// A Date Operation 040604 pour 4 juin 2004
|
// A Date Operation 040604 pour 4 juin 2004
|
||||||
// B CE -> caisse d'epargne
|
// B CE -> caisse d'epargne
|
||||||
// C code Compte general
|
// C code Compte general
|
||||||
@ -272,13 +270,13 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
// H Type operation D pour Debit ou C pour Credit
|
// H Type operation D pour Debit ou C pour Credit
|
||||||
// I Date d'echeance, = a la date d'operation si pas d'echeance
|
// I Date d'echeance, = a la date d'operation si pas d'echeance
|
||||||
// J EUR pour Monnaie en Euros
|
// J EUR pour Monnaie en Euros
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
//$j = 0;
|
//$j = 0;
|
||||||
$n = sizeof($linep);
|
$n = sizeof($linep);
|
||||||
|
|
||||||
$oldfacture = 0;
|
$oldfacture = 0;
|
||||||
|
|
||||||
for ( $i = 0 ; $i < $n ; $i++)
|
for ( $i = 0 ; $i < $n ; $i++)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -295,36 +293,36 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
{
|
{
|
||||||
$debit = "C";
|
$debit = "C";
|
||||||
$credit = "D";
|
$credit = "D";
|
||||||
|
|
||||||
if ($linep[$i][6] == 'Prelevement')
|
if ($linep[$i][6] == 'Prelevement')
|
||||||
{
|
{
|
||||||
$linep[$i][6] = 'Rejet Prelevement';
|
$linep[$i][6] = 'Rejet Prelevement';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$page->write_string($j,0, strftime("%d%m%y",$linep[$i][0]));
|
$page->write_string($j,0, strftime("%d%m%y",$linep[$i][0]));
|
||||||
$page->write_string($j,1, 'CE');
|
$page->write_string($j,1, 'CE');
|
||||||
|
|
||||||
$page->write_string($j,2, '5122000');
|
$page->write_string($j,2, '5122000');
|
||||||
|
|
||||||
if ($linep[$i][6] == 'Prelevement')
|
if ($linep[$i][6] == 'Prelevement')
|
||||||
{
|
{
|
||||||
$linep[$i][6] = 'Prelevement';
|
$linep[$i][6] = 'Prelevement';
|
||||||
}
|
}
|
||||||
|
|
||||||
$page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); //
|
$page->write_string($j,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); //
|
||||||
$page->write_string($j,5, $linep[$i][7]); // Numero de facture
|
$page->write_string($j,5, $linep[$i][7]); // Numero de facture
|
||||||
|
|
||||||
$page->write($j,6, price2num(round(abs($linep[$i][5]), 2))); // Montant de la ligne
|
$page->write($j,6, price2num(round(abs($linep[$i][5]), 2))); // Montant de la ligne
|
||||||
$page->write_string($j,7,$debit);
|
$page->write_string($j,7,$debit);
|
||||||
$page->write_string($j,8, strftime("%d%m%y",$linep[$i][0]));
|
$page->write_string($j,8, strftime("%d%m%y",$linep[$i][0]));
|
||||||
|
|
||||||
|
|
||||||
$j++;
|
$j++;
|
||||||
|
|
||||||
$page->write_string($j,0, strftime("%d%m%y",$linep[$i][0]));
|
$page->write_string($j,0, strftime("%d%m%y",$linep[$i][0]));
|
||||||
$page->write_string($j,1, 'CE');
|
$page->write_string($j,1, 'CE');
|
||||||
|
|
||||||
$page->write_string($j,2, '41100000');
|
$page->write_string($j,2, '41100000');
|
||||||
$page->write_string($j,3, $linep[$i][2]);
|
$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,4, stripslashes($linep[$i][3])." ".stripslashes($linep[$i][6])); //
|
||||||
@ -332,29 +330,29 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$page->write($j,6, price2num(round(abs($linep[$i][5]), 2))); // Montant de la ligne
|
$page->write($j,6, price2num(round(abs($linep[$i][5]), 2))); // Montant de la ligne
|
||||||
$page->write_string($j,7, $credit);
|
$page->write_string($j,7, $credit);
|
||||||
$page->write_string($j,8, strftime("%d%m%y",$linep[$i][0]));
|
$page->write_string($j,8, strftime("%d%m%y",$linep[$i][0]));
|
||||||
|
|
||||||
$j++;
|
$j++;
|
||||||
|
|
||||||
}
|
}
|
||||||
$workbook->close();
|
$workbook->close();
|
||||||
|
|
||||||
// Tag des lignes de factures
|
// Tag des lignes de factures
|
||||||
$n = sizeof($linep);
|
$n = sizeof($linep);
|
||||||
for ( $i = 0 ; $i < $n ; $i++)
|
for ( $i = 0 ; $i < $n ; $i++)
|
||||||
|
|
||||||
{
|
{
|
||||||
$sql = "UPDATE ".MAIN_DB_PREFIX."paiement";
|
$sql = "UPDATE ".MAIN_DB_PREFIX."paiement";
|
||||||
$sql .= " SET fk_export_compta=".$this->id;
|
$sql .= " SET fk_export_compta=".$this->id;
|
||||||
$sql .= " WHERE rowid = ".$linep[$i][1];
|
$sql .= " WHERE rowid = ".$linep[$i][1];
|
||||||
|
|
||||||
if (!$this->db->query($sql))
|
if (!$this->db->query($sql))
|
||||||
{
|
{
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$error)
|
if (!$error)
|
||||||
{
|
{
|
||||||
$this->db->commit();
|
$this->db->commit();
|
||||||
@ -365,7 +363,7 @@ class ComptaExportPoivre extends ComptaExport
|
|||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
dol_syslog("ComptaExportPoivre::Export ROLLBACK");
|
dol_syslog("ComptaExportPoivre::Export ROLLBACK");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,32 +14,39 @@
|
|||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
|
||||||
* $Id$
|
|
||||||
* $Source$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
\file htdocs/compta/export/modules/compta.export.safran.class.php
|
||||||
|
\ingroup compta
|
||||||
|
\brief Modele d'export compta safran, export au format tableur
|
||||||
|
\remarks Ce fichier doit etre utilise comme un exemple, il est specifique a une utilisation particuliere
|
||||||
|
\version $Revision$
|
||||||
|
*/
|
||||||
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_workbook.inc.php");
|
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_workbook.inc.php");
|
||||||
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_worksheet.inc.php");
|
require_once(PHP_WRITEEXCEL_PATH."/class.writeexcel_worksheet.inc.php");
|
||||||
|
|
||||||
|
/**
|
||||||
|
\class ComptaExportTableur
|
||||||
|
\brief Classe permettant les exports comptables au format tableur
|
||||||
|
*/
|
||||||
class ComptaExportTableur extends ComptaExport
|
class ComptaExportTableur extends ComptaExport
|
||||||
{
|
{
|
||||||
|
|
||||||
function ComptaExportTableur ()
|
function ComptaExportTableur ()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function Create()
|
function Create()
|
||||||
{
|
{
|
||||||
|
|
||||||
$this->date = time();
|
$this->date = time();
|
||||||
|
|
||||||
$this->datef = "commande-".strftime("%d%b%y-%HH%M", $this->date);
|
$this->datef = "commande-".strftime("%d%b%y-%HH%M", $this->date);
|
||||||
|
|
||||||
$fname = DOL_DATA_ROOT ."/telephonie/ligne/commande/".$this->datef.".xls";
|
$fname = DOL_DATA_ROOT ."/telephonie/ligne/commande/".$this->datef.".xls";
|
||||||
|
|
||||||
if (strlen(trim($this->fournisseur->email_commande)) == 0)
|
if (strlen(trim($this->fournisseur->email_commande)) == 0)
|
||||||
{
|
{
|
||||||
return -3;
|
return -3;
|
||||||
@ -54,11 +61,11 @@ class ComptaExportTableur extends ComptaExport
|
|||||||
$res = $this->CreateFile($fname);
|
$res = $this->CreateFile($fname);
|
||||||
$res = $res + $this->LogSql();
|
$res = $res + $this->LogSql();
|
||||||
$res = $res + $this->MailFile($fname);
|
$res = $res + $this->MailFile($fname);
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function Export($dir, $linec)
|
function Export($dir, $linec)
|
||||||
{
|
{
|
||||||
//$fname = $dir . "/tmp/toto.xls"; DEBUG DEBUG
|
//$fname = $dir . "/tmp/toto.xls"; DEBUG DEBUG
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/compta/prelevementclass//rejet-prelevement.class.php
|
\file htdocs/compta/prelevement/class/rejet-prelevement.class.php
|
||||||
\ingroup prelevement
|
\ingroup prelevement
|
||||||
\brief File of class to manage standing orders rejects
|
\brief File of class to manage standing orders rejects
|
||||||
\version $Revision$
|
\version $Revision$
|
||||||
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class Prelevement
|
\class RejetPrelevement
|
||||||
\brief Class to manage standing orders rejects
|
\brief Class to manage standing orders rejects
|
||||||
*/
|
*/
|
||||||
class RejetPrelevement
|
class RejetPrelevement
|
||||||
|
|||||||
@ -23,6 +23,11 @@
|
|||||||
* \brief Fichier des classes expedition
|
* \brief Fichier des classes expedition
|
||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \class ExpeditionStats
|
||||||
|
* \brief Class to manage shipment statistics
|
||||||
|
*/
|
||||||
class ExpeditionStats
|
class ExpeditionStats
|
||||||
{
|
{
|
||||||
var $db;
|
var $db;
|
||||||
|
|||||||
@ -20,18 +20,17 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/livraison/mod_livraison_saphir.php
|
* \file htdocs/includes/modules/livraison/mod_livraison_saphir.php
|
||||||
\ingroup expedition
|
* \ingroup expedition
|
||||||
\brief Fichier contenant la classe du modele de numerotation de reference de livraison Saphir
|
* \brief Fichier contenant la classe du modele de numerotation de reference de livraison Saphir
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/livraison/modules_livraison.php");
|
require_once(DOL_DOCUMENT_ROOT ."/includes/modules/livraison/modules_livraison.php");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class mod_livraison_saphir
|
* \class mod_livraison_saphir
|
||||||
\brief Classe du mod<EFBFBD>le de num<EFBFBD>rotation de r<EFBFBD>f<EFBFBD>rence de livraison Saphir
|
* \brief Classe du modele de numerotation de reference de livraison Saphir
|
||||||
*/
|
*/
|
||||||
class mod_livraison_saphir extends ModeleNumRefDeliveryOrder
|
class mod_livraison_saphir extends ModeleNumRefDeliveryOrder
|
||||||
{
|
{
|
||||||
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
var $version='dolibarr'; // 'development', 'experimental', 'dolibarr'
|
||||||
|
|||||||
@ -19,24 +19,22 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/modules/mailings/pomme.modules.php
|
* \file htdocs/includes/modules/mailings/pomme.modules.php
|
||||||
\ingroup mailing
|
* \ingroup mailing
|
||||||
\brief Fichier de la classe permettant de g<EFBFBD>n<EFBFBD>rer la liste de destinataires Pomme
|
* \brief File of class to offer a selector of emailing targets with Rule 'Pomme'.
|
||||||
\version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once DOL_DOCUMENT_ROOT.'/includes/modules/mailings/modules_mailings.php';
|
include_once DOL_DOCUMENT_ROOT.'/includes/modules/mailings/modules_mailings.php';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\class mailing_pomme
|
* \class mailing_pomme
|
||||||
\brief Classe permettant de g<EFBFBD>n<EFBFBD>rer la liste des destinataires Pomme
|
* \brief Class to offer a selector of emailing targets with Rule 'Peche'.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class mailing_pomme extends MailingTargets
|
class mailing_pomme extends MailingTargets
|
||||||
{
|
{
|
||||||
var $name='DolibarrUsers'; // Identifiant du module mailing
|
var $name='DolibarrUsers'; // Identifiant du module mailing
|
||||||
var $desc='Utilisateurs de Dolibarr avec emails'; // Libell<6C> utilis<69> si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv<75>e
|
var $desc='Dolibarr users with emails'; // Libelle utilise si aucune traduction pour MailingModuleDescXXX ou XXX=name trouv<75>e
|
||||||
var $require_module=array(); // Module mailing actif si modules require_module actifs
|
var $require_module=array(); // Module mailing actif si modules require_module actifs
|
||||||
var $require_admin=1; // Module mailing actif pour user admin ou non
|
var $require_admin=1; // Module mailing actif pour user admin ou non
|
||||||
var $picto='user';
|
var $picto='user';
|
||||||
|
|||||||
@ -28,7 +28,7 @@ require_once(DOL_DOCUMENT_ROOT ."/includes/modules/security/generate/modules_gen
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class modGeneratePassNone
|
* \class modGeneratePassStandard
|
||||||
* \brief Class to generate a password according to a dolibarr standard rule (8 random chars)
|
* \brief Class to generate a password according to a dolibarr standard rule (8 random chars)
|
||||||
*/
|
*/
|
||||||
class modGeneratePassStandard extends ModeleGenPassword
|
class modGeneratePassStandard extends ModeleGenPassword
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user