24if (!defined(
'NOTOKENRENEWAL')) {
25 define(
'NOTOKENRENEWAL',
'1');
27if (!defined(
'NOREQUIREMENU')) {
28 define(
'NOREQUIREMENU',
'1');
30if (!defined(
'NOREQUIREAJAX')) {
31 define(
'NOREQUIREAJAX',
'1');
35require
'../../main.inc.php';
46$action =
GETPOST(
'action',
'aZ09');
47$htmlname =
GETPOST(
'htmlname',
'alpha');
52$result =
restrictedArea($user,
'societe', $id,
'&societe',
'',
'fk_soc',
'rowid', 0);
71if (!empty($id) && !empty($action) && !empty($htmlname)) {
77 if ($action ==
'getSellerVATRates') {
86 $return[
'value'] = $form->load_tva(
'tva_tx', $selected, $seller, $buyer, $productid, 0,
'',
true);
87 $return[
'num'] = $form->num;
88 $return[
'error'] = $form->error;
90 echo json_encode($return);
$id
Support class for third parties, contacts, members, users or resources.
Class to manage third parties objects (customers, suppliers, prospects...)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
if(!defined( 'NOREQUIREMENU')) if(!empty(GETPOST('seteventmessages', 'alpha'))) if(!function_exists("llxHeader")) top_httphead($contenttype='text/html', $forcenocache=0)
Show HTTP header.
restrictedArea(User $user, $features, $object=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.