| ';
- print $form->editfieldkey("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontoadd, 'string', '', 0, 2, 'socid');
+ print $form->editfieldkey("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontoaddupdatepaymentinformation, 'string', '', 0, 2, 'socid');
print ' | ';
- print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontoadd, 'string', '', null, null, '', 2, '', 'socid');
+ print $form->editfieldval("StripeCustomerId", 'key_account', $stripecu, $object, $permissiontoaddupdatepaymentinformation, 'string', '', null, null, '', 2, '', 'socid');
if (!empty($conf->stripe->enabled) && $stripecu && $action != 'editkey_account') {
$connect = '';
if (!empty($stripeacc)) {
@@ -855,9 +855,9 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
// Stripe customer key 'cu_....' stored into llx_societe_account
print ' |
| ';
- print $form->editfieldkey("StripeConnectAccount", 'key_account_supplier', $stripesupplieracc, $object, $permissiontoadd, 'string', '', 0, 2, 'socid');
+ print $form->editfieldkey("StripeConnectAccount", 'key_account_supplier', $stripesupplieracc, $object, $permissiontoaddupdatepaymentinformation, 'string', '', 0, 2, 'socid');
print ' | ';
- print $form->editfieldval("StripeConnectAccount", 'key_account_supplier', $stripesupplieracc, $object, $permissiontoadd, 'string', '', null, null, '', 2, '', 'socid');
+ print $form->editfieldval("StripeConnectAccount", 'key_account_supplier', $stripesupplieracc, $object, $permissiontoaddupdatepaymentinformation, 'string', '', null, null, '', 2, '', 'socid');
if (!empty($conf->stripe->enabled) && $stripesupplieracc && $action != 'editkey_account_supplier') {
$connect = '';
@@ -1062,7 +1062,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print $hookmanager->resPrint;
// Action column
print ' | ';
- if ($permissiontoadd) {
+ if ($permissiontoaddupdatepaymentinformation) {
if ($stripecu && empty($companypaymentmodetemp->stripe_card_ref)) {
print ''.$langs->trans("CreateCardOnStripe").'';
}
@@ -1215,7 +1215,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
print $hookmanager->resPrint;
// Action column
print ' | ';
- if ($permissiontoadd) {
+ if ($permissiontoaddupdatepaymentinformation) {
print '';
print img_picto($langs->trans("Delete"), 'delete');
print '';
@@ -1449,7 +1449,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
// Edit/Delete
print ' | ';
- if ($permissiontoadd) {
+ if ($permissiontoaddupdatepaymentinformation) {
print 'id.'&id='.$rib->id.'&action=edit">';
print img_picto($langs->trans("Modify"), 'edit');
print '';
@@ -1490,7 +1490,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
$filedir = $conf->societe->multidir_output[$object->entity].'/'.$object->id;
$urlsource = $_SERVER["PHP_SELF"]."?socid=".$object->id;
- print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $permissiontoread, $permissiontoadd, $object->model_pdf, 0, 0, 0, 28, 0, 'entity='.$object->entity, 0, '', $object->default_lang);
+ print $formfile->showdocuments('company', $object->id, $filedir, $urlsource, $permissiontoread, $permissiontoaddupdatepaymentinformation, $object->model_pdf, 0, 0, 0, 28, 0, 'entity='.$object->entity, 0, '', $object->default_lang);
// Show direct download link
if (!empty($conf->global->BANK_ACCOUNT_ALLOW_EXTERNAL_DOWNLOAD)) {
@@ -1537,7 +1537,7 @@ if ($socid && $action != 'edit' && $action != 'create' && $action != 'editcard'
}
// Edit BAN
-if ($socid && $action == 'edit' && $permissiontoadd) {
+if ($socid && $action == 'edit' && $permissiontoaddupdatepaymentinformation) {
print dol_get_fiche_head($head, 'rib', $langs->trans("ThirdParty"), 0, 'company');
$linkback = ''.$langs->trans("BackToList").'';
@@ -1656,7 +1656,7 @@ if ($socid && $action == 'edit' && $permissiontoadd) {
}
// Edit Card
-if ($socid && $action == 'editcard' && $permissiontoadd) {
+if ($socid && $action == 'editcard' && $permissiontoaddupdatepaymentinformation) {
print dol_get_fiche_head($head, 'rib', $langs->trans("ThirdParty"), 0, 'company');
$linkback = ''.$langs->trans("BackToList").'';
@@ -1699,7 +1699,7 @@ if ($socid && $action == 'editcard' && $permissiontoadd) {
// Create BAN
-if ($socid && $action == 'create' && $permissiontoadd) {
+if ($socid && $action == 'create' && $permissiontoaddupdatepaymentinformation) {
print dol_get_fiche_head($head, 'rib', $langs->trans("ThirdParty"), 0, 'company');
$linkback = ''.$langs->trans("BackToList").'';
@@ -1814,7 +1814,7 @@ if ($socid && $action == 'create' && $permissiontoadd) {
}
// Create Card
-if ($socid && $action == 'createcard' && $permissiontoadd) {
+if ($socid && $action == 'createcard' && $permissiontoaddupdatepaymentinformation) {
print dol_get_fiche_head($head, 'rib', $langs->trans("ThirdParty"), 0, 'company');
$linkback = ''.$langs->trans("BackToList").'';
@@ -1858,10 +1858,10 @@ if ($socid && $action == 'createcard' && $permissiontoadd) {
print $form->buttonsSaveCancel("Add");
}
-if ($socid && ($action == 'edit' || $action == 'editcard') && $permissiontoadd) {
+if ($socid && ($action == 'edit' || $action == 'editcard') && $permissiontoaddupdatepaymentinformation) {
print '';
}
-if ($socid && ($action == 'create' || $action == 'createcard') && $permissiontoadd) {
+if ($socid && ($action == 'create' || $action == 'createcard') && $permissiontoaddupdatepaymentinformation) {
print '';
}
|