2
0
forked from Wavyzz/dolibarr

Fix: Export for bank module always export credit and devit instead of debit or credit

This commit is contained in:
Laurent Destailleur
2008-03-30 15:49:25 +00:00
parent f4ecf33e20
commit dee6b61523
5 changed files with 79 additions and 54 deletions

View File

@@ -104,18 +104,26 @@ class ExportExcel extends ModeleExports
}
/**
* \brief Open output file
* \param file Path of filename
* \return int <0 if KO, >=0 if OK
*/
function open_file($file)
{
global $langs;
dolibarr_syslog("ExportExcel::open_file file=".$file);
$ret=1;
$langs->load("exports");
dolibarr_syslog("ExportExcel::open_file file=$file");
$this->workbook = &new writeexcel_workbookbig($file);
$this->workbook->set_sheetname($langs->trans("Sheet"));
$this->worksheet = &$this->workbook->addworksheet();
// $this->worksheet->set_column(0, 50, 18);
return 0;
return $ret;
}