[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 43/323: Rewriting Change class Own by Noalyss
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 43/323: Rewriting Change class Own by Noalyss_Parameter_Folder |
Date: |
Wed, 14 Mar 2018 17:38:15 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 9090302a33e0d146b038cbba5fca3175b63f0348
Author: Dany De Bontridder <address@hidden>
Date: Wed Jan 10 10:54:04 2018 +0100
Rewriting Change class Own by Noalyss_Parameter_Folder
---
dev/misc-testing/pdf/pdf-page-break.php | 2 +-
html/ajax.php | 4 ++--
html/ajax_misc.php | 2 +-
html/ajax_test.php | 2 +-
html/do.php | 2 +-
html/fid.php | 2 +-
html/test.php | 2 +-
include/ajax/ajax_fiche_def_detail.php | 7 ++++---
include/ajax/ajax_ledger.php | 6 +++---
include/cfgfiche.inc.php | 2 +-
include/class/acc_ledger_sold.class.php | 2 +-
include/class/document.class.php | 2 +-
include/class/fiche_def.class.php | 4 ++--
.../class/{own.class.php => noalyss_parameter_folder.class.php} | 2 +-
include/class/print_ledger.class.php | 4 ++--
include/company.inc.php | 6 +++---
include/export/export_gl_csv.php | 2 +-
include/export/export_gl_pdf.php | 2 +-
include/export/export_ledger_csv.php | 4 ++--
include/export/export_ledger_pdf.php | 4 ++--
include/header_print.php | 4 ++--
include/impress_jrn.inc.php | 2 +-
include/lib/pdf.class.php | 4 ++--
include/template/ledger_detail_ach.php | 4 ++--
include/template/ledger_detail_bottom.php | 2 +-
include/template/ledger_detail_fin.php | 4 ++--
include/template/ledger_detail_misc.php | 6 +++---
include/template/ledger_detail_ven.php | 4 ++--
include/tva.inc.php | 4 ++--
unit-test/global.example.php | 2 +-
unit-test/include/class/acc_account.classTest.php | 2 +-
unit-test/include/class/acc_account_ledgerTest.class.php | 2 +-
unit-test/include/class/acc_balanceTest.class.php | 2 +-
unit-test/include/class/acc_bilanTest.class.php | 2 +-
34 files changed, 54 insertions(+), 53 deletions(-)
diff --git a/dev/misc-testing/pdf/pdf-page-break.php
b/dev/misc-testing/pdf/pdf-page-break.php
index e44a7c2..dc5b3c2 100644
--- a/dev/misc-testing/pdf/pdf-page-break.php
+++ b/dev/misc-testing/pdf/pdf-page-break.php
@@ -25,7 +25,7 @@
include_once '../../include/constant.php';
require_once NOALYSS_INCLUDE.'/lib/pdf.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
bcscale(2);
$_REQUEST['gDossier']=37;
$_GET['gDossier']=37;
diff --git a/html/ajax.php b/html/ajax.php
index 28a4503..ea0a84f 100644
--- a/html/ajax.php
+++ b/html/ajax.php
@@ -19,12 +19,12 @@ require_once NOALYSS_INCLUDE.'/class/user.class.php';
require_once NOALYSS_INCLUDE.'/class/extension.class.php';
if ( !isset ($_REQUEST['gDossier'])) exit();
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
mb_internal_encoding("UTF-8");
global $g_user,$cn,$g_parameter;
$cn=Dossier::connect();
-$g_parameter=new Own($cn);
+$g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user=new User($cn);
$g_user->check(true);
set_language();
diff --git a/html/ajax_misc.php b/html/ajax_misc.php
index 984ebb9..bf4883a 100644
--- a/html/ajax_misc.php
+++ b/html/ajax_misc.php
@@ -71,7 +71,7 @@ global $g_user, $cn, $g_parameter;
//
if ($gDossier<>0) {
$cn =Dossier::connect();
- $g_parameter=new Own($cn);
+ $g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user = new User($cn);
$g_user->check(true);
if ( $g_user->check_dossier($gDossier, true) == 'X' ) {
diff --git a/html/ajax_test.php b/html/ajax_test.php
index ea444dc..01fd2b5 100644
--- a/html/ajax_test.php
+++ b/html/ajax_test.php
@@ -48,7 +48,7 @@ $gDossierLogInput=$gDossier;
global $cn, $g_user, $g_succeed, $g_failed;
$cn=Dossier::connect();
-$g_parameter=new Own($cn);
+$g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user=new User($cn);
if (!file_exists('authorized_debug'))
diff --git a/html/do.php b/html/do.php
index bee66ad..1bd08fb 100644
--- a/html/do.php
+++ b/html/do.php
@@ -142,7 +142,7 @@ if ( DEBUG ) {
<?php
}
-$g_parameter=new Own($cn);
+$g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user->Check();
$g_user->check_dossier(Dossier::id());
diff --git a/html/fid.php b/html/fid.php
index fd1746b..d8be465 100644
--- a/html/fid.php
+++ b/html/fid.php
@@ -33,7 +33,7 @@
*\note if the j is -1 then all the card are shown
*/
require_once '../include/constant.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/user_common.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
diff --git a/html/test.php b/html/test.php
index 2d8265f..36ff91d 100644
--- a/html/test.php
+++ b/html/test.php
@@ -53,7 +53,7 @@ $gDossierLogInput=$gDossier;
global $cn, $g_user, $g_succeed, $g_failed;
$cn=Dossier::connect();
-$g_parameter=new Own($cn);
+$g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user=new User($cn);
if (!file_exists('authorized_debug'))
diff --git a/include/ajax/ajax_fiche_def_detail.php
b/include/ajax/ajax_fiche_def_detail.php
index 9c62f34..2b01b9c 100644
--- a/include/ajax/ajax_fiche_def_detail.php
+++ b/include/ajax/ajax_fiche_def_detail.php
@@ -31,9 +31,10 @@ require_once NOALYSS_INCLUDE.'/lib/single_record.class.php';
global $g_user;
$g_user->can_request(FICCAT,0);
-
-$fd=new Fiche_Def($cn,$_GET['id']);
-if ( $_GET['id'] > 0 )
+$http=new HttpInput();
+$id=$http->get("id","number");
+$fd=new Fiche_Def($cn,$id);
+if ( $id > 0 )
{
echo $fd->input_detail();
diff --git a/include/ajax/ajax_ledger.php b/include/ajax/ajax_ledger.php
index 7da2448..5560099 100644
--- a/include/ajax/ajax_ledger.php
+++ b/include/ajax/ajax_ledger.php
@@ -38,7 +38,7 @@ require_once NOALYSS_INCLUDE.'/class/fiche.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_reconciliation.class.php';
require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php';
require_once NOALYSS_INCLUDE.'/lib/idate.class.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/lib/iconcerned.class.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
$http=new HttpInput();
@@ -68,7 +68,7 @@ catch (Exception $exc)
*/
$cn=Dossier::connect();
-$g_parameter=new Own($cn);
+$g_parameter=new Noalyss_Parameter_Folder($cn);
$g_user->check();
if ( $g_user->check_dossier(dossier::id(),true)=='X' )
@@ -484,7 +484,7 @@ case 'save':
////////////////////////////////////////////////////
// CA
//////////////////////////////////////////////////
- $owner = new Own($cn);
+ $owner = new Noalyss_Parameter_Folder($cn);
if ( $owner->MY_ANALYTIC != "nu" && isset ($_POST['op']) )
{
// for each item, insert into operation_analytique */
diff --git a/include/cfgfiche.inc.php b/include/cfgfiche.inc.php
index 47aaa1d..89aef1f 100644
--- a/include/cfgfiche.inc.php
+++ b/include/cfgfiche.inc.php
@@ -160,6 +160,6 @@ if ( isset($_POST['add_modele']))
}
$fiche_def=new Fiche_def($cn);
-$fiche_def->Display();
+$fiche_def->display();
$dossier=Dossier::id();
?>
diff --git a/include/class/acc_ledger_sold.class.php
b/include/class/acc_ledger_sold.class.php
index 4c5a20d..cce0f27 100644
--- a/include/class/acc_ledger_sold.class.php
+++ b/include/class/acc_ledger_sold.class.php
@@ -37,7 +37,7 @@ require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php';
require_once NOALYSS_INCLUDE.'/lib/user_common.php';
require_once NOALYSS_INCLUDE.'/class/acc_payment.class.php';
require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/lib/itva_popup.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_ledger_fin.class.php';
require_once NOALYSS_INCLUDE.'/class/stock_goods.class.php';
diff --git a/include/class/document.class.php b/include/class/document.class.php
index 54f6103..8a81ff2 100644
--- a/include/class/document.class.php
+++ b/include/class/document.class.php
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
// Copyright Author Dany De Bontridder address@hidden
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php';
require_once NOALYSS_INCLUDE.'/class/follow_up.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_tva.class.php';
diff --git a/include/class/fiche_def.class.php
b/include/class/fiche_def.class.php
index 55ded5b..f913ed5 100644
--- a/include/class/fiche_def.class.php
+++ b/include/class/fiche_def.class.php
@@ -160,11 +160,11 @@ class Fiche_Def
}
/*!
**************************************************
- * \brief Display category into a table
+ * \brief Display all card categories into a table
*
* \return HTML row
*/
- function Display()
+ function display()
{
$tab = new Sort_Table();
diff --git a/include/class/own.class.php
b/include/class/noalyss_parameter_folder.class.php
similarity index 99%
rename from include/class/own.class.php
rename to include/class/noalyss_parameter_folder.class.php
index 1d2b544..8f78442 100644
--- a/include/class/own.class.php
+++ b/include/class/noalyss_parameter_folder.class.php
@@ -24,7 +24,7 @@
* \brief Class to manage the company parameter (address, name...)
*/
-class Own
+class Noalyss_Parameter_Folder
{
var $db;
var $MY_NAME;
diff --git a/include/class/print_ledger.class.php
b/include/class/print_ledger.class.php
index 08372ea..7503fca 100644
--- a/include/class/print_ledger.class.php
+++ b/include/class/print_ledger.class.php
@@ -62,7 +62,7 @@ class Print_Ledger {
//----------------------------------------------------------------------
// Simple Printing Purchase Ledger
//---------------------------------------------------------------------
- $own = new Own($cn);
+ $own = new Noalyss_Parameter_Folder($cn);
$jrn_type = $p_ledger->get_type();
@@ -98,7 +98,7 @@ class Print_Ledger {
/**********************************************************
* Print Detail Operation + Item
********************************************************** */
- $own = new Own($cn);
+ $own = new Noalyss_Parameter_Folder($cn);
$jrn_type = $p_ledger->get_type();
if ($jrn_type == 'FIN') {
$pdf = new Print_Ledger_Financial($cn, $p_ledger);
diff --git a/include/company.inc.php b/include/company.inc.php
index f6e5c27..c7dcc54 100644
--- a/include/company.inc.php
+++ b/include/company.inc.php
@@ -26,10 +26,10 @@ if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas
permis');
global $g_user;
$http=new HttpInput();
echo '<div class="content">';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
if (isset($_POST['record_company']))
{
- $m = new Own($cn);
+ $m = new Noalyss_Parameter_Folder($cn);
$m->MY_NAME = $http->post("p_name");
$m->MY_TVA = $http->post("p_tva");
$m->MY_STREET = $http->post("p_street");
@@ -52,7 +52,7 @@ if (isset($_POST['record_company']))
$m->Update();
}
-$my = new Own($cn);
+$my = new Noalyss_Parameter_Folder($cn);
///// Compta analytic
$array = array(
array("value" => "ob", 'label' => _("obligatoire")),
diff --git a/include/export/export_gl_csv.php b/include/export/export_gl_csv.php
index 2c7a1b3..bb3415b 100644
--- a/include/export/export_gl_csv.php
+++ b/include/export/export_gl_csv.php
@@ -43,7 +43,7 @@ include_once
NOALYSS_INCLUDE.'/class/acc_account_ledger.class.php';
include_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
include_once NOALYSS_INCLUDE.'/lib/impress.class.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
require_once NOALYSS_INCLUDE.'/class/user.class.php';
require_once NOALYSS_INCLUDE.'/lib/noalyss_csv.class.php';
diff --git a/include/export/export_gl_pdf.php b/include/export/export_gl_pdf.php
index 6d3faa5..8bb9f89 100644
--- a/include/export/export_gl_pdf.php
+++ b/include/export/export_gl_pdf.php
@@ -27,7 +27,7 @@ include_once('class/acc_account_ledger.class.php');
include_once('lib/ac_common.php');
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
include_once('lib/impress.class.php');
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
require_once NOALYSS_INCLUDE.'/class/user.class.php';
require_once NOALYSS_INCLUDE.'/lib/pdf.class.php';
diff --git a/include/export/export_ledger_csv.php
b/include/export/export_ledger_csv.php
index fce4072..9041f58 100644
--- a/include/export/export_ledger_csv.php
+++ b/include/export/export_ledger_csv.php
@@ -22,7 +22,7 @@
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
include_once NOALYSS_INCLUDE."/lib/ac_common.php";
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_ledger_sold.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_ledger_purchase.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
@@ -246,7 +246,7 @@ if ($get_option == 1)
. "where "
. "jr_id in (select jra_concerned from jrn_rapt where jr_id =
$1 union all select jr_id from jrn_rapt where jra_concerned=$1)");
- $own=new Own($cn);
+ $own=new Noalyss_Parameter_Folder($cn);
$title=array();
$title[]=_('Date');
$title[]=_("Paiement");
diff --git a/include/export/export_ledger_pdf.php
b/include/export/export_ledger_pdf.php
index 2123e53..ea2fcc1 100644
--- a/include/export/export_ledger_pdf.php
+++ b/include/export/export_ledger_pdf.php
@@ -34,7 +34,7 @@ require_once NOALYSS_INCLUDE.'/lib/ac_common.php';
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
require_once NOALYSS_INCLUDE.'/lib/impress.class.php';
require_once NOALYSS_INCLUDE.'/class/acc_ledger.class.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/periode.class.php';
require_once NOALYSS_INCLUDE.'/class/print_ledger.class.php';
require_once NOALYSS_INCLUDE.'/lib/http_input.class.php';
@@ -56,7 +56,7 @@ catch (Exception $exc)
throw $exc;
}
$l_type = "JRN";
-$own = new Own($cn);
+$own = new Noalyss_Parameter_Folder($cn);
$Jrn = new Acc_Ledger($cn, $jrn_id);
diff --git a/include/header_print.php b/include/header_print.php
index 5a1d8f4..d0e6eb9 100644
--- a/include/header_print.php
+++ b/include/header_print.php
@@ -25,7 +25,7 @@
*/
require_once NOALYSS_INCLUDE.'/lib/database.class.php';
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/dossier.class.php';
@@ -33,7 +33,7 @@ date_default_timezone_set ('Europe/Brussels');
function header_txt($p_cn)
{
- $own=new own($p_cn);
+ $own=new Noalyss_Parameter_Folder($p_cn);
$soc=$own->MY_NAME;
$date=date('d / m / Y H:i ');
diff --git a/include/impress_jrn.inc.php b/include/impress_jrn.inc.php
index 12b690d..d8bc42d 100644
--- a/include/impress_jrn.inc.php
+++ b/include/impress_jrn.inc.php
@@ -338,7 +338,7 @@ if (isset($_REQUEST['bt_html']))
/*
* Ledger ACH or VEN
*/
- $own=new Own($cn);
+ $own=new Noalyss_Parameter_Folder($cn);
require_once NOALYSS_TEMPLATE.'/print_ledger_simple.php';
}
diff --git a/include/lib/pdf.class.php b/include/lib/pdf.class.php
index 636509f..90600bd 100644
--- a/include/lib/pdf.class.php
+++ b/include/lib/pdf.class.php
@@ -74,7 +74,7 @@ class PDF extends TFPDF
date_default_timezone_set ('Europe/Paris');
$this->cn = $p_cn;
- $this->own = new own($this->cn);
+ $this->own = new Noalyss_Parameter_Folder($this->cn);
$this->soc = $this->own->MY_NAME;
$this->date = date('d.m.Y');
$this->cells=array();
@@ -344,7 +344,7 @@ class PDFLand extends PDF
$this->AddFont('DejaVuCond','I','DejaVuSansCondensed-Oblique.ttf',true);
$this->cn = $p_cn;
- $this->own = new own($this->cn);
+ $this->own = new Noalyss_Parameter_Folder($this->cn);
$this->soc = $this->own->MY_NAME;
$this->date = date('d.m.Y');
}
diff --git a/include/template/ledger_detail_ach.php
b/include/template/ledger_detail_ach.php
index eff84cd..97981af 100644
--- a/include/template/ledger_detail_ach.php
+++ b/include/template/ledger_detail_ach.php
@@ -5,8 +5,8 @@ $str_anc="";
?><?php require_once NOALYSS_TEMPLATE.'/ledger_detail_top.php'; ?>
<div class="content" style="padding:0;">
<?php
- require_once NOALYSS_INCLUDE.'/class/own.class.php';
- $owner = new Own($cn);
+ require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
+ $owner = new Noalyss_Parameter_Folder($cn);
?>
<?php if ($access == 'W') : ?>
diff --git a/include/template/ledger_detail_bottom.php
b/include/template/ledger_detail_bottom.php
index 4900a09..1431661 100644
--- a/include/template/ledger_detail_bottom.php
+++ b/include/template/ledger_detail_bottom.php
@@ -298,7 +298,7 @@ if ( $div != 'popup' ) {
*/
if ( $access=='W') {
echo HtmlInput::submit('save',_('Sauver'),'onClick="return
verify_ca(\'popup\');"');
- $owner=new Own($cn);
+ $owner=new Noalyss_Parameter_Folder($cn);
if ($owner->MY_ANALYTIC != 'nu' /*&& $div=='popup' */){
echo '<input type="button" class="smallbutton" value="'._('verifie CA').'"
onClick="verify_ca(\''.$div.'\');">';
}
diff --git a/include/template/ledger_detail_fin.php
b/include/template/ledger_detail_fin.php
index b352499..a34f4b6 100644
--- a/include/template/ledger_detail_fin.php
+++ b/include/template/ledger_detail_fin.php
@@ -5,8 +5,8 @@ $str_anc="";
?><?php require_once NOALYSS_TEMPLATE.'/ledger_detail_top.php'; ?>
<div class="content" style="padding:0;">
<?php
- require_once NOALYSS_INCLUDE.'/class/own.class.php';
- $owner=new Own($cn);
+ require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
+ $owner=new Noalyss_Parameter_Folder($cn);
require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
require_once NOALYSS_INCLUDE.'/class/anc_operation.class.php';
diff --git a/include/template/ledger_detail_misc.php
b/include/template/ledger_detail_misc.php
index d847e51..17176c6 100644
--- a/include/template/ledger_detail_misc.php
+++ b/include/template/ledger_detail_misc.php
@@ -8,7 +8,7 @@ require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
$str_anc="";
?>
<?php
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
?>
<div class="content" style="padding:0">
@@ -86,8 +86,8 @@ require_once NOALYSS_INCLUDE.'/class/anc_plan.class.php';
<div class="myfieldset">
<?php
- require_once NOALYSS_INCLUDE.'/class/own.class.php';
- $owner=new Own($cn);
+ require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
+ $owner=new Noalyss_Parameter_Folder($cn);
?>
<table class="result">
<tr>
diff --git a/include/template/ledger_detail_ven.php
b/include/template/ledger_detail_ven.php
index 82dc7c8..fa7c3ac 100644
--- a/include/template/ledger_detail_ven.php
+++ b/include/template/ledger_detail_ven.php
@@ -11,8 +11,8 @@
?>
<div class="content" style="padding:0;">
<?php
- require_once NOALYSS_INCLUDE.'/class/own.class.php';
- $owner = new Own($cn);
+ require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
+ $owner = new Noalyss_Parameter_Folder($cn);
?>
<?php if ($access == 'W') : ?>
diff --git a/include/tva.inc.php b/include/tva.inc.php
index 527cae6..6f94422 100644
--- a/include/tva.inc.php
+++ b/include/tva.inc.php
@@ -21,7 +21,7 @@
* \brief included file for customizing with the vat (account,rate...)
*/
if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
-require_once NOALYSS_INCLUDE.'/class/own.class.php';
+require_once NOALYSS_INCLUDE.'/class/noalyss_parameter_folder.class.php';
require_once NOALYSS_INCLUDE.'/lib/html_input.class.php';
require_once NOALYSS_INCLUDE.'/lib/ihidden.class.php';
require_once NOALYSS_INCLUDE.'/lib/itextarea.class.php';
@@ -87,7 +87,7 @@ if (isset($_POST['confirm_mod'])
}
}
// If company not use VAT
-$own = new Own($cn);
+$own = new Noalyss_Parameter_Folder($cn);
if ($own->MY_TVA_USE == 'N')
{
echo '<h2 class="error">'._("Vous n'êtes pas assujetti à la TVA").'</h2>';
diff --git a/unit-test/global.example.php b/unit-test/global.example.php
index ef5a767..4995717 100644
--- a/unit-test/global.example.php
+++ b/unit-test/global.example.php
@@ -26,7 +26,7 @@
global $g_connection,$g_parameter,$g_user;
$_REQUEST['gDossier'] = DOSSIER;
$g_connection=new Database(DOSSIER);
-$g_parameter = new Own($g_connection);
+$g_parameter = new Noalyss_Parameter_Folder($g_connection);
$_SESSION['g_user']='phpcompta';
$_SESSION['g_pass']='dany';
$_SESSION['g_pagesize']='50';
diff --git a/unit-test/include/class/acc_account.classTest.php
b/unit-test/include/class/acc_account.classTest.php
index e4ea195..e8af419 100644
--- a/unit-test/include/class/acc_account.classTest.php
+++ b/unit-test/include/class/acc_account.classTest.php
@@ -20,7 +20,7 @@ class Acc_AccountTest extends PHPUnit_Framework_TestCase
global $g_connection, $g_parameter, $g_user;
$_REQUEST['gDossier']=DOSSIER;
$g_connection=new Database(DOSSIER);
- $g_parameter=new Own($g_connection);
+ $g_parameter=new Noalyss_Parameter_Folder($g_connection);
$g_user=new User($g_connection);
$cn=Dossier::connect();
$this->object=new Acc_Account($cn, '400');
diff --git a/unit-test/include/class/acc_account_ledgerTest.class.php
b/unit-test/include/class/acc_account_ledgerTest.class.php
index 4605342..52acf96 100644
--- a/unit-test/include/class/acc_account_ledgerTest.class.php
+++ b/unit-test/include/class/acc_account_ledgerTest.class.php
@@ -21,7 +21,7 @@ class Acc_Account_LedgerTest extends
PHPUnit_Framework_TestCase
global $g_connection, $g_parameter,$g_user;
$_REQUEST['gDossier']=DOSSIER;
$g_connection=new Database(DOSSIER);
- $g_parameter=new Own($g_connection);
+ $g_parameter=new Noalyss_Parameter_Folder($g_connection);
$g_user=new User($g_connection);
$this->object=new Acc_Account_Ledger($g_connection, 400);
}
diff --git a/unit-test/include/class/acc_balanceTest.class.php
b/unit-test/include/class/acc_balanceTest.class.php
index 0ee7926..91b6f01 100644
--- a/unit-test/include/class/acc_balanceTest.class.php
+++ b/unit-test/include/class/acc_balanceTest.class.php
@@ -20,7 +20,7 @@ class Acc_BalanceTest extends PHPUnit_Framework_TestCase
global $g_connection, $g_parameter;
$_REQUEST['gDossier']=DOSSIER;
$g_connection=new Database(DOSSIER);
- $g_parameter=new Own($g_connection);
+ $g_parameter=new Noalyss_Parameter_Folder($g_connection);
$this->object=new Acc_Balance($g_connection);
}
diff --git a/unit-test/include/class/acc_bilanTest.class.php
b/unit-test/include/class/acc_bilanTest.class.php
index 3cb07d4..35b93c5 100644
--- a/unit-test/include/class/acc_bilanTest.class.php
+++ b/unit-test/include/class/acc_bilanTest.class.php
@@ -21,7 +21,7 @@ class Acc_BilanTest extends PHPUnit_Framework_TestCase
global $g_connection, $g_parameter;
$_REQUEST['gDossier']=DOSSIER;
$g_connection=new Database(DOSSIER);
- $g_parameter=new Own($g_connection);
+ $g_parameter=new Noalyss_Parameter_Folder($g_connection);
$this->object=new Acc_Bilan($g_connection);
}
- [Noalyss-commit] [noalyss] 75/323: Merge branch 'rewrite-printjrn', (continued)
- [Noalyss-commit] [noalyss] 75/323: Merge branch 'rewrite-printjrn', Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 76/323: Small bug in save_card, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 71/323: task #1531: Historique poste et fiche d'après exercice opération, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 83/323: Esthétique Recherche action, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 68/323: Task #0001530: Réécriture PRINTJRN Add Financial Ledger Adapt test file, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 61/323: Fix some issues with PRINTJRN, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 79/323: before deleting a card , check if it is not used as an attribute in another card, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 04/323: Improve Doxygen documentation, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 60/323: remove deprecated theme, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 56/323: Task #0001527: Effacement du champ code fiche : bouton, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 43/323: Rewriting Change class Own by Noalyss_Parameter_Folder,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 84/323: Doc, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 81/323: task #1531: Historique poste et fiche d'après exercice opération Fait aussi pour le bouton historique, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 85/323: cosmetique, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 82/323: Esthétique Recherche action, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 88/323: comment, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 93/323: Predefined operation fix cosmetic, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 90/323: Icon_Action replace image by fontello, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 89/323: task #0001533: Possibilité d'activer ou désactiver des étiquettes Cache ou montre les tags inactifs dans recherche, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 52/323: Task #1457 & 1281 : operation ouverture séparée, Dany De Bontridder, 2018/03/14
- [Noalyss-commit] [noalyss] 74/323: Task #0001530: Réécriture PRINTJRN : export CSV, Dany De Bontridder, 2018/03/14