Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
743f3d60f5
@ -694,7 +694,7 @@ if ($action == 'create')
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<input type="submit" class="button" disabled="disabled" href="#" title="'.dol_escape_htmltag($langs->trans("MvtNotCorrectlyBalanced", $credit, $debit)).'" value="'.dol_escape_htmltag($langs->trans("ValidTransaction")).'">';
|
print '<input type="submit" class="button" disabled="disabled" href="#" title="'.dol_escape_htmltag($langs->trans("MvtNotCorrectlyBalanced", $debit, $credit)).'" value="'.dol_escape_htmltag($langs->trans("ValidTransaction")).'">';
|
||||||
}
|
}
|
||||||
|
|
||||||
print ' ';
|
print ' ';
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
* Copyright (C) 2012 Regis Houssin <regis.houssin@capnetworks.com>
|
||||||
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
|
||||||
* Copyright (C) 2013 Philippe Grand <philippe.grand@atoo-net.com>
|
* Copyright (C) 2013-2018 Philippe Grand <philippe.grand@atoo-net.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -31,9 +31,8 @@ require '../../main.inc.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/contract.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
|
||||||
|
|
||||||
$langs->load("companies");
|
// Load traductions files requiredby by page
|
||||||
$langs->load("admin");
|
$langs->loadLangs(array("companies","admin","contracts"));
|
||||||
$langs->load("contracts");
|
|
||||||
|
|
||||||
$extrafields = new ExtraFields($db);
|
$extrafields = new ExtraFields($db);
|
||||||
$form = new Form($db);
|
$form = new Form($db);
|
||||||
|
|||||||
@ -1059,12 +1059,13 @@ function print_left_eldy_menu($db,$menu_array_before,$menu_array_after,&$tabMenu
|
|||||||
if ($objp->nature == 4 && ! empty($conf->banque->enabled)) $nature="bank";
|
if ($objp->nature == 4 && ! empty($conf->banque->enabled)) $nature="bank";
|
||||||
if ($objp->nature == 5 && ! empty($conf->expensereport->enabled)) $nature="expensereports";
|
if ($objp->nature == 5 && ! empty($conf->expensereport->enabled)) $nature="expensereports";
|
||||||
if ($objp->nature == 1) $nature="various";
|
if ($objp->nature == 1) $nature="various";
|
||||||
|
if ($objp->nature == 8) $nature="inventory";
|
||||||
if ($objp->nature == 9) $nature="hasnew";
|
if ($objp->nature == 9) $nature="hasnew";
|
||||||
|
|
||||||
// To enable when page exists
|
// To enable when page exists
|
||||||
if ($conf->global->MAIN_FEATURES_LEVEL < 2)
|
if ($conf->global->MAIN_FEATURES_LEVEL < 2)
|
||||||
{
|
{
|
||||||
if ($nature == 'various' || $nature == 'hasnew') $nature='';
|
if ($nature == 'various' || $nature == 'hasnew' || $nature == 'inventory') $nature='';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($nature)
|
if ($nature)
|
||||||
|
|||||||
@ -216,7 +216,7 @@ ValidateHistory=Bind Automatically
|
|||||||
AutomaticBindingDone=Automatic binding done
|
AutomaticBindingDone=Automatic binding done
|
||||||
|
|
||||||
ErrorAccountancyCodeIsAlreadyUse=Error, you cannot delete this accounting account because it is used
|
ErrorAccountancyCodeIsAlreadyUse=Error, you cannot delete this accounting account because it is used
|
||||||
MvtNotCorrectlyBalanced=Movement not correctly balanced. Credit = %s. Debit = %s
|
MvtNotCorrectlyBalanced=Movement not correctly balanced. Debit = %s | Credit = %s
|
||||||
FicheVentilation=Binding card
|
FicheVentilation=Binding card
|
||||||
GeneralLedgerIsWritten=Transactions are written in the Ledger
|
GeneralLedgerIsWritten=Transactions are written in the Ledger
|
||||||
GeneralLedgerSomeRecordWasNotRecorded=Some of the transactions could not be journalized. If there is no other error message, this is probably because they were already journalized.
|
GeneralLedgerSomeRecordWasNotRecorded=Some of the transactions could not be journalized. If there is no other error message, this is probably because they were already journalized.
|
||||||
|
|||||||
@ -32,6 +32,7 @@
|
|||||||
// Load Dolibarr environment
|
// Load Dolibarr environment
|
||||||
$res=@include("../main.inc.php"); // For root directory
|
$res=@include("../main.inc.php"); // For root directory
|
||||||
if (! $res) $res=@include("../../main.inc.php");
|
if (! $res) $res=@include("../../main.inc.php");
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
||||||
@ -303,9 +304,8 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
elseif (preg_match('/src_/i',$source))
|
elseif (preg_match('/src_/i',$source))
|
||||||
{
|
{
|
||||||
$stripeacc = $stripe->getStripeAccount($entity);
|
|
||||||
$customer2 = \Stripe\Customer::retrieve($customer->id, array("stripe_account" => $stripeacc));
|
$customer2 = $customerstripe=$stripe->customerStripe($facture->thirdparty, $stripeacc, $servicestatus);
|
||||||
//$src = $customer2->sources->retrieve("$source", array("stripe_account" => $stripeacc)); // this API fails when array stripe_account is provided
|
|
||||||
$src = $customer2->sources->retrieve("$source");
|
$src = $customer2->sources->retrieve("$source");
|
||||||
if ($src->type=='card')
|
if ($src->type=='card')
|
||||||
{
|
{
|
||||||
@ -395,7 +395,7 @@ if (empty($reshook))
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$loc = dol_buildpath('/stripeconnect/payment.php?facid='.$facid.'&action=create&error='.$e->getMessage().'', 1);
|
$loc = DOL_URL_ROOT.'/stripeconnect/payment.php?facid='.$facid.'&action=create&error='.$e->getMessage();
|
||||||
$db->rollback();
|
$db->rollback();
|
||||||
|
|
||||||
header('Location: '.$loc);
|
header('Location: '.$loc);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user