';
@@ -1804,10 +1802,8 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES))
// Update all child soc
print '
';
@@ -1816,6 +1812,11 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES))
dol_fiche_end();
print '
';
+ print '
';
+ print ' ';
+ print $langs->trans('ForceUpdateChildPriceSoc');
+ print "
";
+
print '
';
print ' ';
print '
';
@@ -2162,7 +2163,7 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES))
// Action
if ($user->rights->produit->supprimer || $user->rights->service->supprimer)
{
- print '
';
+ print ' ';
print 'id . '&socid=' . $line->fk_soc . '">';
print img_info($langs->trans('PriceByCustomerLog'));
print ' ';
diff --git a/htdocs/public/stripe/confirm_payment.php b/htdocs/public/stripe/confirm_payment.php
index ea59b13dcb9..9ff9662ff84 100644
--- a/htdocs/public/stripe/confirm_payment.php
+++ b/htdocs/public/stripe/confirm_payment.php
@@ -15,6 +15,8 @@
* along with this program. If not, see .
*/
+// TODO Do we really need this page. We alread have a ipn.php page !
+
define("NOLOGIN", 1); // This means this output page does not require to be logged.
define("NOCSRFCHECK", 1); // We accept to go on this page from external web site.
@@ -105,13 +107,13 @@ $intent = null;
try {
if (isset($json_obj->payment_method_id)) {
// Create the PaymentIntent
- $intent = \Stripe\PaymentIntent::create([
+ $intent = \Stripe\PaymentIntent::create(array(
'payment_method' => $json_obj->payment_method_id,
'amount' => 1099,
'currency' => 'eur',
'confirmation_method' => 'manual',
'confirm' => true,
- ]);
+ ));
}
if (isset($json_obj->payment_intent_id)) {
$intent = \Stripe\PaymentIntent::retrieve(
@@ -122,9 +124,9 @@ try {
generatePaymentResponse($intent);
} catch (\Stripe\Error\Base $e) {
// Display error on client
- echo json_encode([
+ echo json_encode(array(
'error' => $e->getMessage()
- ]);
+ ));
}
/*
@@ -138,22 +140,22 @@ function generatePaymentResponse($intent)
if ($intent->status == 'requires_source_action' &&
$intent->next_action->type == 'use_stripe_sdk') {
// Tell the client to handle the action
- echo json_encode([
+ echo json_encode(array(
'requires_action' => true,
'payment_intent_client_secret' => $intent->client_secret
- ]);
+ ));
} elseif ($intent->status == 'succeeded') {
// The payment didn’t need any additional actions and completed!
// Handle post-payment fulfillment
// TODO
- echo json_encode([
+ echo json_encode(array(
"success" => true
- ]);
+ ));
} else {
// Invalid status
http_response_code(500);
- echo json_encode(['error' => 'Invalid PaymentIntent status']);
+ echo json_encode(array('error' => 'Invalid PaymentIntent status'));
}
}
diff --git a/htdocs/societe/agenda.php b/htdocs/societe/agenda.php
index 13838812d9d..53a1ee5d7ed 100644
--- a/htdocs/societe/agenda.php
+++ b/htdocs/societe/agenda.php
@@ -32,7 +32,7 @@ require_once DOL_DOCUMENT_ROOT.'/contact/class/contact.class.php';
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
-$langs->load(array("companies", "bills", "propal", "orders"));
+$langs->loadLangs(array("companies", "bills", "propal", "orders"));
if (GETPOST('actioncode', 'array'))
{
diff --git a/htdocs/societe/class/api_thirdparties.class.php b/htdocs/societe/class/api_thirdparties.class.php
index adae31e7677..95aad3a003b 100644
--- a/htdocs/societe/class/api_thirdparties.class.php
+++ b/htdocs/societe/class/api_thirdparties.class.php
@@ -1041,7 +1041,7 @@ $reshook = $hookmanager->executeHooks('replaceThirdparty', array(
$i=0;
- $accounts =[];
+ $accounts = array();
if ($result)
{
@@ -1061,12 +1061,12 @@ $reshook = $hookmanager->executeHooks('replaceThirdparty', array(
}
- $fields = ['socid', 'default_rib', 'frstrecur', '1000110000001', 'datec', 'datem', 'label', 'bank', 'bic', 'iban', 'id', 'rum'];
+ $fields = array('socid', 'default_rib', 'frstrecur', '1000110000001', 'datec', 'datem', 'label', 'bank', 'bic', 'iban', 'id', 'rum');
- $returnAccounts = [];
+ $returnAccounts = array();
foreach($accounts as $account){
- $object= [];
+ $object= array();
foreach($account as $key => $value)
if(in_array($key, $fields)){
$object[$key] = $value;
@@ -1308,7 +1308,7 @@ $reshook = $hookmanager->executeHooks('replaceThirdparty', array(
$i=0;
- $accounts =[];
+ $accounts = array();
$num = $db->num_rows($result);
while ($i < $num)
@@ -1322,12 +1322,12 @@ $reshook = $hookmanager->executeHooks('replaceThirdparty', array(
$i++;
}
- $fields = ['id', 'fk_soc', 'key_account', 'site', 'date_creation', 'tms'];
+ $fields = array('id', 'fk_soc', 'key_account', 'site', 'date_creation', 'tms');
- $returnAccounts = [];
+ $returnAccounts = array();
foreach($accounts as $account){
- $object= [];
+ $object= array();
foreach($account as $key => $value)
if(in_array($key, $fields)){
$object[$key] = $value;
diff --git a/htdocs/societe/paymentmodes.php b/htdocs/societe/paymentmodes.php
index 0e41e11cbaa..51a7ccb24bb 100644
--- a/htdocs/societe/paymentmodes.php
+++ b/htdocs/societe/paymentmodes.php
@@ -639,7 +639,7 @@ if (empty($reshook))
try {
if (preg_match('/pm_/', $source))
{
- $payment_method = \Stripe\PaymentMethod::retrieve($source, ["stripe_account" => $stripeacc]);
+ $payment_method = \Stripe\PaymentMethod::retrieve($source, array("stripe_account" => $stripeacc));
if ($payment_method)
{
$payment_method->detach();
diff --git a/htdocs/stripe/class/stripe.class.php b/htdocs/stripe/class/stripe.class.php
index d8d0c656dab..6b910236e96 100644
--- a/htdocs/stripe/class/stripe.class.php
+++ b/htdocs/stripe/class/stripe.class.php
@@ -389,7 +389,7 @@ class Stripe extends CommonObject
"confirmation_method" => $mode,
"amount" => $stripeamount,
"currency" => $currency_code,
- "payment_method_types" => ["card"],
+ "payment_method_types" => array("card"),
"description" => $description,
"statement_descriptor" => dol_trunc($tag, 10, 'right', 'UTF-8', 1), // 22 chars that appears on bank receipt (company + description)
//"save_payment_method" => true,