Merge remote-tracking branch 'origin/3.6' into 3.7
Conflicts: ChangeLog build/debian/changelog htdocs/commande/fiche.php htdocs/compta/facture.php
This commit is contained in:
commit
eac80d7db4
38
ChangeLog
38
ChangeLog
@ -315,9 +315,43 @@ Dolibarr better:
|
|||||||
warehouse module and your Point Of Sale module setup if you use one.
|
warehouse module and your Point Of Sale module setup if you use one.
|
||||||
- Replaced USER_UPDATE_SESSION trigger with an updateSession hook may break modules using it.
|
- Replaced USER_UPDATE_SESSION trigger with an updateSession hook may break modules using it.
|
||||||
|
|
||||||
|
|
||||||
***** ChangeLog for 3.6.5 compared to 3.6.4 *****
|
***** ChangeLog for 3.6.5 compared to 3.6.4 *****
|
||||||
- Fix: [ bug #1776 ] Undefined $deliverycompany variable in pdf_build_address
|
FIX: #2957 : missing $langs object for trigger
|
||||||
- Fix: [ bug #1794 ] Error when cloning Proposal gives error in a malformed page
|
FIX: #2983 Load gravatar avatar images securely over HTTPS
|
||||||
|
FIX: #3009: Better filtering to prevent SQL injection
|
||||||
|
FIX: #3841 creation of a task completed has not status set to finished by default
|
||||||
|
FIX: #3890 Expected transactions bank account page, shows negative numbers
|
||||||
|
FIX: #3928 Creating a Customer order and a Customer invoice from a project, does not inherit payment conditions and method of payment of customer card
|
||||||
|
FIX: bad calculation for stock value
|
||||||
|
FIX: bad stock valo
|
||||||
|
FIX: bad stock valorisation
|
||||||
|
FIX: [ bug #2893 ] Dolibarr error when viewing an invoice after changing invoice mask
|
||||||
|
FIX: button create payment hide if tax amount is less than 1
|
||||||
|
FIX: change object statut on close shipping and remove erratic db commit
|
||||||
|
FIX: change order date on clone (as everywhere else)
|
||||||
|
FIX: Close #2835 Customer prices of a product shows incorrect history order
|
||||||
|
FIX: Close #2837 Product list table column header does not match column body
|
||||||
|
FIX: Close bug #2861 Undefined variable $res when migrating from 3.6.2 to 3.7.0
|
||||||
|
FIX: Close bug #2891 Category hooks do not work
|
||||||
|
FIX: Close bug #2976: "Report" tab is the current tab but it is not marked as selected by the UI
|
||||||
|
FIX: contact country had wrong display if the country dont have translate
|
||||||
|
FIX: double db escape add too quote
|
||||||
|
FIX: End log must use same level then start log.
|
||||||
|
FIX: error in SQL due to a previous fix
|
||||||
|
FIX: event for restricted user was restricted if company null
|
||||||
|
FIX: facturestat bad sql when customer view is limited
|
||||||
|
FIX: If supplier invoice block linked element is display after other block total HT amount is not reset to 0 and sum other block (like customer orders values)
|
||||||
|
FIX: keep filter by category or by not enough stock if we switch page
|
||||||
|
FIX: no need to remove file into mail form, the temp dir will be deleted after any sending
|
||||||
|
FIX: no projet_task_time id from trigger TASK_TIMESPENT_CREATE
|
||||||
|
FIX: pmp
|
||||||
|
FIX: send mail, copy sendto don't read the list of contact
|
||||||
|
FIX: The hours of date filter aren't correct
|
||||||
|
FIX: tool export handle the type "select" extrafields and return the value instead of id
|
||||||
|
FIX: top links menu have target attribute with wrong value
|
||||||
|
FIX: total amount in tpl linked object are not reset
|
||||||
|
FIX: when multicompany was enabled, this function didn't check just on the good entity (problem when both company use same mask)
|
||||||
|
|
||||||
***** ChangeLog for 3.6.4 compared to 3.6.3 *****
|
***** ChangeLog for 3.6.4 compared to 3.6.3 *****
|
||||||
- Fix: [ bug #2893 ] Dolibarr error when viewing an invoice after changing invoice mask
|
- Fix: [ bug #2893 ] Dolibarr error when viewing an invoice after changing invoice mask
|
||||||
|
|||||||
@ -1239,6 +1239,9 @@ if ($action == 'create' && $user->rights->commande->creer) {
|
|||||||
if ($socid > 0)
|
if ($socid > 0)
|
||||||
$res = $soc->fetch($socid);
|
$res = $soc->fetch($socid);
|
||||||
|
|
||||||
|
$projectid = 0;
|
||||||
|
$remise_absolue = 0;
|
||||||
|
|
||||||
if (! empty($origin) && ! empty($originid)) {
|
if (! empty($origin) && ! empty($originid)) {
|
||||||
// Parse element/subelement (ex: project_task)
|
// Parse element/subelement (ex: project_task)
|
||||||
$element = $subelement = $origin;
|
$element = $subelement = $origin;
|
||||||
@ -1249,6 +1252,19 @@ if ($action == 'create' && $user->rights->commande->creer) {
|
|||||||
|
|
||||||
if ($element == 'project') {
|
if ($element == 'project') {
|
||||||
$projectid = $originid;
|
$projectid = $originid;
|
||||||
|
|
||||||
|
if (!$cond_reglement_id) {
|
||||||
|
$cond_reglement_id = $soc->cond_reglement_id;
|
||||||
|
}
|
||||||
|
if (!$mode_reglement_id) {
|
||||||
|
$mode_reglement_id = $soc->mode_reglement_id;
|
||||||
|
}
|
||||||
|
if (!$remise_percent) {
|
||||||
|
$remise_percent = $soc->remise_percent;
|
||||||
|
}
|
||||||
|
if (!$dateorder) {
|
||||||
|
// Do not set 0 here (0 for a date is 1970)
|
||||||
|
$dateorder = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE_ODER)?-1:''):$dateorder);
|
||||||
} else {
|
} else {
|
||||||
// For compatibility
|
// For compatibility
|
||||||
if ($element == 'order' || $element == 'commande') {
|
if ($element == 'order' || $element == 'commande') {
|
||||||
@ -1492,9 +1508,23 @@ if ($action == 'create' && $user->rights->commande->creer) {
|
|||||||
print '<input type="hidden" name="origin" value="' . $objectsrc->element . '">';
|
print '<input type="hidden" name="origin" value="' . $objectsrc->element . '">';
|
||||||
print '<input type="hidden" name="originid" value="' . $objectsrc->id . '">';
|
print '<input type="hidden" name="originid" value="' . $objectsrc->id . '">';
|
||||||
|
|
||||||
$newclassname = $classname;
|
switch ($classname) {
|
||||||
if ($newclassname == 'Propal')
|
case 'Propal':
|
||||||
$newclassname = 'CommercialProposal';
|
$newclassname = 'CommercialProposal';
|
||||||
|
break;
|
||||||
|
case 'Commande':
|
||||||
|
$newclassname = 'Order';
|
||||||
|
break;
|
||||||
|
case 'Expedition':
|
||||||
|
$newclassname = 'Sending';
|
||||||
|
break;
|
||||||
|
case 'Contrat':
|
||||||
|
$newclassname = 'Contract';
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
$newclassname = $classname;
|
||||||
|
}
|
||||||
|
|
||||||
print '<tr><td>' . $langs->trans($newclassname) . '</td><td colspan="2">' . $objectsrc->getNomUrl(1) . '</td></tr>';
|
print '<tr><td>' . $langs->trans($newclassname) . '</td><td colspan="2">' . $objectsrc->getNomUrl(1) . '</td></tr>';
|
||||||
print '<tr><td>' . $langs->trans('TotalHT') . '</td><td colspan="2">' . price($objectsrc->total_ht) . '</td></tr>';
|
print '<tr><td>' . $langs->trans('TotalHT') . '</td><td colspan="2">' . price($objectsrc->total_ht) . '</td></tr>';
|
||||||
print '<tr><td>' . $langs->trans('TotalVAT') . '</td><td colspan="2">' . price($objectsrc->total_tva) . "</td></tr>";
|
print '<tr><td>' . $langs->trans('TotalVAT') . '</td><td colspan="2">' . price($objectsrc->total_tva) . "</td></tr>";
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copytight (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copytight (C) 2005-2009 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2008-2009 Laurent Destailleur (Eldy) <eldy@users.sourceforge.net>
|
* Copyright (C) 2008-2009 Laurent Destailleur (Eldy) <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
* Copyright (C) 2008 Raphael Bertrand (Resultic) <raphael.bertrand@resultic.fr>
|
||||||
|
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -312,7 +313,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"])
|
|||||||
print "</td>";
|
print "</td>";
|
||||||
print "<td>".$ref."</td>";
|
print "<td>".$ref."</td>";
|
||||||
print "<td>".$refcomp."</td>";
|
print "<td>".$refcomp."</td>";
|
||||||
if ($obj->total_ttc < 0) { print "<td align=\"right\">".price($total_ttc)."</td><td> </td>"; };
|
if ($obj->total_ttc < 0) { print "<td align=\"right\">".price(abs($total_ttc))."</td><td> </td>"; };
|
||||||
if ($obj->total_ttc >= 0) { print "<td> </td><td align=\"right\">".price($total_ttc)."</td>"; };
|
if ($obj->total_ttc >= 0) { print "<td> </td><td align=\"right\">".price($total_ttc)."</td>"; };
|
||||||
print '<td align="right">'.price($solde).'</td>';
|
print '<td align="right">'.price($solde).'</td>';
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|||||||
@ -1743,6 +1743,8 @@ if ($action == 'create')
|
|||||||
$res = $soc->fetch($socid);
|
$res = $soc->fetch($socid);
|
||||||
|
|
||||||
// Load objectsrc
|
// Load objectsrc
|
||||||
|
$remise_absolue = 0;
|
||||||
|
|
||||||
if (! empty($origin) && ! empty($originid))
|
if (! empty($origin) && ! empty($originid))
|
||||||
{
|
{
|
||||||
// Parse element/subelement (ex: project_task)
|
// Parse element/subelement (ex: project_task)
|
||||||
@ -1754,6 +1756,20 @@ if ($action == 'create')
|
|||||||
|
|
||||||
if ($element == 'project') {
|
if ($element == 'project') {
|
||||||
$projectid = $originid;
|
$projectid = $originid;
|
||||||
|
|
||||||
|
if (!$cond_reglement_id) {
|
||||||
|
$cond_reglement_id = $soc->cond_reglement_id;
|
||||||
|
}
|
||||||
|
if (!$mode_reglement_id) {
|
||||||
|
$mode_reglement_id = $soc->mode_reglement_id;
|
||||||
|
}
|
||||||
|
if (!$remise_percent) {
|
||||||
|
$remise_percent = $soc->remise_percent;
|
||||||
|
}
|
||||||
|
if (!$dateinvoice) {
|
||||||
|
// Do not set 0 here (0 for a date is 1970)
|
||||||
|
$dateinvoice = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:''):$dateinvoice);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// For compatibility
|
// For compatibility
|
||||||
if ($element == 'order' || $element == 'commande') {
|
if ($element == 'order' || $element == 'commande') {
|
||||||
@ -1798,7 +1814,6 @@ if ($action == 'create')
|
|||||||
$objectsrc->fetch_optionals($originid);
|
$objectsrc->fetch_optionals($originid);
|
||||||
$object->array_options = $objectsrc->array_options;
|
$object->array_options = $objectsrc->array_options;
|
||||||
}
|
}
|
||||||
$dateinvoice = empty($conf->global->MAIN_AUTOFILL_DATE) ? -1 : ''; // Dot not set 0 here (0 for a date is 1970)
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -1809,6 +1824,7 @@ if ($action == 'create')
|
|||||||
$remise_absolue = 0;
|
$remise_absolue = 0;
|
||||||
$dateinvoice = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:''):$dateinvoice); // Do not set 0 here (0 for a date is 1970)
|
$dateinvoice = (empty($dateinvoice)?(empty($conf->global->MAIN_AUTOFILL_DATE)?-1:''):$dateinvoice); // Do not set 0 here (0 for a date is 1970)
|
||||||
}
|
}
|
||||||
|
|
||||||
$absolute_discount = $soc->getAvailableDiscounts();
|
$absolute_discount = $soc->getAvailableDiscounts();
|
||||||
|
|
||||||
if (! empty($conf->use_javascript_ajax))
|
if (! empty($conf->use_javascript_ajax))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user