wip
This commit is contained in:
parent
15d103e957
commit
e1fb368d3a
@ -274,7 +274,7 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
$error++;
|
$error++;
|
||||||
$errmsg .= $project->error;
|
$errmsg .= $project->error;
|
||||||
} else {
|
} else {
|
||||||
var_dump($project->price_registration);
|
global $dolibarr_main_url_root;
|
||||||
if (!empty(floatval($project->price_registration))){
|
if (!empty(floatval($project->price_registration))){
|
||||||
$facture = new Facture($db);
|
$facture = new Facture($db);
|
||||||
//$facture->rowid = ;
|
//$facture->rowid = ;
|
||||||
@ -289,11 +289,14 @@ if (empty($reshook) && $action == 'add') {
|
|||||||
//$facture->fk_statut = ;
|
//$facture->fk_statut = ;
|
||||||
$facture->date = dol_now();
|
$facture->date = dol_now();
|
||||||
$resultfacture = $facture->create($user);
|
$resultfacture = $facture->create($user);
|
||||||
|
//@todo rediriger page paiement
|
||||||
|
$redirection = $dolibarr_main_url_root.'/public/payment/newpayment.php';
|
||||||
|
Header("Location: ".$redirection);
|
||||||
|
exit;
|
||||||
} else {
|
} else {
|
||||||
// No price has been set
|
// No price has been set
|
||||||
// Validating the subscription
|
// Validating the subscription
|
||||||
$confattendee->setStatut(1);
|
$confattendee->setStatut(1);
|
||||||
global $dolibarr_main_url_root;
|
|
||||||
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php';
|
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php';
|
||||||
Header("Location: ".$redirection);
|
Header("Location: ".$redirection);
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user