Skip to content
Snippets Groups Projects
Commit 954cd74f authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Missing date start and end when creating contracts

parent 0d0fda8f
No related branches found
No related tags found
No related merge requests found
...@@ -246,7 +246,7 @@ if ($action == 'add' && $user->rights->contrat->creer) ...@@ -246,7 +246,7 @@ if ($action == 'add' && $user->rights->contrat->creer)
{ {
$product_type=($lines[$i]->product_type?$lines[$i]->product_type:0); $product_type=($lines[$i]->product_type?$lines[$i]->product_type:0);
if ($product_type == 1) { //only services if ($product_type == 1) { //only services // TODO Exclude also deee
// service prédéfini // service prédéfini
if ($lines[$i]->fk_product > 0) if ($lines[$i]->fk_product > 0)
{ {
...@@ -290,8 +290,8 @@ if ($action == 'add' && $user->rights->contrat->creer) ...@@ -290,8 +290,8 @@ if ($action == 'add' && $user->rights->contrat->creer)
$lines[$i]->localtax2_tx, $lines[$i]->localtax2_tx,
$lines[$i]->fk_product, $lines[$i]->fk_product,
$lines[$i]->remise_percent, $lines[$i]->remise_percent,
$date_start =0, $lines[$i]->date_start,
$date_end =0, $lines[$i]->date_end,
'HT', 'HT',
0, 0,
$lines[$i]->info_bits, $lines[$i]->info_bits,
...@@ -307,7 +307,6 @@ if ($action == 'add' && $user->rights->contrat->creer) ...@@ -307,7 +307,6 @@ if ($action == 'add' && $user->rights->contrat->creer)
} }
} }
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment