Fix: Bad syntax of class name
This commit is contained in:
parent
60ad09db90
commit
8a42cc26b7
@ -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;
|
||||||
|
|||||||
@ -46,7 +46,7 @@ $result = restrictedArea($user, 'tax', '', '', 'charges');
|
|||||||
//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)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user