diff --git a/htdocs/accountancy/journal/expensereportsjournal.php b/htdocs/accountancy/journal/expensereportsjournal.php index 1eac3aa504cebb506f58ea16331f78c27ecb3789..ce1c632e85b6314b0ebb797a83e8b884085fc76a 100644 --- a/htdocs/accountancy/journal/expensereportsjournal.php +++ b/htdocs/accountancy/journal/expensereportsjournal.php @@ -187,11 +187,11 @@ if ($action == 'writebookkeeping') { // Fees foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { // get compte id and label $accountingaccount = new AccountingAccount($db); - if ($accountingaccount->fetch(null, $k)) { + if ($accountingaccount->fetch(null, $k, true)) { $bookkeeping = new BookKeeping($db); $bookkeeping->doc_date = $val["date"]; $bookkeeping->doc_ref = $val["ref"]; @@ -355,7 +355,7 @@ if ($action == 'export_csv') { // Fees foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print '"' . $date . '"' . $sep; print '"' . $val["ref"] . '"' . $sep; @@ -464,7 +464,7 @@ if (empty($action) || $action == 'view') { // Fees foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print "<tr " . $bc[$var] . " >"; diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index 91436669ba828b9d79447cbe9a3415c432028c9a..9790d124d561e4a94a6778ebf60f7fc7b7732232 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -219,11 +219,11 @@ if ($action == 'writebookkeeping') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { // get compte id and label $accountingaccount = new AccountingAccount($db); - if ($accountingaccount->fetch(null, $k)) { + if ($accountingaccount->fetch(null, $k, true)) { $bookkeeping = new BookKeeping($db); $bookkeeping->doc_date = $val["date"]; $bookkeeping->doc_ref = $val["ref"]; @@ -398,7 +398,7 @@ if ($action == 'export_csv') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print '"' . $date . '"' . $sep; print '"' . $val["ref"] . '"' . $sep; @@ -518,7 +518,7 @@ if (empty($action) || $action == 'view') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print "<tr " . $bc[$var] . " >"; diff --git a/htdocs/accountancy/journal/sellsjournal.php b/htdocs/accountancy/journal/sellsjournal.php index f73af79ff8914266b26899d12ffd7618f5c38b7d..fc3a511d670ec3ca9fa36223273f676eb6ac5f3d 100644 --- a/htdocs/accountancy/journal/sellsjournal.php +++ b/htdocs/accountancy/journal/sellsjournal.php @@ -243,7 +243,7 @@ if ($action == 'writebookkeeping') { if ($mt) { // get compte id and label $accountingaccount = new AccountingAccount($db); - if ($accountingaccount->fetch(null, $k)) { + if ($accountingaccount->fetch(null, $k, true)) { $bookkeeping = new BookKeeping($db); $bookkeeping->doc_date = $val["date"]; $bookkeeping->doc_ref = $val["ref"]; @@ -375,7 +375,7 @@ if ($action == 'export_csv') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount_static = new AccountingAccount($db); - if ($accountingaccount_static->fetch(null, $k)) { + if ($accountingaccount_static->fetch(null, $k, true)) { print $date . $sep; print $sell_journal . $sep; print length_accountg(html_entity_decode($k)) . $sep; @@ -429,7 +429,7 @@ if ($action == 'export_csv') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print '"' . $date . '"' . $sep; @@ -559,7 +559,7 @@ if (empty($action) || $action == 'view') { // Product / Service foreach ( $tabht[$key] as $k => $mt ) { $accountingaccount = new AccountingAccount($db); - $accountingaccount->fetch(null, $k); + $accountingaccount->fetch(null, $k, true); if ($mt) { print "<tr " . $bc[$var] . ">";