Merge branch 'develop' of git+ssh://git@github.com/Dolibarr/dolibarr.git
into develop Conflicts: htdocs/core/modules/modCommissions.class.php
This commit is contained in:
commit
01ab1aa66f
@ -18,10 +18,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file /marges/admin/commissions.php
|
* \file /htdocs/admin/commissions.php
|
||||||
* \ingroup marges
|
* \ingroup commissions
|
||||||
* \brief Page to setup advanced commissions module
|
* \brief Page to setup advanced commissions module
|
||||||
* \version $Id:$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$res=@include("../main.inc.php"); // For root directory
|
$res=@include("../main.inc.php"); // For root directory
|
||||||
@ -80,11 +79,12 @@ if (isset($_POST['serviceCommissionRate']))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader('',$langs->trans("commissionsSetup"));
|
llxHeader('',$langs->trans("CommissionsSetup"));
|
||||||
|
|
||||||
|
|
||||||
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
$linkback='<a href="'.DOL_URL_ROOT.'/admin/modules.php">'.$langs->trans("BackToModuleList").'</a>';
|
||||||
@ -93,7 +93,7 @@ print_fiche_titre($langs->trans("commissionsSetup"),$linkback,'setup');
|
|||||||
|
|
||||||
$head = commissions_admin_prepare_head($adh);
|
$head = commissions_admin_prepare_head($adh);
|
||||||
|
|
||||||
dol_fiche_head($head, 'parameters', $langs->trans("commissions"), 0, 'company');
|
dol_fiche_head($head, 'parameters', $langs->trans("Commissions"), 0, 'commissions');
|
||||||
|
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|
||||||
|
|||||||
@ -102,7 +102,7 @@ print_fiche_titre($langs->trans("margesSetup"),$linkback,'setup');
|
|||||||
|
|
||||||
$head = marges_admin_prepare_head();
|
$head = marges_admin_prepare_head();
|
||||||
|
|
||||||
dol_fiche_head($head, 'parameters', $langs->trans("marges"), 0, 'company');
|
dol_fiche_head($head, 'parameters', $langs->trans("marges"), 0, 'marges');
|
||||||
|
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|
||||||
|
|||||||
@ -303,6 +303,8 @@ class Propal extends CommonObject
|
|||||||
* @param int $rang Position of line
|
* @param int $rang Position of line
|
||||||
* @param int $special_code Special code
|
* @param int $special_code Special code
|
||||||
* @param int $fk_parent_line Id of parent line
|
* @param int $fk_parent_line Id of parent line
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price without tax
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
*
|
*
|
||||||
* @see add_product
|
* @see add_product
|
||||||
@ -456,13 +458,15 @@ class Propal extends CommonObject
|
|||||||
* @param int $special_code Set special code ('' = we don't change it)
|
* @param int $special_code Set special code ('' = we don't change it)
|
||||||
* @param int $fk_parent_line Id of line parent
|
* @param int $fk_parent_line Id of line parent
|
||||||
* @param int $skip_update_total Skip update total
|
* @param int $skip_update_total Skip update total
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price without tax
|
||||||
* @return int 0 if OK, <0 if KO
|
* @return int 0 if OK, <0 if KO
|
||||||
*/
|
*/
|
||||||
function updateline($rowid, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht = 0)
|
function updateline($rowid, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0, $txlocaltax2=0, $desc='', $price_base_type='HT', $info_bits=0, $special_code=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht=0)
|
||||||
{
|
{
|
||||||
global $conf,$user,$langs;
|
global $conf,$user,$langs;
|
||||||
|
|
||||||
dol_syslog("Propal::UpdateLine $rowid, $pu, $qty, $remise_percent, $txtva, $desc, $price_base_type, $info_bits");
|
dol_syslog(get_class($this)."::updateLine $rowid, $pu, $qty, $remise_percent, $txtva, $desc, $price_base_type, $info_bits");
|
||||||
include_once(DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php');
|
include_once(DOL_DOCUMENT_ROOT.'/core/lib/price.lib.php');
|
||||||
|
|
||||||
// Clean parameters
|
// Clean parameters
|
||||||
|
|||||||
@ -996,6 +996,8 @@ class Commande extends CommonOrder
|
|||||||
* @param int $rang Position of line
|
* @param int $rang Position of line
|
||||||
* @param int $special_code Special code
|
* @param int $special_code Special code
|
||||||
* @param int $fk_parent_line Parent line
|
* @param int $fk_parent_line Parent line
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price (without tax)
|
||||||
* @return int >0 if OK, <0 if KO
|
* @return int >0 if OK, <0 if KO
|
||||||
*
|
*
|
||||||
* @see add_product
|
* @see add_product
|
||||||
@ -2151,9 +2153,11 @@ class Commande extends CommonOrder
|
|||||||
* @param int $type Type of line (0=product, 1=service)
|
* @param int $type Type of line (0=product, 1=service)
|
||||||
* @param int $fk_parent_line Parent line id
|
* @param int $fk_parent_line Parent line id
|
||||||
* @param int $skip_update_total Skip update of total
|
* @param int $skip_update_total Skip update of total
|
||||||
|
* @param int $fk_fournprice Id supplier price
|
||||||
|
* @param int $pa_ht Buying price (without tax)
|
||||||
* @return int < 0 if KO, > 0 if OK
|
* @return int < 0 if KO, > 0 if OK
|
||||||
*/
|
*/
|
||||||
function updateline($rowid, $desc, $pu, $qty, $remise_percent=0, $txtva, $txlocaltax1=0,$txlocaltax2=0, $price_base_type='HT', $info_bits=0, $date_start='', $date_end='', $type=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht = 0)
|
function updateline($rowid, $desc, $pu, $qty, $remise_percent, $txtva, $txlocaltax1=0,$txlocaltax2=0, $price_base_type='HT', $info_bits=0, $date_start='', $date_end='', $type=0, $fk_parent_line=0, $skip_update_total=0, $fk_fournprice=null, $pa_ht=0)
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
|||||||
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Define head array for tabs of marges tools setup pages
|
* Define head array for tabs of marges tools setup pages
|
||||||
|
*
|
||||||
* @return Array of head
|
* @return Array of head
|
||||||
*/
|
*/
|
||||||
function commissions_admin_prepare_head()
|
function commissions_admin_prepare_head()
|
||||||
|
|||||||
@ -33,7 +33,7 @@ include_once(DOL_DOCUMENT_ROOT ."/core/modules/DolibarrModules.class.php");
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classe de description et activation du module Commande
|
* Class to describe module customer orders
|
||||||
*/
|
*/
|
||||||
class modCommande extends DolibarrModules
|
class modCommande extends DolibarrModules
|
||||||
{
|
{
|
||||||
|
|||||||
@ -27,8 +27,7 @@ include_once(DOL_DOCUMENT_ROOT ."/core/modules/DolibarrModules.class.php");
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class modCommissions
|
* Class to describe modude Commisions
|
||||||
* \brief Description and activation class for module Commissions
|
|
||||||
*/
|
*/
|
||||||
class modCommissions extends DolibarrModules
|
class modCommissions extends DolibarrModules
|
||||||
{
|
{
|
||||||
@ -37,7 +36,7 @@ class modCommissions extends DolibarrModules
|
|||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
*/
|
*/
|
||||||
function modCommissions($db)
|
function __construct($db)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
|
|
||||||
|
|||||||
@ -25,8 +25,7 @@ include_once(DOL_DOCUMENT_ROOT ."/core/modules/DolibarrModules.class.php");
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class modMargin
|
* Class to describe module Margin
|
||||||
* \brief Description and activation class for module Margin
|
|
||||||
*/
|
*/
|
||||||
class modMargin extends DolibarrModules
|
class modMargin extends DolibarrModules
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user