Fix: Doxygen
This commit is contained in:
parent
229cbc2342
commit
df70450073
@ -115,7 +115,7 @@ if ($resql) {
|
|||||||
|
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
// Ref produit
|
// Ref produit
|
||||||
$product_static->ref = $objp->p . ref;
|
$product_static->ref = $objp->ref;
|
||||||
$product_static->id = $objp->rowid;
|
$product_static->id = $objp->rowid;
|
||||||
$product_static->type = $objp->type;
|
$product_static->type = $objp->type;
|
||||||
print '<td>';
|
print '<td>';
|
||||||
|
|||||||
@ -24,10 +24,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class AccountancySystem
|
* Class to manage accountancy systems
|
||||||
* \brief Classe to manage accountancy systems
|
|
||||||
*/
|
*/
|
||||||
class AccountancySystem {
|
class AccountancySystem
|
||||||
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $error;
|
var $error;
|
||||||
var $rowid;
|
var $rowid;
|
||||||
|
|||||||
@ -24,10 +24,10 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class AccountingAccount
|
* Classe permettant la gestion des comptes generaux de compta
|
||||||
* \brief Classe permettant la gestion des comptes generaux de compta
|
|
||||||
*/
|
*/
|
||||||
class AccountingAccount {
|
class AccountingAccount
|
||||||
|
{
|
||||||
var $db;
|
var $db;
|
||||||
var $id;
|
var $id;
|
||||||
var $rowid;
|
var $rowid;
|
||||||
|
|||||||
@ -215,10 +215,13 @@ class BookKeeping
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Insert line into bookkeeping
|
* Insert line into bookkeeping
|
||||||
* \param user User who inserted operation
|
*
|
||||||
|
* @param User $user User who inserted operation
|
||||||
|
* @return $result Result
|
||||||
*/
|
*/
|
||||||
function create() {
|
function create($user='')
|
||||||
|
{
|
||||||
global $conf, $user, $langs;
|
global $conf, $user, $langs;
|
||||||
|
|
||||||
$this->piece_num = 0;
|
$this->piece_num = 0;
|
||||||
@ -310,7 +313,10 @@ class BookKeeping
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Delete bookkepping by importkey
|
* Delete bookkepping by importkey
|
||||||
|
*
|
||||||
|
* @param string $importkey Import key
|
||||||
|
* @return int Result
|
||||||
*/
|
*/
|
||||||
function delete_by_importkey($importkey) {
|
function delete_by_importkey($importkey) {
|
||||||
$this->db->begin();
|
$this->db->begin();
|
||||||
@ -626,7 +632,10 @@ class BookKeeping
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Delete bookkepping by importkey
|
* Delete bookkepping by importkey
|
||||||
|
*
|
||||||
|
* @param string $model Model
|
||||||
|
* @return int Result
|
||||||
*/
|
*/
|
||||||
function export_bookkeping($model = 'ebp')
|
function export_bookkeping($model = 'ebp')
|
||||||
{
|
{
|
||||||
@ -679,6 +688,9 @@ class BookKeeping
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class BookKeepingLine
|
||||||
|
*/
|
||||||
class BookKeepingLine
|
class BookKeepingLine
|
||||||
{
|
{
|
||||||
var $id;
|
var $id;
|
||||||
|
|||||||
@ -48,7 +48,7 @@ class FormVentilation extends Form
|
|||||||
* @param string $selectedkey Value
|
* @param string $selectedkey Value
|
||||||
* @return string HTML edit field
|
* @return string HTML edit field
|
||||||
*/
|
*/
|
||||||
function select_bookkeeping_importkey($htmlname = 'importkey', $selectedkey)
|
function select_bookkeeping_importkey($htmlname = 'importkey', $selectedkey='')
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
|||||||
@ -266,10 +266,10 @@ if ($action == 'writeBookKeeping') {
|
|||||||
$bookkeeping->code_tiers = $tabcompany[$key]['code_client'];
|
$bookkeeping->code_tiers = $tabcompany[$key]['code_client'];
|
||||||
$bookkeeping->numero_compte = $k;
|
$bookkeeping->numero_compte = $k;
|
||||||
$bookkeeping->label_compte = $compte->intitule;
|
$bookkeeping->label_compte = $compte->intitule;
|
||||||
$bookkeeping->montant = ($mt < 0 ? price - ($mt) : $mt);
|
$bookkeeping->montant = ($mt < 0 ? - $mt : $mt);
|
||||||
$bookkeeping->sens = ($mt >= 0) ? 'D' : 'C';
|
$bookkeeping->sens = ($mt >= 0) ? 'D' : 'C';
|
||||||
$bookkeeping->debit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt >= 0 ? $mt : 0);
|
||||||
$bookkeeping->credit = ($mt < 0 ? price - ($mt) : 0);
|
$bookkeeping->credit = ($mt < 0 ? - $mt : 0);
|
||||||
$bookkeeping->code_journal = $conf->global->ACCOUNTING_BANK_JOURNAL;
|
$bookkeeping->code_journal = $conf->global->ACCOUNTING_BANK_JOURNAL;
|
||||||
|
|
||||||
if ($tabtype[$key] == 'payment') {
|
if ($tabtype[$key] == 'payment') {
|
||||||
@ -316,9 +316,9 @@ if ($action == 'writeBookKeeping') {
|
|||||||
$bookkeeping->fk_doc = $key;
|
$bookkeeping->fk_doc = $key;
|
||||||
$bookkeeping->fk_docdet = $val["fk_bank"];
|
$bookkeeping->fk_docdet = $val["fk_bank"];
|
||||||
$bookkeeping->label_compte = $tabcompany[$key]['name'];
|
$bookkeeping->label_compte = $tabcompany[$key]['name'];
|
||||||
$bookkeeping->montant = ($mt < 0 ? price - ($mt) : $mt);
|
$bookkeeping->montant = ($mt < 0 ? - $mt : $mt);
|
||||||
$bookkeeping->sens = ($mt < 0) ? 'D' : 'C';
|
$bookkeeping->sens = ($mt < 0) ? 'D' : 'C';
|
||||||
$bookkeeping->debit = ($mt < 0 ? price - ($mt) : 0);
|
$bookkeeping->debit = ($mt < 0 ? - $mt : 0);
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
||||||
$bookkeeping->code_journal = $conf->global->ACCOUNTING_BANK_JOURNAL;
|
$bookkeeping->code_journal = $conf->global->ACCOUNTING_BANK_JOURNAL;
|
||||||
|
|
||||||
|
|||||||
@ -254,10 +254,10 @@ if ($action == 'writeBookKeeping') {
|
|||||||
$bookkeeping->code_tiers = $tabcompany[$key]['code_client'];
|
$bookkeeping->code_tiers = $tabcompany[$key]['code_client'];
|
||||||
$bookkeeping->numero_compte = $k;
|
$bookkeeping->numero_compte = $k;
|
||||||
$bookkeeping->label_compte = $compte->intitule;
|
$bookkeeping->label_compte = $compte->intitule;
|
||||||
$bookkeeping->montant = ($mt < 0 ? price - ($mt) : $mt);
|
$bookkeeping->montant = ($mt < 0 ? - $mt : $mt);
|
||||||
$bookkeeping->sens = ($mt >= 0) ? 'D' : 'C';
|
$bookkeeping->sens = ($mt >= 0) ? 'D' : 'C';
|
||||||
$bookkeeping->debit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->debit = ($mt >= 0 ? $mt : 0);
|
||||||
$bookkeeping->credit = ($mt < 0 ? price - ($mt) : 0);
|
$bookkeeping->credit = ($mt < 0 ? - $mt : 0);
|
||||||
$bookkeeping->code_journal = $conf->global->ACCOUNTING_CASH_JOURNAL;
|
$bookkeeping->code_journal = $conf->global->ACCOUNTING_CASH_JOURNAL;
|
||||||
|
|
||||||
if ($tabtype[$key] == 'payment') {
|
if ($tabtype[$key] == 'payment') {
|
||||||
@ -304,10 +304,10 @@ if ($action == 'writeBookKeeping') {
|
|||||||
$bookkeeping->fk_doc = $key;
|
$bookkeeping->fk_doc = $key;
|
||||||
$bookkeeping->fk_docdet = $val["fk_bank"];
|
$bookkeeping->fk_docdet = $val["fk_bank"];
|
||||||
$bookkeeping->label_compte = $tabcompany[$key]['name'];
|
$bookkeeping->label_compte = $tabcompany[$key]['name'];
|
||||||
$bookkeeping->montant = ($mt < 0 ? price - ($mt) : $mt);
|
$bookkeeping->montant = ($mt < 0 ? - $mt : $mt);
|
||||||
$bookkeeping->sens = ($mt < 0) ? 'D' : 'C';
|
$bookkeeping->sens = ($mt < 0) ? 'D' : 'C';
|
||||||
$bookkeeping->debit = ($mt < 0 ? price - ($mt) : 0);
|
$bookkeeping->debit = ($mt < 0 ? - $mt : 0);
|
||||||
$bookkeeping->credit = ($mt >= 0) ? $mt : 0;
|
$bookkeeping->credit = ($mt >= 0 ? $mt : 0);
|
||||||
$bookkeeping->code_journal = $conf->global->ACCOUNTING_CASH_JOURNAL;
|
$bookkeeping->code_journal = $conf->global->ACCOUNTING_CASH_JOURNAL;
|
||||||
|
|
||||||
if ($tabtype[$key] == 'sc') {
|
if ($tabtype[$key] == 'sc') {
|
||||||
|
|||||||
@ -105,9 +105,8 @@ $period = $form->select_date($date_start, 'date_start', 0, 0, 0, '', 1, 0, 1) .
|
|||||||
$description = $langs->trans("DescThirdPartyReport");
|
$description = $langs->trans("DescThirdPartyReport");
|
||||||
$builddate = time();
|
$builddate = time();
|
||||||
|
|
||||||
report_header($nom, $nomlink, $period, $periodlink, $description, $builddate, $exportlink, array (
|
$moreparam=array('action' => '');
|
||||||
'action' => ''
|
report_header($nom, $nomlink, $period, $periodlink, $description, $builddate, $exportlink, $moreparam);
|
||||||
));
|
|
||||||
|
|
||||||
print '<input type="button" class="button" style="float: right;" value="Export CSV" onclick="launch_export();" />';
|
print '<input type="button" class="button" style="float: right;" value="Export CSV" onclick="launch_export();" />';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user