Merge branch '3.9' of git@github.com:Dolibarr/dolibarr.git into 3.9
This commit is contained in:
commit
d5f221452e
@ -57,6 +57,9 @@ if ($action == 'add_payment')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$expensereport = new ExpenseReport($db);
|
||||||
|
$expensereport->fetch($chid);
|
||||||
|
|
||||||
$datepaid = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
$datepaid = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
||||||
|
|
||||||
if (! $_POST["fk_typepayment"] > 0)
|
if (! $_POST["fk_typepayment"] > 0)
|
||||||
@ -85,8 +88,7 @@ if ($action == 'add_payment')
|
|||||||
{
|
{
|
||||||
if (substr($key,0,7) == 'amount_')
|
if (substr($key,0,7) == 'amount_')
|
||||||
{
|
{
|
||||||
$other_chid = substr($key,7);
|
$amounts[$expensereport->fk_user_author] = price2num($_POST[$key]);
|
||||||
$amounts[$other_chid] = price2num($_POST[$key]);
|
|
||||||
$total += price2num($_POST[$key]);
|
$total += price2num($_POST[$key]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user