added description of the line in the invoice, problem with dates that are int

This commit is contained in:
Dorian Vabre 2021-04-19 09:54:29 +02:00
parent e525311142
commit 701b53773b
2 changed files with 2 additions and 1 deletions

View File

@ -101,6 +101,7 @@ MissingOrBadSecureKey = The security key is invalid or missing
EvntOrgWelcomeMessage = This form allows you to register as a new participant to the conference EvntOrgWelcomeMessage = This form allows you to register as a new participant to the conference
EvntOrgStartDuration = This conference starts on EvntOrgStartDuration = This conference starts on
EvntOrgEndDuration = and ends on EvntOrgEndDuration = and ends on
ConferenceAttendeeFee = Conference attendee fee
# #
# SubscriptionOk page # SubscriptionOk page
# #

View File

@ -331,7 +331,7 @@ if (empty($reshook) && $action == 'add') {
if (!$error) { if (!$error) {
// Add line to draft invoice // Add line to draft invoice
$vattouse = get_default_tva($mysoc, $thirdparty, $productforinvoicerow->id); $vattouse = get_default_tva($mysoc, $thirdparty, $productforinvoicerow->id);
$result = $facture->addline($label, floatval($project->price_registration), 1, $vattouse, 0, 0, $productforinvoicerow->id, 0, dol_now(), '', 0, 0, '', 'HT', 0, 1); $result = $facture->addline($langs->trans("ConferenceAttendeeFee").' for the event : \''.$conference->label.'\' occuring from '.$conference->datep.' to '.$conference->datep2, floatval($project->price_registration), 1, $vattouse, 0, 0, $productforinvoicerow->id, 0, dol_now(), '', 0, 0, '', 'HT', 0, 1);
if ($result <= 0) { if ($result <= 0) {
$confattendee->error = $facture->error; $confattendee->error = $facture->error;
$confattendee->errors = $facture->errors; $confattendee->errors = $facture->errors;