Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
1cbac265f4
@ -15,7 +15,6 @@
|
|||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -37,7 +36,7 @@ $urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domai
|
|||||||
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
|
//$urlwithroot=DOL_MAIN_URL_ROOT; // This is to use same domain name than current
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('admin', 'oauth'));
|
$langs->loadLangs(array('admin', 'oauth', 'modulebuilder'));
|
||||||
|
|
||||||
// Security check
|
// Security check
|
||||||
if (!$user->admin) {
|
if (!$user->admin) {
|
||||||
@ -111,7 +110,7 @@ $form = new Form($db);
|
|||||||
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
$linkback = '<a href="'.DOL_URL_ROOT.'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
print load_fiche_titre($langs->trans('ConfigOAuth'), $linkback, 'title_setup');
|
print load_fiche_titre($langs->trans('ConfigOAuth'), $linkback, 'title_setup');
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
print '<input type="hidden" name="action" value="add">';
|
print '<input type="hidden" name="action" value="add">';
|
||||||
|
|
||||||
@ -141,22 +140,16 @@ foreach ($list as $key) {
|
|||||||
}
|
}
|
||||||
print '</select>';
|
print '</select>';
|
||||||
print ajax_combobox('provider');
|
print ajax_combobox('provider');
|
||||||
print ' <input type="text" name="label" value="" placeholder="'.$langs->trans("Label").'">';
|
print ' <input type="text" name="label" value="" placeholder="'.$langs->trans("Label").'" pattern="^\S+$" title="'.$langs->trans("SpaceOrSpecialCharAreNotAllowed").'">';
|
||||||
print ' <input type="submit" class="button small" name="add" value="'.$langs->trans("Add").'">';
|
print ' <input type="submit" class="button small" name="add" value="'.$langs->trans("Add").'">';
|
||||||
|
|
||||||
|
print '<br>';
|
||||||
|
print '<br>';
|
||||||
|
|
||||||
|
print dol_get_fiche_end();
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
print '<br>';
|
|
||||||
print '<br>';
|
|
||||||
|
|
||||||
|
|
||||||
print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
|
|
||||||
print '<input type="hidden" name="token" value="'.newToken().'">';
|
|
||||||
print '<input type="hidden" name="action" value="update">';
|
|
||||||
|
|
||||||
print '<div class="div-table-responsive">';
|
|
||||||
print '<table class="noborder centpercent">';
|
|
||||||
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
// Define $listinsetup
|
// Define $listinsetup
|
||||||
foreach ($conf->global as $key => $val) {
|
foreach ($conf->global as $key => $val) {
|
||||||
@ -172,6 +165,17 @@ foreach ($conf->global as $key => $val) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (count($listinsetup) > 0) {
|
||||||
|
print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
|
||||||
|
print '<input type="hidden" name="token" value="'.newToken().'">';
|
||||||
|
print '<input type="hidden" name="action" value="update">';
|
||||||
|
|
||||||
|
print '<div class="div-table-responsive-no-min">';
|
||||||
|
print '<table class="noborder centpercent">';
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
// $list is defined into oauth.lib.php to the list of supporter OAuth providers.
|
// $list is defined into oauth.lib.php to the list of supporter OAuth providers.
|
||||||
foreach ($listinsetup as $key) {
|
foreach ($listinsetup as $key) {
|
||||||
$supported = 0;
|
$supported = 0;
|
||||||
@ -272,11 +276,10 @@ foreach ($listinsetup as $key) {
|
|||||||
print '</table>'."\n";
|
print '</table>'."\n";
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
print dol_get_fiche_end();
|
|
||||||
|
|
||||||
print $form->buttonsSaveCancel("Modify", '');
|
print $form->buttonsSaveCancel("Modify", '');
|
||||||
|
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
}
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
@ -42,7 +42,11 @@ function printDropdownBookmarksList()
|
|||||||
if (!empty($_SERVER["QUERY_STRING"])) {
|
if (!empty($_SERVER["QUERY_STRING"])) {
|
||||||
if (is_array($_GET)) {
|
if (is_array($_GET)) {
|
||||||
foreach ($_GET as $key => $val) {
|
foreach ($_GET as $key => $val) {
|
||||||
if ($val != '') {
|
if (is_array($val)) {
|
||||||
|
foreach ($val as $tmpsubval) {
|
||||||
|
$url_param[] = http_build_query(array(dol_escape_htmltag($key).'[]' => dol_escape_htmltag($tmpsubval)));
|
||||||
|
}
|
||||||
|
} elseif ($val != '') {
|
||||||
$url_param[$key] = http_build_query(array(dol_escape_htmltag($key) => dol_escape_htmltag($val)));
|
$url_param[$key] = http_build_query(array(dol_escape_htmltag($key) => dol_escape_htmltag($val)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,6 +69,7 @@ function printDropdownBookmarksList()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$url .= ($tmpurl ? '?'.$tmpurl : '');
|
$url .= ($tmpurl ? '?'.$tmpurl : '');
|
||||||
if (!empty($url_param)) {
|
if (!empty($url_param)) {
|
||||||
$url .= '&'.implode('&', $url_param);
|
$url .= '&'.implode('&', $url_param);
|
||||||
|
|||||||
@ -124,7 +124,7 @@ function check_user_password_dolibarr($usertotest, $passwordtotest, $entitytotes
|
|||||||
if ($passok) {
|
if ($passok) {
|
||||||
$login = $obj->login;
|
$login = $obj->login;
|
||||||
} else {
|
} else {
|
||||||
sleep(2); // Anti brut force protection
|
sleep(1); // Anti brut force protection
|
||||||
dol_syslog("functions_dolibarr::check_user_password_dolibarr Authentication KO bad password for '".$usertotest."', cryptType=".$cryptType, LOG_NOTICE);
|
dol_syslog("functions_dolibarr::check_user_password_dolibarr Authentication KO bad password for '".$usertotest."', cryptType=".$cryptType, LOG_NOTICE);
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
|
|||||||
@ -267,7 +267,7 @@ function check_user_password_ldap($usertotest, $passwordtotest, $entitytotest)
|
|||||||
$ldap->ldapErrorText = ldap_error($ldap->connection);
|
$ldap->ldapErrorText = ldap_error($ldap->connection);
|
||||||
dol_syslog("functions_ldap::check_user_password_ldap ".$ldap->ldapErrorCode." ".$ldap->ldapErrorText);
|
dol_syslog("functions_ldap::check_user_password_ldap ".$ldap->ldapErrorCode." ".$ldap->ldapErrorText);
|
||||||
}
|
}
|
||||||
sleep(2); // Anti brut force protection
|
sleep(1); // Anti brut force protection
|
||||||
|
|
||||||
// Load translation files required by the page
|
// Load translation files required by the page
|
||||||
$langs->loadLangs(array('main', 'other', 'errors'));
|
$langs->loadLangs(array('main', 'other', 'errors'));
|
||||||
|
|||||||
@ -101,7 +101,7 @@ if (empty($reshook) && isset($extrafields->attributes[$object->table_element]['l
|
|||||||
if ($action == 'edit_extras') {
|
if ($action == 'edit_extras') {
|
||||||
$value = (GETPOSTISSET("options_".$tmpkeyextra) ? GETPOST("options_".$tmpkeyextra) : $object->array_options["options_".$tmpkeyextra]);
|
$value = (GETPOSTISSET("options_".$tmpkeyextra) ? GETPOST("options_".$tmpkeyextra) : $object->array_options["options_".$tmpkeyextra]);
|
||||||
} else {
|
} else {
|
||||||
$value = (!empty($object->array_options["options_".$tmpkeyextra]) ? $object->array_options["options_".$tmpkeyextra] : '');
|
$value = (isset($object->array_options["options_".$tmpkeyextra]) ? $object->array_options["options_".$tmpkeyextra] : '');
|
||||||
//var_dump($tmpkeyextra.' - '.$value);
|
//var_dump($tmpkeyextra.' - '.$value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -44,8 +44,6 @@ $result = restrictedArea($user, 'societe', '', '');
|
|||||||
$result = restrictedArea($user, 'margins');
|
$result = restrictedArea($user, 'margins');
|
||||||
|
|
||||||
|
|
||||||
$mesg = '';
|
|
||||||
|
|
||||||
// Load variable for pagination
|
// Load variable for pagination
|
||||||
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
|
||||||
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
$sortfield = GETPOST('sortfield', 'aZ09comma');
|
||||||
@ -65,18 +63,18 @@ if (!$sortorder) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$startdate = $enddate = '';
|
$startdate = $enddate = '';
|
||||||
|
if (GETPOST('startdatemonth')) {
|
||||||
if (!empty($_POST['startdatemonth'])) {
|
$startdate = dol_mktime(0, 0, 0, GETPOST('startdatemonth', 'int'), GETPOST('startdateday', 'int'), GETPOST('startdateyear', 'int'));
|
||||||
$startdate = dol_mktime(0, 0, 0, $_POST['startdatemonth'], $_POST['startdateday'], $_POST['startdateyear']);
|
|
||||||
}
|
}
|
||||||
if (!empty($_POST['enddatemonth'])) {
|
if (GETPOST('enddatemonth')) {
|
||||||
$enddate = dol_mktime(23, 59, 59, $_POST['enddatemonth'], $_POST['enddateday'], $_POST['enddateyear']);
|
$enddate = dol_mktime(23, 59, 59, GETPOST('enddatemonth', 'int'), GETPOST('enddateday', 'int'), GETPOST('enddateyear'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
$object = new Societe($db);
|
$object = new Societe($db);
|
||||||
$hookmanager->initHooks(array('margincustomerlist'));
|
$hookmanager->initHooks(array('margincustomerlist'));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
@ -189,7 +187,7 @@ print '<table class="border centpercent">';
|
|||||||
|
|
||||||
// Total Margin
|
// Total Margin
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("TotalMargin").'</td><td colspan="4">';
|
print '<tr><td class="titlefield">'.$langs->trans("TotalMargin").'</td><td colspan="4">';
|
||||||
print '<span id="totalMargin"></span>'; // set by jquery (see below)
|
print '<span id="totalMargin" class="amount"></span> <span class="amount">'.$langs->getCurrencySymbol($conf->currency).'</span>'; // set by jquery (see below)
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Margin Rate
|
// Margin Rate
|
||||||
@ -272,6 +270,30 @@ $sql .= $db->order($sortfield, $sortorder);
|
|||||||
// TODO: calculate total to display then restore pagination
|
// TODO: calculate total to display then restore pagination
|
||||||
//$sql.= $db->plimit($conf->liste_limit +1, $offset);
|
//$sql.= $db->plimit($conf->liste_limit +1, $offset);
|
||||||
|
|
||||||
|
$param = '&socid='.((int) $socid);
|
||||||
|
if (GETPOST('startdatemonth', 'int')) {
|
||||||
|
$param .= '&startdateyear='.GETPOST('startdateyear', 'int');
|
||||||
|
$param .= '&startdatemonth='.GETPOST('startdatemonth', 'int');
|
||||||
|
$param .= '&startdateday='.GETPOST('startdateday', 'int');
|
||||||
|
}
|
||||||
|
if (GETPOST('enddatemonth', 'int')) {
|
||||||
|
$param .= '&enddateyear='.GETPOST('enddateyear', 'int');
|
||||||
|
$param .= '&enddatemonth='.GETPOST('enddatemonth', 'int');
|
||||||
|
$param .= '&enddateday='.GETPOST('enddateday', 'int');
|
||||||
|
}
|
||||||
|
$listofproducts = GETPOST('products', 'array:int');
|
||||||
|
if (is_array($listofproducts)) {
|
||||||
|
foreach ($listofproducts as $val) {
|
||||||
|
$param .= '&products[]='.$val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$listofcateg = GETPOST('categories', 'array:int');
|
||||||
|
if (is_array($listofcateg)) {
|
||||||
|
foreach ($listofcateg as $val) {
|
||||||
|
$param .= '&categories[]='.$val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dol_syslog('margin::customerMargins.php', LOG_DEBUG);
|
dol_syslog('margin::customerMargins.php', LOG_DEBUG);
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
@ -294,19 +316,19 @@ if ($result) {
|
|||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
if (!empty($client)) {
|
if (!empty($client)) {
|
||||||
print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.ref", "", "&socid=".$socid, '', $sortfield, $sortorder);
|
print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.ref", "", $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("DateInvoice", $_SERVER["PHP_SELF"], "f.datef", "", "&socid=".$socid, 'align="center"', $sortfield, $sortorder);
|
print_liste_field_titre("DateInvoice", $_SERVER["PHP_SELF"], "f.datef", "", $param, 'align="center"', $sortfield, $sortorder);
|
||||||
} else {
|
} else {
|
||||||
print_liste_field_titre("Customer", $_SERVER["PHP_SELF"], "s.nom", "", "&socid=".$socid, '', $sortfield, $sortorder);
|
print_liste_field_titre("Customer", $_SERVER["PHP_SELF"], "s.nom", "", $param, '', $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
print_liste_field_titre("SellingPrice", $_SERVER["PHP_SELF"], "selling_price", "", "&socid=".$socid, 'align="right"', $sortfield, $sortorder);
|
print_liste_field_titre("SellingPrice", $_SERVER["PHP_SELF"], "selling_price", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||||
print_liste_field_titre($labelcostprice, $_SERVER["PHP_SELF"], "buying_price", "", "&socid=".$socid, 'align="right"', $sortfield, $sortorder);
|
print_liste_field_titre($labelcostprice, $_SERVER["PHP_SELF"], "buying_price", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("Margin", $_SERVER["PHP_SELF"], "marge", "", "&socid=".$socid, 'align="right"', $sortfield, $sortorder);
|
print_liste_field_titre("Margin", $_SERVER["PHP_SELF"], "marge", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||||
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
|
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
|
||||||
print_liste_field_titre("MarginRate", $_SERVER["PHP_SELF"], "", "", "&socid=".$socid, 'align="right"', $sortfield, $sortorder);
|
print_liste_field_titre("MarginRate", $_SERVER["PHP_SELF"], "", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
|
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
|
||||||
print_liste_field_titre("MarkRate", $_SERVER["PHP_SELF"], "", "", "&socid=".$socid, 'align="right"', $sortfield, $sortorder);
|
print_liste_field_titre("MarkRate", $_SERVER["PHP_SELF"], "", "", $param, 'align="right"', $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|||||||
@ -74,18 +74,18 @@ if (!$sortfield) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$startdate = $enddate = '';
|
$startdate = $enddate = '';
|
||||||
|
if (GETPOST('startdatemonth')) {
|
||||||
if (!empty($_POST['startdatemonth'])) {
|
$startdate = dol_mktime(0, 0, 0, GETPOST('startdatemonth', 'int'), GETPOST('startdateday', 'int'), GETPOST('startdateyear', 'int'));
|
||||||
$startdate = dol_mktime(0, 0, 0, $_POST['startdatemonth'], $_POST['startdateday'], $_POST['startdateyear']);
|
|
||||||
}
|
}
|
||||||
if (!empty($_POST['enddatemonth'])) {
|
if (GETPOST('enddatemonth')) {
|
||||||
$enddate = dol_mktime(23, 59, 59, $_POST['enddatemonth'], $_POST['enddateday'], $_POST['enddateyear']);
|
$enddate = dol_mktime(23, 59, 59, GETPOST('enddatemonth', 'int'), GETPOST('enddateday', 'int'), GETPOST('enddateyear'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
|
||||||
$object = new Product($db);
|
$object = new Product($db);
|
||||||
$hookmanager->initHooks(array('marginproductlist'));
|
$hookmanager->initHooks(array('marginproductlist'));
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
@ -150,7 +150,7 @@ print '<table class="border centpercent">';
|
|||||||
|
|
||||||
// Total Margin
|
// Total Margin
|
||||||
print '<tr><td class="titlefield">'.$langs->trans("TotalMargin").'</td><td colspan="4">';
|
print '<tr><td class="titlefield">'.$langs->trans("TotalMargin").'</td><td colspan="4">';
|
||||||
print '<span id="totalMargin"></span>'; // set by jquery (see below)
|
print '<span id="totalMargin" class="amount"></span> <span class="amount">'.$langs->getCurrencySymbol($conf->currency).'</span>'; // set by jquery (see below)
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Margin Rate
|
// Margin Rate
|
||||||
@ -225,13 +225,31 @@ $sql .= $db->order($sortfield, $sortorder);
|
|||||||
// TODO: calculate total to display then restore pagination
|
// TODO: calculate total to display then restore pagination
|
||||||
//$sql.= $db->plimit($conf->liste_limit +1, $offset);
|
//$sql.= $db->plimit($conf->liste_limit +1, $offset);
|
||||||
|
|
||||||
|
$param = '&id='.((int) $id);
|
||||||
|
if (GETPOST('startdatemonth', 'int')) {
|
||||||
|
$param .= '&startdateyear='.GETPOST('startdateyear', 'int');
|
||||||
|
$param .= '&startdatemonth='.GETPOST('startdatemonth', 'int');
|
||||||
|
$param .= '&startdateday='.GETPOST('startdateday', 'int');
|
||||||
|
}
|
||||||
|
if (GETPOST('enddatemonth', 'int')) {
|
||||||
|
$param .= '&enddateyear='.GETPOST('enddateyear', 'int');
|
||||||
|
$param .= '&enddatemonth='.GETPOST('enddatemonth', 'int');
|
||||||
|
$param .= '&enddateday='.GETPOST('enddateday', 'int');
|
||||||
|
}
|
||||||
|
$listofcateg = GETPOST('categories', 'array:int');
|
||||||
|
if (is_array($listofcateg)) {
|
||||||
|
foreach ($listofcateg as $val) {
|
||||||
|
$param .= '&categories[]='.$val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dol_syslog('margin::productMargins.php', LOG_DEBUG);
|
dol_syslog('margin::productMargins.php', LOG_DEBUG);
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
if ($result) {
|
if ($result) {
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
|
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print_barre_liste($langs->trans("MarginDetails"), $page, $_SERVER["PHP_SELF"], "&id=".$id, $sortfield, $sortorder, '', $num, $num, '', 0, '', '', 0, 1);
|
print_barre_liste($langs->trans("MarginDetails"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $num, '', 0, '', '', 0, 1);
|
||||||
|
|
||||||
//var_dump($conf->global->MARGIN_TYPE);
|
//var_dump($conf->global->MARGIN_TYPE);
|
||||||
if ($conf->global->MARGIN_TYPE == "1") {
|
if ($conf->global->MARGIN_TYPE == "1") {
|
||||||
@ -248,20 +266,20 @@ if ($result) {
|
|||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
if ($id > 0) {
|
if ($id > 0) {
|
||||||
print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.ref", "", "&id=".$id, '', $sortfield, $sortorder);
|
print_liste_field_titre("Invoice", $_SERVER["PHP_SELF"], "f.ref", "", $param, '', $sortfield, $sortorder);
|
||||||
print_liste_field_titre("DateInvoice", $_SERVER["PHP_SELF"], "f.datef", "", "&id=".$id, '', $sortfield, $sortorder, 'center ');
|
print_liste_field_titre("DateInvoice", $_SERVER["PHP_SELF"], "f.datef", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
} else {
|
} else {
|
||||||
print_liste_field_titre("ProductService", $_SERVER["PHP_SELF"], "p.ref", "", "&id=".$id, '', $sortfield, $sortorder);
|
print_liste_field_titre("ProductService", $_SERVER["PHP_SELF"], "p.ref", "", $param, '', $sortfield, $sortorder);
|
||||||
}
|
}
|
||||||
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "product_qty", "", "&id=".$id, '', $sortfield, $sortorder, 'center ');
|
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "product_qty", "", $param, '', $sortfield, $sortorder, 'center ');
|
||||||
print_liste_field_titre("SellingPrice", $_SERVER["PHP_SELF"], "selling_price", "", "&id=".$id, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre("SellingPrice", $_SERVER["PHP_SELF"], "selling_price", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
print_liste_field_titre($labelcostprice, $_SERVER["PHP_SELF"], "buying_price", "", "&id=".$id, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre($labelcostprice, $_SERVER["PHP_SELF"], "buying_price", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
print_liste_field_titre("Margin", $_SERVER["PHP_SELF"], "marge", "", "&id=".$id, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre("Margin", $_SERVER["PHP_SELF"], "marge", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
|
if (!empty($conf->global->DISPLAY_MARGIN_RATES)) {
|
||||||
print_liste_field_titre("MarginRate", $_SERVER["PHP_SELF"], "", "", "&id=".$id, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre("MarginRate", $_SERVER["PHP_SELF"], "", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
}
|
}
|
||||||
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
|
if (!empty($conf->global->DISPLAY_MARK_RATES)) {
|
||||||
print_liste_field_titre("MarkRate", $_SERVER["PHP_SELF"], "", "", "&id=".$id, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre("MarkRate", $_SERVER["PHP_SELF"], "", "", $param, '', $sortfield, $sortorder, 'right ');
|
||||||
}
|
}
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user