';
print ' ';
@@ -2179,13 +2250,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print ''.$langs->trans("PriceBase").' ';
print ''.$langs->trans("DefaultTaxRate").' ';
print ''.$langs->trans("HT").' ';
+ print ''.$langs->trans("TTC").' ';
if ($mysoc->localtax1_assuj == "1" || $mysoc->localtax2_assuj == "1") {
- //print '' . $langs->trans("INCVATONLY") . ' ';
print ''.$langs->trans("INCT").' ';
- } else {
- print ''.$langs->trans("TTC").' ';
}
-
print ''.$langs->trans("MinPrice").' '.$langs->trans("HT").' ';
print ''.$langs->trans("MinPrice").' '.$langs->trans("TTC").' ';
print ''.$langs->trans("ChangedBy").' ';
@@ -2199,7 +2267,7 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
$pu = $object->price_ttc;
}
- // Local tax is not saved into table of product. We use value linked to VAT code.
+ // Local tax was not saved into table llx_product on old version. So we will use value linked to VAT code.
$localtaxarray = getLocalTaxesFromRate($object->tva_tx.($object->default_vat_code ? ' ('.$object->default_vat_code.')' : ''), 0, $mysoc, $mysoc);
// Define part of HT, VAT, TTC
$resultarray = calcul_price_total(1, $pu, 0, $object->tva_tx, 1, 1, 0, $object->price_base_type, $object->recuperableonly, $object->type, $mysoc, $localtaxarray);
@@ -2237,14 +2305,12 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print ''.price($object->price)." ";
+ print ''.price($object->price_ttc)." ";
if ($mysoc->localtax1_assuj == "1" || $mysoc->localtax2_assuj == "1") {
//print '' . price($object->price_ttc) . " ";
print ''.price($resultarray[2]).' ';
- } else {
- print ''.price($object->price_ttc)." ";
}
-
print ''.price($object->price_min).' ';
print ''.price($object->price_min_ttc).' ';
print '';
@@ -2315,11 +2381,10 @@ if (!empty($conf->global->PRODUIT_CUSTOMER_PRICES)) {
print " ";
print ''.price($line->price)." ";
+ print ''.price($line->price_ttc)." ";
if ($mysoc->localtax1_assuj == "1" || $mysoc->localtax2_assuj == "1") {
//print '' . price($line->price_ttc) . " ";
print ''.price($resultarray[2]).' ';
- } else {
- print ''.price($line->price_ttc)." ";
}
print ''.price($line->price_min).' ';
diff --git a/htdocs/projet/class/task.class.php b/htdocs/projet/class/task.class.php
index 9decf78f55a..10d4afcd9a7 100644
--- a/htdocs/projet/class/task.class.php
+++ b/htdocs/projet/class/task.class.php
@@ -920,6 +920,7 @@ class Task extends CommonObjectLine
// Add where from extra fields
$extrafieldsobjectkey = 'projet_task';
$extrafieldsobjectprefix = 'efpt.';
+ global $db; // needed for extrafields_list_search_sql.tpl
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_sql.tpl.php';
// Add where from hooks
$parameters = array();
diff --git a/htdocs/public/eventorganization/attendee_new.php b/htdocs/public/eventorganization/attendee_new.php
index a7cdd1ceda8..70bad2a31dc 100644
--- a/htdocs/public/eventorganization/attendee_new.php
+++ b/htdocs/public/eventorganization/attendee_new.php
@@ -262,6 +262,7 @@ if (empty($reshook) && $action == 'add' && (!empty($conference->id) && $conferen
$confattendee->fk_project = $project->id;
$confattendee->fk_actioncomm = $id;
$confattendee->note_public = $note_public;
+
$resultconfattendee = $confattendee->create($user);
if ($resultconfattendee < 0) {
$error++;
@@ -277,7 +278,7 @@ if (empty($reshook) && $action == 'add' && (!empty($conference->id) && $conferen
$securekeyurl = dol_hash($conf->global->EVENTORGANIZATION_SECUREKEY.'conferenceorbooth'.$id, 'master');
$redirection = $dolibarr_main_url_root.'/public/eventorganization/subscriptionok.php?id='.((int) $id).'&securekey='.urlencode($securekeyurl);
- $mesg = $langs->trans("RegistrationAndPaymentWereAlreadyRecorder", $email);
+ $mesg = $langs->trans("RegistrationAndPaymentWereAlreadyRecorded", $email);
setEventMessages($mesg, null, 'mesgs');
$db->commit();
diff --git a/htdocs/public/payment/paymentok.php b/htdocs/public/payment/paymentok.php
index 43ee8889131..c03aeb4b526 100644
--- a/htdocs/public/payment/paymentok.php
+++ b/htdocs/public/payment/paymentok.php
@@ -1267,7 +1267,7 @@ if ($ispaymentok) {
$outputlangs = new Translate('', $conf);
$outputlangs->setDefaultLang(empty($thirdparty->default_lang) ? $mysoc->default_lang : $thirdparty->default_lang);
// Load traductions files required by page
- $outputlangs->loadLangs(array("main", "members"));
+ $outputlangs->loadLangs(array("main", "members", "eventorganization"));
// Get email content from template
$arraydefaultmessage = null;
@@ -1298,7 +1298,22 @@ if ($ispaymentok) {
$ishtml = dol_textishtml($texttosend); // May contain urls
- $mailfile = new CMailFile($subjecttosend, $sendto, $from, $texttosend, array(), array(), array(), '', '', 0, $ishtml);
+ // Attach a file ?
+ $file = '';
+ $listofpaths = array();
+ $listofnames = array();
+ $listofmimes = array();
+ if (is_object($object)) {
+ $invoicediroutput = $conf->facture->dir_output;
+ $fileparams = dol_most_recent_file($invoicediroutput.'/'.$object->ref, preg_quote($object->ref, '/').'[^\-]+');
+ $file = $fileparams['fullname'];
+
+ $listofpaths = array($file);
+ $listofnames = array(basename($file));
+ $listofmimes = array(dol_mimetype($file));
+ }
+
+ $mailfile = new CMailFile($subjecttosend, $sendto, $from, $texttosend, $listofpaths, $listofmimes, $listofnames, '', '', 0, $ishtml);
$result = $mailfile->sendfile();
if ($result) {
@@ -1456,7 +1471,7 @@ if ($ispaymentok) {
$outputlangs = new Translate('', $conf);
$outputlangs->setDefaultLang(empty($thirdparty->default_lang) ? $mysoc->default_lang : $thirdparty->default_lang);
// Load traductions files required by page
- $outputlangs->loadLangs(array("main", "members"));
+ $outputlangs->loadLangs(array("main", "members", "eventorganization"));
// Get email content from template
$arraydefaultmessage = null;
diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php
index 3deab1e2ed8..3f077255a1c 100644
--- a/htdocs/salaries/card.php
+++ b/htdocs/salaries/card.php
@@ -554,7 +554,7 @@ if ($action == 'create') {
print ' ';
print $form->editfieldkey('Amount', 'amount', '', $object, 0, 'string', '', 1).' ';
print ' ';
- print ''.$langs->trans('UpdateAmountWithLastSalary').'';
+ print ''.$langs->trans('UpdateAmountWithLastSalary').'';
print ' ';
print ' ';