Fix: manquait des valeurs à l'appel de addligne

This commit is contained in:
Regis Houssin 2007-11-13 13:38:21 +00:00
parent 9715f84e1f
commit 10b17e02c2
2 changed files with 7 additions and 1 deletions

View File

@ -536,7 +536,7 @@ elseif ($_GET["id"] > 0)
print '</td></tr></table>'; print '</td></tr></table>';
print '<td>'; print '<td>';
print $langs->trans("NoProject").'&nbsp;&nbsp;'; print $langs->trans("NoProject").'&nbsp;&nbsp;';
if ($fichinter->brouillon) print '<a href=../projet/fiche.php?socid='.$societe->id.'&action=create>'.$langs->trans('AddProject').'</a>'; if ($fichinter->brouillon) print '<a class="butAction" href=../projet/fiche.php?socid='.$societe->id.'&action=create>'.$langs->trans('AddProject').'</a>';
print '</td>'; print '</td>';
} }
else else

View File

@ -409,6 +409,8 @@ if ($_POST["action"] == 'addincommande')
$tva_tx, $tva_tx,
$prod->id, $prod->id,
$_POST["remise_percent"], $_POST["remise_percent"],
'',
'', //Todo: voir si fk_remise_except est encore valable car n'apparait plus dans les propales
$price_base_type, $price_base_type,
$pu_ttc $pu_ttc
); );
@ -487,6 +489,10 @@ if ($_POST["action"] == 'addinfacture' && $user->rights->facture->creer)
$tva_tx, $tva_tx,
$prod->id, $prod->id,
$_POST["remise_percent"], $_POST["remise_percent"],
'',
'',
'',
'',
$price_base_type, $price_base_type,
$pu_ttc $pu_ttc
); );