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 * Class to manage local tax
* \brief Put here description of your class
*/ */
class localtax extends CommonObject class Localtax extends CommonObject
{ {
var $id; var $id;
var $ref; var $ref;

View File

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

View File

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