Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0
This commit is contained in:
commit
4f350d878c
@ -4606,6 +4606,9 @@ class OrderLine extends CommonOrderLine
|
||||
if (empty($this->remise_percent)) {
|
||||
$this->remise_percent = 0;
|
||||
}
|
||||
if (empty($this->remise)) {
|
||||
$this->remise = 0;
|
||||
}
|
||||
if (empty($this->info_bits)) {
|
||||
$this->info_bits = 0;
|
||||
}
|
||||
|
||||
@ -8027,7 +8027,7 @@ function getCommonSubstitutionArray($outputlangs, $onlykey = 0, $exclude = null,
|
||||
$substitutionarray['__AMOUNT_TEXT__'] = is_object($object) ? dol_convertToWord($object->total_ttc, $outputlangs, '', true) : '';
|
||||
$substitutionarray['__AMOUNT_TEXTCURRENCY__'] = is_object($object) ? dol_convertToWord($object->total_ttc, $outputlangs, $conf->currency, true) : '';
|
||||
|
||||
$substitutionarray['__AMOUNT_REMAIN__'] = is_object($object) ? $object->total_ttc - $already_payed_all : '';
|
||||
$substitutionarray['__AMOUNT_REMAIN__'] = is_object($object) ? price2num($object->total_ttc - $already_payed_all, 'MT') : '';
|
||||
|
||||
$substitutionarray['__AMOUNT_VAT__'] = is_object($object) ? (isset($object->total_vat) ? $object->total_vat : $object->total_tva) : '';
|
||||
$substitutionarray['__AMOUNT_VAT_TEXT__'] = is_object($object) ? (isset($object->total_vat) ? dol_convertToWord($object->total_vat, $outputlangs, '', true) : dol_convertToWord($object->total_tva, $outputlangs, '', true)) : '';
|
||||
|
||||
@ -832,7 +832,7 @@ class pdf_espadon extends ModelePdfExpedition
|
||||
$totalToShip = $tmparray['toship'];
|
||||
// Set trueVolume and volume_units not currently stored into database
|
||||
if ($object->trueWidth && $object->trueHeight && $object->trueDepth) {
|
||||
$object->trueVolume = price(($object->trueWidth * $object->trueHeight * $object->trueDepth), 0, $outputlangs, 0, 0);
|
||||
$object->trueVolume = $object->trueWidth * $object->trueHeight * $object->trueDepth;
|
||||
$object->volume_units = $object->size_units * 3;
|
||||
}
|
||||
|
||||
|
||||
@ -1331,7 +1331,7 @@ class FactureFournisseurRec extends CommonInvoice
|
||||
// We refresh the object in order to have all necessary data (like date_lim_reglement)
|
||||
$new_fac_fourn->fetch($new_fac_fourn->id);
|
||||
$result = $new_fac_fourn->generateDocument($facturerec->model_pdf, $langs);
|
||||
if ($result <= 0) {
|
||||
if ($result < 0) {
|
||||
$this->errors = $new_fac_fourn->errors;
|
||||
$this->error = $new_fac_fourn->error;
|
||||
$error++;
|
||||
|
||||
@ -174,7 +174,7 @@ if (!empty($_SESSION['ipaddress'])) { // To avoid to make action twice
|
||||
$companylangs->setDefaultLang($mysoc->default_lang);
|
||||
$companylangs->loadLangs(array('main', 'members', 'bills', 'paypal', 'paybox'));
|
||||
|
||||
$from = $conf->global->MAILING_EMAIL_FROM;
|
||||
$from = !empty($conf->global->MAILING_EMAIL_FROM) ? $conf->global->MAILING_EMAIL_FROM : getDolGlobalString("MAIN_MAIL_EMAIL_FROM");
|
||||
$sendto = $sendemail;
|
||||
|
||||
$urlback = $_SERVER["REQUEST_URI"];
|
||||
|
||||
@ -1314,7 +1314,9 @@ if ($ispaymentok) {
|
||||
if ($attendeetovalidate->email_company && $attendeetovalidate->email_company != $thirdparty->email) {
|
||||
$cc = ($cc ? ', ' : '').$attendeetovalidate->email_company;
|
||||
}
|
||||
$from = $conf->global->MAILING_EMAIL_FROM;
|
||||
|
||||
$from = !empty($conf->global->MAILING_EMAIL_FROM) ? $conf->global->MAILING_EMAIL_FROM : getDolGlobalString("MAIN_MAIL_EMAIL_FROM");
|
||||
|
||||
$urlback = $_SERVER["REQUEST_URI"];
|
||||
|
||||
$ishtml = dol_textishtml($texttosend); // May contain urls
|
||||
@ -1611,7 +1613,7 @@ if ($ispaymentok) {
|
||||
$companylangs->loadLangs(array('main', 'members', 'bills', 'paypal', 'paybox'));
|
||||
|
||||
$sendto = $sendemail;
|
||||
$from = $conf->global->MAILING_EMAIL_FROM;
|
||||
$from = !empty($conf->global->MAILING_EMAIL_FROM) ? $conf->global->MAILING_EMAIL_FROM : getDolGlobalString("MAIN_MAIL_EMAIL_FROM");
|
||||
// Define $urlwithroot
|
||||
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
||||
$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
|
||||
@ -1739,7 +1741,7 @@ if ($ispaymentok) {
|
||||
$companylangs->loadLangs(array('main', 'members', 'bills', 'paypal', 'paybox'));
|
||||
|
||||
$sendto = $sendemail;
|
||||
$from = $conf->global->MAILING_EMAIL_FROM;
|
||||
$from = !empty($conf->global->MAILING_EMAIL_FROM) ? $conf->global->MAILING_EMAIL_FROM : getDolGlobalString("MAIN_MAIL_EMAIL_FROM");
|
||||
// Define $urlwithroot
|
||||
$urlwithouturlroot = preg_replace('/'.preg_quote(DOL_URL_ROOT, '/').'$/i', '', trim($dolibarr_main_url_root));
|
||||
$urlwithroot = $urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
|
||||
|
||||
Loading…
Reference in New Issue
Block a user