--- /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/github_19.0.3_card_create.tpl.php
+++ /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/client_card_create.tpl.php
@@ -20 +20,2 @@
-if (empty($conf) || !is_object($conf)) {
+if (empty($conf) || !is_object($conf))
+{
@@ -34 +35 @@
- control->tpl['ajax_selecttype']; ?>
+ control->tpl['ajax_selecttype']; ?>
@@ -36 +37 @@
- trans("ThirdPartyType") ?>:
+ trans("ThirdPartyType") ?>:
@@ -38 +39 @@
- trans("CompanyFoundation"); ?>
+ trans("CompanyFoundation"); ?>
@@ -42 +43 @@
- control->tpl['ajax_selectcountry']; ?>
+ control->tpl['ajax_selectcountry']; ?>
@@ -60 +61 @@
-
+ global->SOCIETE_USEPREFIX)) { ?>
@@ -82,2 +83,2 @@
-
trans('CustomerCode'); ?> |
-
+ | trans('CustomerCode'); ?> |
+
@@ -86 +87 @@
- | |
+ |
@@ -97,8 +98,8 @@
- trans('SupplierCode'); ?> |
-
-
+ | trans('SupplierCode'); ?> |
+
+
@@ -108 +109 @@
- control->tpl['suppliercategory']) > 0) { ?>
+ control->tpl['suppliercategory']) > 0) { ?>
@@ -113 +114 @@
-
+if (!empty($conf->barcode->enabled)) { ?>
@@ -159 +160 @@
-
+global->MAIN_MULTILANGS)) { ?>
@@ -171,3 +172 @@
-control->tpl['localtax'])) {
- echo $this->control->tpl['localtax'];
-} ?>
+control->tpl['localtax'])) echo $this->control->tpl['localtax']; ?>
@@ -175 +174 @@
-hasRight('societe', 'client', 'voir')) { ?>
+rights->societe->client->voir) { ?>
--- /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/github_19.0.3_card_edit.tpl.php
+++ /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/client_card_edit.tpl.php
@@ -20 +20,2 @@
-if (empty($conf) || !is_object($conf)) {
+if (empty($conf) || !is_object($conf))
+{
@@ -52 +53 @@
-
+global->SOCIETE_USEPREFIX)) { ?>
@@ -75 +76 @@
-
+
@@ -96 +97 @@
-
+
@@ -116 +117 @@
- }
+ }
@@ -120 +121 @@
-
+barcode->enabled)) { ?>
@@ -163 +164 @@
-
+global->MAIN_MULTILANGS)) { ?>
@@ -175,3 +176 @@
-control->tpl['localtax'])) {
- echo $this->control->tpl['localtax'];
-} ?>
+control->tpl['localtax'])) echo $this->control->tpl['localtax']; ?>
@@ -183 +182 @@
-">
+">
@@ -185 +184 @@
-">
+">
--- /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/github_19.0.3_card_view.tpl.php
+++ /tmp/dsg/dolibarr/htdocs/societe/canvas/individual/tpl/client_card_view.tpl.php
@@ -19 +19,2 @@
-if (empty($conf) || !is_object($conf)) {
+if (empty($conf) || !is_object($conf))
+{
@@ -32,8 +33,4 @@
-print dol_get_fiche_head($head, 'card', $langs->trans("ThirdParty"), 0, 'company');
-
-if ($this->control->tpl['error']) {
- echo $this->control->tpl['error'];
-}
-if ($this->control->tpl['action_delete']) {
- echo $this->control->tpl['action_delete'];
-} ?>
+dol_fiche_head($head, 'card', $langs->trans("ThirdParty"), 0, 'company');
+
+if ($this->control->tpl['error']) echo $this->control->tpl['error'];
+if ($this->control->tpl['action_delete']) echo $this->control->tpl['action_delete']; ?>
@@ -48 +45 @@
-
+global->SOCIETE_USEPREFIX)) { ?>
@@ -59,2 +56,2 @@
- control->tpl['checkcustomercode'] != 0) { ?>
- (trans("WrongCustomerCode"); ?>)
+ control->tpl['checkcustomercode'] <> 0) { ?>
+ (trans("WrongCustomerCode"); ?>)
@@ -70,2 +67,2 @@
- control->tpl['checksuppliercode'] != 0) { ?>
- (trans("WrongSupplierCode"); ?>)
+ control->tpl['checksuppliercode'] <> 0) { ?>
+ (trans("WrongSupplierCode"); ?>)
@@ -77 +74 @@
-
+barcode->enabled)) { ?>
@@ -125,3 +122 @@
-control->tpl['localtax'])) {
- echo $this->control->tpl['localtax'];
-} ?>
+control->tpl['localtax'])) echo $this->control->tpl['localtax']; ?>
@@ -134 +129 @@
-
+global->MAIN_MULTILANGS)) { ?>
@@ -147 +142 @@
- hasRight('societe', 'creer')) { ?>
+ rights->societe->creer) { ?>
@@ -165 +160 @@
- hasRight('societe', 'creer')) { ?>
+ rights->societe->creer) { ?>
@@ -177 +172 @@
-
+adherent->enabled)) { ?>
@@ -186 +181 @@
-
+
@@ -189,5 +184,5 @@
-hasRight('societe', 'creer')) { ?>
-control->tpl['id'].'&action=edit&token='.newToken().'&canvas='.urlencode($canvas); ?>">trans("Modify"); ?>
-
-
-hasRight('societe', 'supprimer')) { ?>
+rights->societe->creer) { ?>
+control->tpl['id'].'&action=edit&canvas='.$canvas; ?>">trans("Modify"); ?>
+
+
+rights->societe->supprimer) { ?>
@@ -197 +192 @@
- control->tpl['id'].'&action=delete&token='.newToken().'&canvas='.urlencode($canvas); ?>">trans('Delete'); ?>
+ control->tpl['id'].'&action=delete&canvas='.$canvas; ?>">trans('Delete'); ?>
@@ -208 +203 @@
- * Generated documents
+ * Documents generes
@@ -212,2 +207,2 @@
-$genallowed = $user->hasRight('societe', 'lire');
-$delallowed = $user->hasRight('societe', 'creer');
+$genallowed = $user->rights->societe->lire;
+$delallowed = $user->rights->societe->creer;
|