Merge branch '8.0' of https://github.com/Dolibarr/dolibarr.git into 8.0_bug
This commit is contained in:
commit
6e7562b6a6
@ -219,7 +219,9 @@ class Adherent extends CommonObject
|
|||||||
|
|
||||||
// Substitutions
|
// Substitutions
|
||||||
$substitutionarray=array(
|
$substitutionarray=array(
|
||||||
'__CIVILITY__'=>$this->getCivilityLabel(),
|
'__ID__'=>$this->id,
|
||||||
|
'__MEMBER_ID__'=>$this->id,
|
||||||
|
'__CIVILITY__'=>$this->getCivilityLabel(),
|
||||||
'__FIRSTNAME__'=>$msgishtml?dol_htmlentitiesbr($this->firstname):$this->firstname,
|
'__FIRSTNAME__'=>$msgishtml?dol_htmlentitiesbr($this->firstname):$this->firstname,
|
||||||
'__LASTNAME__'=>$msgishtml?dol_htmlentitiesbr($this->lastname):$this->lastname,
|
'__LASTNAME__'=>$msgishtml?dol_htmlentitiesbr($this->lastname):$this->lastname,
|
||||||
'__FULLNAME__'=>$msgishtml?dol_htmlentitiesbr($this->getFullName($langs)):$this->getFullName($langs),
|
'__FULLNAME__'=>$msgishtml?dol_htmlentitiesbr($this->getFullName($langs)):$this->getFullName($langs),
|
||||||
|
|||||||
@ -347,7 +347,7 @@ if ($user->rights->adherent->cotisation->creer && $action == 'subscription' && !
|
|||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
// Send confirmation Email
|
// Send confirmation Email
|
||||||
if ($object->email && $sendalsoemail)
|
if ($object->email && $sendalsoemail) // $object is 'Adherent'
|
||||||
{
|
{
|
||||||
$subject = '';
|
$subject = '';
|
||||||
$msg= '';
|
$msg= '';
|
||||||
|
|||||||
@ -211,8 +211,7 @@ class Facturation
|
|||||||
$total_localtax1 = 0;
|
$total_localtax1 = 0;
|
||||||
$total_localtax2 = 0;
|
$total_localtax2 = 0;
|
||||||
|
|
||||||
$tab=array();
|
$tab = (! empty($_SESSION['poscart'])?$_SESSION['poscart']:array());
|
||||||
$tab = $_SESSION['poscart'];
|
|
||||||
|
|
||||||
$tab_size=count($tab);
|
$tab_size=count($tab);
|
||||||
for($i=0;$i < $tab_size;$i++)
|
for($i=0;$i < $tab_size;$i++)
|
||||||
|
|||||||
@ -41,6 +41,8 @@ if ( $_SESSION['uid'] > 0 )
|
|||||||
$usertxt=GETPOST('user','',1);
|
$usertxt=GETPOST('user','',1);
|
||||||
$err=GETPOST("err");
|
$err=GETPOST("err");
|
||||||
|
|
||||||
|
// Instantiate hooks of thirdparty module only if not already define
|
||||||
|
$hookmanager->initHooks(array('cashdeskloginpage'));
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* View
|
* View
|
||||||
@ -51,6 +53,15 @@ $formproduct=new FormProduct($db);
|
|||||||
|
|
||||||
$arrayofcss=array('/cashdesk/css/style.css');
|
$arrayofcss=array('/cashdesk/css/style.css');
|
||||||
top_htmlhead('','',0,0,'',$arrayofcss);
|
top_htmlhead('','',0,0,'',$arrayofcss);
|
||||||
|
|
||||||
|
// Execute hook getLoginPageOptions (for table)
|
||||||
|
$parameters=array('entity' => GETPOST('entity','int'));
|
||||||
|
$reshook = $hookmanager->executeHooks('getLoginPageOptions',$parameters); // Note that $action and $object may have been modified by some hooks.
|
||||||
|
if (is_array($hookmanager->resArray) && ! empty($hookmanager->resArray)) {
|
||||||
|
$morelogincontent = $hookmanager->resArray; // (deprecated) For compatibility
|
||||||
|
} else {
|
||||||
|
$morelogincontent = $hookmanager->resPrint;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
@ -92,6 +103,24 @@ else
|
|||||||
<td><input name="pwdPassword" class="texte_login" type="password" value="" /></td>
|
<td><input name="pwdPassword" class="texte_login" type="password" value="" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if (! empty($morelogincontent)) {
|
||||||
|
if (is_array($morelogincontent)) {
|
||||||
|
foreach ($morelogincontent as $format => $option)
|
||||||
|
{
|
||||||
|
if ($format == 'table') {
|
||||||
|
echo '<!-- Option by hook -->';
|
||||||
|
echo $option;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo '<!-- Option by hook -->';
|
||||||
|
echo $morelogincontent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
|
|
||||||
|
|||||||
@ -46,8 +46,7 @@ $societe = new Societe($db);
|
|||||||
$societe->fetch($thirdpartyid);
|
$societe->fetch($thirdpartyid);
|
||||||
/** end add Ditto */
|
/** end add Ditto */
|
||||||
|
|
||||||
$tab=array();
|
$tab = (! empty($_SESSION['poscart'])?$_SESSION['poscart']:array());
|
||||||
$tab = $_SESSION['poscart'];
|
|
||||||
|
|
||||||
$tab_size=count($tab);
|
$tab_size=count($tab);
|
||||||
if ($tab_size <= 0) print '<div class="center">'.$langs->trans("NoArticle").'</div><br>';
|
if ($tab_size <= 0) print '<div class="center">'.$langs->trans("NoArticle").'</div><br>';
|
||||||
|
|||||||
@ -1695,7 +1695,7 @@ if (empty($reshook))
|
|||||||
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv('Type')), null, 'errors');
|
setEventMessages($langs->trans('ErrorFieldRequired', $langs->transnoentitiesnoconv('Type')), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
if ($prod_entry_mode == 'free' && empty($idprod) && (($price_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES)) || $price_ht == '') && $price_ht_devise == '') // Unit price can be 0 but not ''
|
if (($prod_entry_mode == 'free' && empty($idprod) && (($price_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES)) || $price_ht == '') && $price_ht_devise == '') && $object->type != Facture::TYPE_CREDIT_NOTE) // Unit price can be 0 but not ''
|
||||||
{
|
{
|
||||||
if ($price_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES))
|
if ($price_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES))
|
||||||
{
|
{
|
||||||
@ -2155,7 +2155,7 @@ if (empty($reshook))
|
|||||||
setEventMessages($langs->trans('ErrorQtyForCustomerInvoiceCantBeNegative'), null, 'errors');
|
setEventMessages($langs->trans('ErrorQtyForCustomerInvoiceCantBeNegative'), null, 'errors');
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
if (empty($productid) && (($pu_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES)) || $pu_ht == '') && $pu_ht_devise == '') // Unit price can be 0 but not ''
|
if ((empty($productid) && (($pu_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES)) || $pu_ht == '') && $pu_ht_devise == '') && $object->type != Facture::TYPE_CREDIT_NOTE) // Unit price can be 0 but not ''
|
||||||
{
|
{
|
||||||
if ($pu_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES))
|
if ($pu_ht < 0 && empty($conf->global->FACTURE_ENABLE_NEGATIVE_LINES))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -164,7 +164,7 @@ class PaymentTerm // extends CommonObject
|
|||||||
global $langs;
|
global $langs;
|
||||||
$sql = "SELECT";
|
$sql = "SELECT";
|
||||||
$sql.= " t.rowid,";
|
$sql.= " t.rowid,";
|
||||||
$sql.= " t.entity";
|
$sql.= " t.entity,";
|
||||||
|
|
||||||
$sql.= " t.code,";
|
$sql.= " t.code,";
|
||||||
$sql.= " t.sortorder,";
|
$sql.= " t.sortorder,";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user