mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
NEW : Deposit invoice more explicit in invocie line description
This commit is contained in:
@@ -1105,8 +1105,17 @@ if (empty($reshook))
|
|||||||
|
|
||||||
foreach ($amountdeposit as $tva => $amount)
|
foreach ($amountdeposit as $tva => $amount)
|
||||||
{
|
{
|
||||||
|
$arraylist = array('amount' => 'FixAmount','variable' => 'VarAmount');
|
||||||
|
$descline = $langs->trans('Deposit');
|
||||||
|
$descline.= ' - '.$langs->trans($arraylist[$typeamount]);
|
||||||
|
if ($typeamount=='amount') {
|
||||||
|
$descline.= ' ('. price($valuedeposit, '', $langs, 0, - 1, - 1, (!empty($object->multicurrency_code) ? $object->multicurrency_code : $conf->currency)).')';
|
||||||
|
} elseif ($typeamount=='variable') {
|
||||||
|
$descline.= ' ('. $valuedeposit.'%)';
|
||||||
|
}
|
||||||
|
$descline.= ' - '.$srcobject->ref;
|
||||||
$result = $object->addline(
|
$result = $object->addline(
|
||||||
$langs->trans('Deposit'),
|
$descline,
|
||||||
$amount, // subprice
|
$amount, // subprice
|
||||||
1, // quantity
|
1, // quantity
|
||||||
$tva, // vat rate
|
$tva, // vat rate
|
||||||
@@ -1128,8 +1137,8 @@ if (empty($reshook))
|
|||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
0,
|
0
|
||||||
$langs->trans('Deposit')
|
//,$langs->trans('Deposit') //Deprecated
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user