Fix: Bad syntax of class name

This commit is contained in:
Laurent Destailleur 2012-08-27 18:00:59 +02:00
parent 60ad09db90
commit 8a42cc26b7
3 changed files with 7 additions and 8 deletions

View File

@ -25,10 +25,9 @@ require_once DOL_DOCUMENT_ROOT .'/core/class/commonobject.class.php';
/**
* \class Localtax
* \brief Put here description of your class
* Class to manage local tax
*/
class localtax extends CommonObject
class Localtax extends CommonObject
{
var $id;
var $ref;

View File

@ -40,13 +40,13 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
/*
* Actions
* Actions
*/
//add payment of localtax
if ($_POST["action"] == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
{
$localtax = new localtax($db);
$localtax = new Localtax($db);
$db->begin();
@ -78,7 +78,7 @@ if ($_POST["action"] == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
//delete payment of localtax
if ($_GET["action"] == 'delete')
{
$localtax = new localtax($db);
$localtax = new Localtax($db);
$result=$localtax->fetch($_GET['id']);
if ($localtax->rappro == 0)
@ -131,7 +131,7 @@ $form = new Form($db);
if ($id)
{
$vatpayment = new localtax($db);
$vatpayment = new Localtax($db);
$result = $vatpayment->fetch($id);
if ($result <= 0)
{

View File

@ -38,7 +38,7 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
llxHeader();
$localtax_static = new localtax($db);
$localtax_static = new Localtax($db);
print_fiche_titre($langs->transcountry("LT2Payments",$mysoc->country_code));