FIX If we build one invoice for several orders, we must put the ref of
order on the line to not lose information. Conflicts: htdocs/commande/list.php htdocs/core/actions_massactions.inc.php
This commit is contained in:
parent
37cc5b7d35
commit
3ede626932
@ -577,6 +577,12 @@ if ($massaction == 'confirm_createbills')
|
|||||||
for ($i=0;$i<$num;$i++)
|
for ($i=0;$i<$num;$i++)
|
||||||
{
|
{
|
||||||
$desc=($lines[$i]->desc?$lines[$i]->desc:$lines[$i]->libelle);
|
$desc=($lines[$i]->desc?$lines[$i]->desc:$lines[$i]->libelle);
|
||||||
|
// If we build one invoice for several order, we must put the invoice of order on the line
|
||||||
|
if (! empty($createbills_onebythird))
|
||||||
|
{
|
||||||
|
$desc=dol_concatdesc($desc, $langs->trans("Order").' '.$cmd->ref.' - '.dol_print_date($cmd->date, 'day', $langs));
|
||||||
|
}
|
||||||
|
|
||||||
if ($lines[$i]->subprice < 0)
|
if ($lines[$i]->subprice < 0)
|
||||||
{
|
{
|
||||||
// Negative line, we create a discount line
|
// Negative line, we create a discount line
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user