--- /tmp/dsg/dolibarr/htdocs/reception/tpl/github_linkedobjectblock.tpl.php
+++ /tmp/dsg/dolibarr/htdocs/reception/tpl/client_linkedobjectblock.tpl.php
@@ -44,11 +44,11 @@
$total = 0; $ilink = 0;
foreach ($linkedObjectBlock as $key => $objectlink)
{
- $ilink++;
+ $ilink++;
- $trclass = 'oddeven';
- if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass .= ' liste_sub_total';
- ?>
+ $trclass = 'oddeven';
+ if ($ilink == count($linkedObjectBlock) && empty($noMoreLinkedObjectBlockAfter) && count($linkedObjectBlock) <= 1) $trclass .= ' liste_sub_total';
+ ?>
trans("Reception"); ?>
global->MAIN_ENABLE_IMPORT_LINKED_OBJECT_LINES) print '
@@ -57,27 +57,27 @@
| |
date_delivery, 'day'); ?> |
rights->reception->lire) {
- $total = $total + $objectlink->total_ht;
- echo price($objectlink->total_ht);
- } ?> |
+ if ($user->rights->reception->lire) {
+ $total = $total + $objectlink->total_ht;
+ echo price($objectlink->total_ht);
+ } ?>
getLibStatut(3); ?> |
element != 'order_supplier') {
- ?>
+ // For now, receptions must stay linked to order, so link is not deletable
+ if ($object->element != 'order_supplier') {
+ ?>
id.'&action=dellink&dellinkid='.$key; ?>">transnoentitiesnoconv("RemoveLink"), 'unlink'); ?>
+ }
+ ?>
|
1)
{
- ?>
+ ?>
trans("Total"); ?> |
|