Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
2de16c3c66
@ -2352,7 +2352,7 @@ class ExpenseReport extends CommonObject
|
|||||||
$resql=$this->db->query($sql);
|
$resql=$this->db->query($sql);
|
||||||
if ($resql)
|
if ($resql)
|
||||||
{
|
{
|
||||||
$langs->load("members");
|
$langs->load("trips");
|
||||||
|
|
||||||
$response = new WorkboardResponse();
|
$response = new WorkboardResponse();
|
||||||
if ($option == 'toapprove')
|
if ($option == 'toapprove')
|
||||||
@ -2409,7 +2409,7 @@ class ExpenseReport extends CommonObject
|
|||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
//Only valid members
|
// Only valid expenses reports
|
||||||
if ($option == 'toapprove' && $this->status != 2) return false;
|
if ($option == 'toapprove' && $this->status != 2) return false;
|
||||||
if ($option == 'topay' && $this->status != 5) return false;
|
if ($option == 'topay' && $this->status != 5) return false;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user