forked from Wavyzz/dolibarr
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2009 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2010 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2005-2013 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@@ -69,19 +69,6 @@ print_fiche_titre($langs->trans("SecuritySetup"),'','setup');
|
|||||||
print $langs->trans("DefaultRightsDesc");
|
print $langs->trans("DefaultRightsDesc");
|
||||||
print " ".$langs->trans("OnlyActiveElementsAreShown")."<br>\n";
|
print " ".$langs->trans("OnlyActiveElementsAreShown")."<br>\n";
|
||||||
|
|
||||||
// Show warning about external users
|
|
||||||
print showModulesExludedForExternal($modules).'<br>'."\n";
|
|
||||||
print "<br>\n";
|
|
||||||
|
|
||||||
|
|
||||||
$head=security_prepare_head();
|
|
||||||
|
|
||||||
dol_fiche_head($head, 'default', $langs->trans("Security"));
|
|
||||||
|
|
||||||
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
|
|
||||||
|
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|
||||||
// Charge les modules soumis a permissions
|
// Charge les modules soumis a permissions
|
||||||
@@ -100,7 +87,6 @@ foreach ($modulesdir as $dir)
|
|||||||
if (is_readable($dir.$file) && substr($file, 0, 3) == 'mod' && substr($file, dol_strlen($file) - 10) == '.class.php')
|
if (is_readable($dir.$file) && substr($file, 0, 3) == 'mod' && substr($file, dol_strlen($file) - 10) == '.class.php')
|
||||||
{
|
{
|
||||||
$modName = substr($file, 0, dol_strlen($file) - 10);
|
$modName = substr($file, 0, dol_strlen($file) - 10);
|
||||||
|
|
||||||
if ($modName)
|
if ($modName)
|
||||||
{
|
{
|
||||||
include_once $dir.$file;
|
include_once $dir.$file;
|
||||||
@@ -129,6 +115,18 @@ foreach ($modulesdir as $dir)
|
|||||||
|
|
||||||
$db->commit();
|
$db->commit();
|
||||||
|
|
||||||
|
// Show warning about external users
|
||||||
|
print showModulesExludedForExternal($modules).'<br>'."\n";
|
||||||
|
print "<br>\n";
|
||||||
|
|
||||||
|
|
||||||
|
$head=security_prepare_head();
|
||||||
|
|
||||||
|
dol_fiche_head($head, 'default', $langs->trans("Security"));
|
||||||
|
|
||||||
|
|
||||||
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
// Affiche lignes des permissions
|
// Affiche lignes des permissions
|
||||||
$sql = "SELECT r.id, r.libelle, r.module, r.perms, r.subperms, r.bydefault";
|
$sql = "SELECT r.id, r.libelle, r.module, r.perms, r.subperms, r.bydefault";
|
||||||
$sql.= " FROM ".MAIN_DB_PREFIX."rights_def as r";
|
$sql.= " FROM ".MAIN_DB_PREFIX."rights_def as r";
|
||||||
|
|||||||
@@ -660,11 +660,10 @@ function createOrder($authentication,$order)
|
|||||||
$newline->fk_product=$line['fk_product'];
|
$newline->fk_product=$line['fk_product'];
|
||||||
$newline->tva_tx=$line['vat_rate'];
|
$newline->tva_tx=$line['vat_rate'];
|
||||||
$newline->qty=$line['qty'];
|
$newline->qty=$line['qty'];
|
||||||
$newline->subprice=$line['unitprice'];
|
$newline->subprice=$line['subprice'];
|
||||||
$newline->total_ht=$line['total_net'];
|
$newline->total_ht=$line['total_net'];
|
||||||
$newline->total_tva=$line['total_vat'];
|
$newline->total_tva=$line['total_vat'];
|
||||||
$newline->total_ttc=$line['total'];
|
$newline->total_ttc=$line['total'];
|
||||||
$newline->fk_product=$line['fk_product'];
|
|
||||||
$newobject->lines[]=$newline;
|
$newobject->lines[]=$newline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user