Merge branch '3.5' of git@github.com:Dolibarr/dolibarr.git into 3.5
Conflicts: ChangeLog
This commit is contained in:
commit
f0d4ebe417
@ -26,6 +26,7 @@ Fix: list event view lost type event filter.
|
|||||||
Fix: Add code save on create event.
|
Fix: Add code save on create event.
|
||||||
Fix: SQL injection.
|
Fix: SQL injection.
|
||||||
Fix: [ bug #1589 ] Menu type in "Edit menu" page is not translated
|
Fix: [ bug #1589 ] Menu type in "Edit menu" page is not translated
|
||||||
|
Fix: [ bug #1591 ] Linked object block shows Total HT/TTC even if not having permission to read them
|
||||||
|
|
||||||
***** ChangeLog for 3.5.4 compared to 3.5.3 *****
|
***** ChangeLog for 3.5.4 compared to 3.5.3 *****
|
||||||
Fix: Hide title of event when agenda module disabled.
|
Fix: Hide title of event when agenda module disabled.
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -27,6 +28,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -52,17 +55,23 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<a href="<?php echo DOL_URL_ROOT.'/comm/propal.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowPropal"),"propal").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/comm/propal.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowPropal"),"propal").' '.$object->ref; ?></a></td>
|
||||||
<td><?php echo $object->ref_client; ?></td>
|
<td><?php echo $object->ref_client; ?></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->propale->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="3"><?php echo $langs->trans('TotalHT'); ?></td>
|
<td align="left" colspan="3"><?php echo $langs->trans('TotalHT'); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->propale->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -22,6 +23,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -47,17 +50,23 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<tr <?php echo $GLOBALS['bc'][$var]; ?> ><td>
|
<tr <?php echo $GLOBALS['bc'][$var]; ?> ><td>
|
||||||
<a href="<?php echo DOL_URL_ROOT.'/commande/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowOrder"),"order").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/commande/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowOrder"),"order").' '.$object->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->commande->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="2"><?php echo $langs->trans('TotalHT'); ?></td>
|
<td align="left" colspan="2"><?php echo $langs->trans('TotalHT'); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->commande->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2013 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -22,6 +23,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -47,16 +50,22 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<tr <?php echo $GLOBALS['bc'][$var]; ?> ><td>
|
<tr <?php echo $GLOBALS['bc'][$var]; ?> ><td>
|
||||||
<a href="<?php echo DOL_URL_ROOT.'/compta/facture.php?facid='.$object->id ?>"><?php echo img_object($langs->trans("ShowBill"),"bill").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/compta/facture.php?facid='.$object->id ?>"><?php echo img_object($langs->trans("ShowBill"),"bill").' '.$object->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->facture->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="2"><?php echo $langs->trans("TotalHT"); ?></td>
|
<td align="left" colspan="2"><?php echo $langs->trans("TotalHT"); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->facture->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -21,6 +22,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -47,17 +50,23 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<a href="<?php echo DOL_URL_ROOT.'/expedition/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowShipping"),"sending").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/expedition/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowShipping"),"sending").' '.$object->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date_creation,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date_creation,'day'); ?></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date_delivery,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date_delivery,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->expedition->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="3"><?php echo $langs->trans('TotalHT'); ?></td>
|
<td align="left" colspan="3"><?php echo $langs->trans('TotalHT'); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->expedition->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -21,6 +22,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -44,17 +47,23 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<tr <?php echo $bc[$var]; ?> ><td>
|
<tr <?php echo $bc[$var]; ?> ><td>
|
||||||
<a href="<?php echo DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowOrder"),"order").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/fourn/commande/fiche.php?id='.$object->id ?>"><?php echo img_object($langs->trans("ShowOrder"),"order").' '.$object->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->fournisseur->commande->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="2"><?php echo $langs->trans('TotalHT'); ?></td>
|
<td align="left" colspan="2"><?php echo $langs->trans('TotalHT'); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->fournisseur->commande->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
/* Copyright (C) 2010-2011 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
|
* Copyright (C) 2014 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
|
||||||
@ -21,6 +22,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
global $user;
|
||||||
|
|
||||||
$langs = $GLOBALS['langs'];
|
$langs = $GLOBALS['langs'];
|
||||||
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
$linkedObjectBlock = $GLOBALS['linkedObjectBlock'];
|
||||||
|
|
||||||
@ -45,16 +48,22 @@ foreach($linkedObjectBlock as $object)
|
|||||||
<tr <?php echo $bc[$var]; ?> ><td>
|
<tr <?php echo $bc[$var]; ?> ><td>
|
||||||
<a href="<?php echo DOL_URL_ROOT.'/fourn/facture/fiche.php?facid='.$object->id ?>"><?php echo img_object($langs->trans("ShowBill"),"bill").' '.$object->ref; ?></a></td>
|
<a href="<?php echo DOL_URL_ROOT.'/fourn/facture/fiche.php?facid='.$object->id ?>"><?php echo img_object($langs->trans("ShowBill"),"bill").' '.$object->ref; ?></a></td>
|
||||||
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
<td align="center"><?php echo dol_print_date($object->date,'day'); ?></td>
|
||||||
<td align="right"><?php echo price($object->total_ht); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->fournisseur->facture->lire) {
|
||||||
|
$total = $total + $object->total_ht;
|
||||||
|
echo price($object->total_ht);
|
||||||
|
} ?></td>
|
||||||
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
<td align="right"><?php echo $object->getLibStatut(3); ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
$total = $total + $object->total_ht;
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr class="liste_total">
|
<tr class="liste_total">
|
||||||
<td align="left" colspan="2"><?php echo $langs->trans("TotalHT"); ?></td>
|
<td align="left" colspan="2"><?php echo $langs->trans("TotalHT"); ?></td>
|
||||||
<td align="right"><?php echo price($total); ?></td>
|
<td align="right"><?php
|
||||||
|
if ($user->rights->fournisseur->facture->lire) {
|
||||||
|
echo price($total);
|
||||||
|
} ?></td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user