Fix phpcs
This commit is contained in:
parent
5b0dd0e31b
commit
5edaa9a98c
@ -19,16 +19,18 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \file htdocs/multicompany/actions_multicompany.class.php
|
* \file htdocs/stripe/class/actions_stripe.class.php
|
||||||
* \ingroup multicompany
|
* \ingroup stripe
|
||||||
* \brief File Class multicompany
|
* \brief File Class actionsstripeconnect
|
||||||
*/
|
*/
|
||||||
require_once DOL_DOCUMENT_ROOT.'/stripe/class/stripe.class.php';;
|
require_once DOL_DOCUMENT_ROOT.'/stripe/class/stripe.class.php';;
|
||||||
|
|
||||||
|
|
||||||
$langs->load("stripe@stripe");
|
$langs->load("stripe@stripe");
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class ActionsMulticompany
|
* Class Actions Stripe Connect
|
||||||
* \brief Class Actions of the module multicompany
|
|
||||||
*/
|
*/
|
||||||
class ActionsStripeconnect
|
class ActionsStripeconnect
|
||||||
{
|
{
|
||||||
@ -54,7 +56,11 @@ class ActionsStripeconnect
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* formObjectOptions
|
||||||
*
|
*
|
||||||
|
* @param array $parameters Parameters
|
||||||
|
* @param Object $object Object
|
||||||
|
* @param string $action Action
|
||||||
*/
|
*/
|
||||||
function formObjectOptions($parameters=false, &$object, &$action='')
|
function formObjectOptions($parameters=false, &$object, &$action='')
|
||||||
{
|
{
|
||||||
@ -157,6 +163,14 @@ $this->resprints.= $langs->trans("NoStripe");
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* addMoreActionsButtons
|
||||||
|
*
|
||||||
|
* @param arra $parameters Parameters
|
||||||
|
* @param Object $object Object
|
||||||
|
* @param string $action action
|
||||||
|
* @return int 0
|
||||||
|
*/
|
||||||
function addMoreActionsButtons($parameters=false, &$object, &$action='')
|
function addMoreActionsButtons($parameters=false, &$object, &$action='')
|
||||||
{
|
{
|
||||||
global $db,$conf,$user,$langs,$form;
|
global $db,$conf,$user,$langs,$form;
|
||||||
@ -183,7 +197,8 @@ $this->resprints.= $langs->trans("NoStripe");
|
|||||||
$resteapayer = $object->total_ttc - $totalpaye;
|
$resteapayer = $object->total_ttc - $totalpaye;
|
||||||
// Request a direct debit order
|
// Request a direct debit order
|
||||||
if ($object->statut > Facture::STATUS_DRAFT && $object->statut < Facture::STATUS_ABANDONED && $object->paye == 0)
|
if ($object->statut > Facture::STATUS_DRAFT && $object->statut < Facture::STATUS_ABANDONED && $object->paye == 0)
|
||||||
{ $stripe=new Stripe($db);
|
{
|
||||||
|
$stripe=new Stripe($db);
|
||||||
if ($resteapayer > 0)
|
if ($resteapayer > 0)
|
||||||
{
|
{
|
||||||
if ($stripe->getStripeAccount($conf->entity)) // a modifier avec droit stripe
|
if ($stripe->getStripeAccount($conf->entity)) // a modifier avec droit stripe
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user