Fix: Missing date start and end when creating contracts

This commit is contained in:
Laurent Destailleur 2014-01-28 15:24:30 +01:00
parent 0f32354a80
commit 1ec53873f3

View File

@ -241,8 +241,8 @@ if ($action == 'add' && $user->rights->contrat->creer)
for ($i=0;$i<$num;$i++) for ($i=0;$i<$num;$i++)
{ {
$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)
{ {
@ -286,8 +286,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,
@ -303,7 +303,6 @@ if ($action == 'add' && $user->rights->contrat->creer)
} }
} }
} }
else else
{ {