Merge branch '8.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: .travis.yml htdocs/langs/en_US/commercial.lang
This commit is contained in:
commit
3d3edb19d8
@ -58,18 +58,17 @@ env:
|
|||||||
matrix:
|
matrix:
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: hhvm
|
|
||||||
- php: nightly
|
- php: nightly
|
||||||
# We exclude some combinations not usefull to save Travis CPU
|
# We exclude some combinations not usefull to save Travis CPU
|
||||||
exclude:
|
exclude:
|
||||||
- php: '5.5'
|
- php: '5.5'
|
||||||
env: DB=mysql
|
env: DB=mariadb
|
||||||
- php: '5.6'
|
- php: '5.6'
|
||||||
env: DB=mysql
|
env: DB=mariadb
|
||||||
- php: '7.0'
|
- php: '7.0'
|
||||||
env: DB=mysql
|
env: DB=mariadb
|
||||||
- php: '7.1'
|
- php: '7.1'
|
||||||
env: DB=mysql
|
env: DB=mariadb
|
||||||
- php: '5.5'
|
- php: '5.5'
|
||||||
env: DB=postgresql
|
env: DB=postgresql
|
||||||
- php: '5.6'
|
- php: '5.6'
|
||||||
|
|||||||
@ -55,14 +55,12 @@ if ($action == 'update')
|
|||||||
$amount=GETPOST('MEMBER_NEWFORM_AMOUNT');
|
$amount=GETPOST('MEMBER_NEWFORM_AMOUNT');
|
||||||
$editamount=GETPOST('MEMBER_NEWFORM_EDITAMOUNT');
|
$editamount=GETPOST('MEMBER_NEWFORM_EDITAMOUNT');
|
||||||
$payonline=GETPOST('MEMBER_NEWFORM_PAYONLINE');
|
$payonline=GETPOST('MEMBER_NEWFORM_PAYONLINE');
|
||||||
$email=GETPOST('MEMBER_PAYONLINE_SENDEMAIL');
|
|
||||||
$forcetype=GETPOST('MEMBER_NEWFORM_FORCETYPE');
|
$forcetype=GETPOST('MEMBER_NEWFORM_FORCETYPE');
|
||||||
|
|
||||||
$res=dolibarr_set_const($db, "MEMBER_ENABLE_PUBLIC",$public,'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "MEMBER_ENABLE_PUBLIC",$public,'chaine',0,'',$conf->entity);
|
||||||
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_AMOUNT",$amount,'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_AMOUNT",$amount,'chaine',0,'',$conf->entity);
|
||||||
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_EDITAMOUNT",$editamount,'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_EDITAMOUNT",$editamount,'chaine',0,'',$conf->entity);
|
||||||
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_PAYONLINE",$payonline,'chaine',0,'',$conf->entity);
|
$res=dolibarr_set_const($db, "MEMBER_NEWFORM_PAYONLINE",$payonline,'chaine',0,'',$conf->entity);
|
||||||
$res=dolibarr_set_const($db, "MEMBER_PAYONLINE_SENDEMAIL",$email,'chaine',0,'',$conf->entity);
|
|
||||||
if ($forcetype < 0) $res=dolibarr_del_const($db, "MEMBER_NEWFORM_FORCETYPE",$conf->entity);
|
if ($forcetype < 0) $res=dolibarr_del_const($db, "MEMBER_NEWFORM_FORCETYPE",$conf->entity);
|
||||||
else $res=dolibarr_set_const($db, "MEMBER_NEWFORM_FORCETYPE",$forcetype,'chaine',0,'',$conf->entity);
|
else $res=dolibarr_set_const($db, "MEMBER_NEWFORM_FORCETYPE",$forcetype,'chaine',0,'',$conf->entity);
|
||||||
|
|
||||||
@ -211,13 +209,6 @@ if (! empty($conf->global->MEMBER_ENABLE_PUBLIC))
|
|||||||
print $form->selectarray("MEMBER_NEWFORM_PAYONLINE",$listofval,(! empty($conf->global->MEMBER_NEWFORM_PAYONLINE)?$conf->global->MEMBER_NEWFORM_PAYONLINE:''),0);
|
print $form->selectarray("MEMBER_NEWFORM_PAYONLINE",$listofval,(! empty($conf->global->MEMBER_NEWFORM_PAYONLINE)?$conf->global->MEMBER_NEWFORM_PAYONLINE:''),0);
|
||||||
print "</td></tr>\n";
|
print "</td></tr>\n";
|
||||||
|
|
||||||
// Jump to an online payment page
|
|
||||||
print '<tr class="oddeven" id="tremail"><td>';
|
|
||||||
print $langs->trans("MEMBER_PAYONLINE_SENDEMAIL");
|
|
||||||
print '</td><td align="right">';
|
|
||||||
print '<input type="text" id="MEMBER_PAYONLINE_SENDEMAIL" name="MEMBER_PAYONLINE_SENDEMAIL" size="24" value="'.(! empty($conf->global->MEMBER_PAYONLINE_SENDEMAIL)?$conf->global->MEMBER_PAYONLINE_SENDEMAIL:'').'">';
|
|
||||||
print "</td></tr>\n";
|
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
print '<center>';
|
print '<center>';
|
||||||
|
|||||||
@ -1359,7 +1359,7 @@ class Adherent extends CommonObject
|
|||||||
* @param string $num_chq Numero cheque (if Id bank account provided)
|
* @param string $num_chq Numero cheque (if Id bank account provided)
|
||||||
* @param string $emetteur_nom Name of cheque writer
|
* @param string $emetteur_nom Name of cheque writer
|
||||||
* @param string $emetteur_banque Name of bank of cheque
|
* @param string $emetteur_banque Name of bank of cheque
|
||||||
* @param string $autocreatethirdparty Auto create new thirdparty if member not linked to a thirdparty and we request an option that generate invoice.
|
* @param string $autocreatethirdparty Auto create new thirdparty if member not yet linked to a thirdparty and we request an option that generate invoice.
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function subscriptionComplementaryActions($subscriptionid, $option, $accountid, $datesubscription, $paymentdate, $operation, $label, $amount, $num_chq, $emetteur_nom='', $emetteur_banque='', $autocreatethirdparty=0)
|
function subscriptionComplementaryActions($subscriptionid, $option, $accountid, $datesubscription, $paymentdate, $operation, $label, $amount, $num_chq, $emetteur_nom='', $emetteur_banque='', $autocreatethirdparty=0)
|
||||||
|
|||||||
@ -1141,8 +1141,9 @@ class Form
|
|||||||
if (count($scrit) > 1) $sql.=")";
|
if (count($scrit) > 1) $sql.=")";
|
||||||
if (! empty($conf->barcode->enabled))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
$sql .= " OR s.barcode LIKE '".$this->db->escape($filterkey)."%'";
|
$sql .= " OR s.barcode LIKE '".$this->db->escape($prefix.$filterkey)."%'";
|
||||||
}
|
}
|
||||||
|
$sql.= " OR s.code_client LIKE '".$this->db->escape($prefix.$filterkey)."%' OR s.code_fournisseur LIKE '".$this->db->escape($prefix.$filterkey)."%'";
|
||||||
$sql.=")";
|
$sql.=")";
|
||||||
}
|
}
|
||||||
$sql.=$this->db->order("nom","ASC");
|
$sql.=$this->db->order("nom","ASC");
|
||||||
|
|||||||
@ -72,7 +72,7 @@ StatusProsp=Prospect status
|
|||||||
DraftPropals=Draft commercial proposals
|
DraftPropals=Draft commercial proposals
|
||||||
NoLimit=No limit
|
NoLimit=No limit
|
||||||
ToOfferALinkForOnlineSignature=Link for online signature
|
ToOfferALinkForOnlineSignature=Link for online signature
|
||||||
WelcomeOnOnlineSignaturePage=Welcome on the page to accept commercial proposals from %s
|
WelcomeOnOnlineSignaturePage=Welcome to the page to accept commercial proposals from %s
|
||||||
ThisScreenAllowsYouToSignDocFrom=This screen allow you to accept and sign, or refuse, a quote/commercial proposal
|
ThisScreenAllowsYouToSignDocFrom=This screen allow you to accept and sign, or refuse, a quote/commercial proposal
|
||||||
ThisIsInformationOnDocumentToSign=This is information on document to accept or refuse
|
ThisIsInformationOnDocumentToSign=This is information on document to accept or refuse
|
||||||
SignatureProposalRef=Signature of quote/commercial proposal %s
|
SignatureProposalRef=Signature of quote/commercial proposal %s
|
||||||
|
|||||||
@ -188,7 +188,6 @@ MembersByNature=This screen show you statistics on members by nature.
|
|||||||
MembersByRegion=This screen show you statistics on members by region.
|
MembersByRegion=This screen show you statistics on members by region.
|
||||||
VATToUseForSubscriptions=VAT rate to use for subscriptions
|
VATToUseForSubscriptions=VAT rate to use for subscriptions
|
||||||
NoVatOnSubscription=No TVA for subscriptions
|
NoVatOnSubscription=No TVA for subscriptions
|
||||||
MEMBER_PAYONLINE_SENDEMAIL=Email to use for email warning when Dolibarr receive a confirmation of a validated payment for a subscription (Example: paymentdone@example.com)
|
|
||||||
ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS=Product used for subscription line into invoice: %s
|
ADHERENT_PRODUCT_ID_FOR_SUBSCRIPTIONS=Product used for subscription line into invoice: %s
|
||||||
NameOrCompany=Name or company
|
NameOrCompany=Name or company
|
||||||
SubscriptionRecorded=Subscription recorded
|
SubscriptionRecorded=Subscription recorded
|
||||||
|
|||||||
@ -3,7 +3,7 @@ PayBoxSetup=PayBox module setup
|
|||||||
PayBoxDesc=This module offer pages to allow payment on <a href="http://www.paybox.com" target="_blank">Paybox</a> by customers. This can be used for a free payment or for a payment on a particular Dolibarr object (invoice, order, ...)
|
PayBoxDesc=This module offer pages to allow payment on <a href="http://www.paybox.com" target="_blank">Paybox</a> by customers. This can be used for a free payment or for a payment on a particular Dolibarr object (invoice, order, ...)
|
||||||
FollowingUrlAreAvailableToMakePayments=Following URLs are available to offer a page to a customer to make a payment on Dolibarr objects
|
FollowingUrlAreAvailableToMakePayments=Following URLs are available to offer a page to a customer to make a payment on Dolibarr objects
|
||||||
PaymentForm=Payment form
|
PaymentForm=Payment form
|
||||||
WelcomeOnPaymentPage=Welcome on our online payment service
|
WelcomeOnPaymentPage=Welcome to our online payment service
|
||||||
ThisScreenAllowsYouToPay=This screen allow you to make an online payment to %s.
|
ThisScreenAllowsYouToPay=This screen allow you to make an online payment to %s.
|
||||||
ThisIsInformationOnPayment=This is information on payment to do
|
ThisIsInformationOnPayment=This is information on payment to do
|
||||||
ToComplete=To complete
|
ToComplete=To complete
|
||||||
|
|||||||
@ -4,7 +4,7 @@ StripeDesc=Module to offer an online payment page accepting payments with Credit
|
|||||||
StripeOrCBDoPayment=Pay with credit card or Stripe
|
StripeOrCBDoPayment=Pay with credit card or Stripe
|
||||||
FollowingUrlAreAvailableToMakePayments=Following URLs are available to offer a page to a customer to make a payment on Dolibarr objects
|
FollowingUrlAreAvailableToMakePayments=Following URLs are available to offer a page to a customer to make a payment on Dolibarr objects
|
||||||
PaymentForm=Payment form
|
PaymentForm=Payment form
|
||||||
WelcomeOnPaymentPage=Welcome on our online payment service
|
WelcomeOnPaymentPage=Welcome to our online payment service
|
||||||
ThisScreenAllowsYouToPay=This screen allow you to make an online payment to %s.
|
ThisScreenAllowsYouToPay=This screen allow you to make an online payment to %s.
|
||||||
ThisIsInformationOnPayment=This is information on payment to do
|
ThisIsInformationOnPayment=This is information on payment to do
|
||||||
ToComplete=To complete
|
ToComplete=To complete
|
||||||
|
|||||||
@ -221,8 +221,8 @@ print '</td></tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
||||||
print '<input size="32" type="email" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
print '<input size="32" type="text" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
||||||
print ' '.$langs->trans("Example").': myemail@myserver.com';
|
print ' '.$langs->trans("Example").': myemail@myserver.com, Payment service <myemail2@myserver2.com>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Payment token for URL
|
// Payment token for URL
|
||||||
|
|||||||
@ -254,8 +254,8 @@ print '</td></tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
||||||
print '<input size="32" type="email" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
print '<input size="32" type="text" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
||||||
print ' '.$langs->trans("Example").': myemail@myserver.com';
|
print ' '.$langs->trans("Example").': myemail@myserver.com, Payment service <myemail2@myserver2.com>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
|
|||||||
@ -87,10 +87,8 @@ if (empty($paymentmethod))
|
|||||||
dol_print_error(null, 'The back url does not contains a parameter fulltag that should help us to find the payment method used');
|
dol_print_error(null, 'The back url does not contains a parameter fulltag that should help us to find the payment method used');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
dol_syslog("***** paymentok.php is called paymentmethod=".$paymentmethod." FULLTAG=".$FULLTAG." REQUEST_URI=".$_SERVER["REQUEST_URI"], LOG_DEBUG, 0, '_payment');
|
||||||
dol_syslog("paymentmethod=".$paymentmethod);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
$validpaymentmethod=array();
|
$validpaymentmethod=array();
|
||||||
@ -194,7 +192,7 @@ if (! empty($conf->paypal->enabled))
|
|||||||
// From env
|
// From env
|
||||||
$ipaddress = $_SESSION['ipaddress'];
|
$ipaddress = $_SESSION['ipaddress'];
|
||||||
|
|
||||||
dol_syslog("Call paymentok with token=".$onlinetoken." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag, LOG_DEBUG, 0, '_paypal');
|
dol_syslog("Call paymentok with token=".$onlinetoken." paymentType=".$paymentType." currencyCodeType=".$currencyCodeType." payerID=".$payerID." ipaddress=".$ipaddress." FinalPaymentAmt=".$FinalPaymentAmt." fulltag=".$fulltag, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
// Validate record
|
// Validate record
|
||||||
if (! empty($paymentType))
|
if (! empty($paymentType))
|
||||||
@ -266,6 +264,9 @@ $fulltag = $FULLTAG;
|
|||||||
$tmptag=dolExplodeIntoArray($fulltag,'.','=');
|
$tmptag=dolExplodeIntoArray($fulltag,'.','=');
|
||||||
|
|
||||||
|
|
||||||
|
dol_syslog("ispaymentok=".$ispaymentok, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
|
||||||
// Make complementary actions
|
// Make complementary actions
|
||||||
$ispostactionok = 0;
|
$ispostactionok = 0;
|
||||||
$postactionmessages = array();
|
$postactionmessages = array();
|
||||||
@ -372,6 +373,8 @@ if ($ispaymentok)
|
|||||||
// Create subscription
|
// Create subscription
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
dol_syslog("Call ->subscription to create subscription", LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
$crowid=$object->subscription($datesubscription, $amount, $accountid, $operation, $label, $num_chq, $emetteur_nom, $emetteur_banque, $datesubend);
|
$crowid=$object->subscription($datesubscription, $amount, $accountid, $operation, $label, $num_chq, $emetteur_nom, $emetteur_banque, $datesubend);
|
||||||
if ($crowid <= 0)
|
if ($crowid <= 0)
|
||||||
{
|
{
|
||||||
@ -389,11 +392,15 @@ if ($ispaymentok)
|
|||||||
|
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
$autocreatethirdparty = 1;
|
dol_syslog("Call ->subscriptionComplementaryActions option=".$option, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
$autocreatethirdparty = 1; // will create thirdparty if member not yet linked to a thirdparty
|
||||||
|
|
||||||
$result = $object->subscriptionComplementaryActions($crowid, $option, $accountid, $datesubscription, $paymentdate, $operation, $label, $amount, $num_chq, $emetteur_nom, $emetteur_banque, $autocreatethirdparty);
|
$result = $object->subscriptionComplementaryActions($crowid, $option, $accountid, $datesubscription, $paymentdate, $operation, $label, $amount, $num_chq, $emetteur_nom, $emetteur_banque, $autocreatethirdparty);
|
||||||
if ($result < 0)
|
if ($result < 0)
|
||||||
{
|
{
|
||||||
|
dol_syslog("Error ".$object->error." ".join(',', $object->errors), LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
$error++;
|
$error++;
|
||||||
$postactionmessages[] = $object->error;
|
$postactionmessages[] = $object->error;
|
||||||
$postactionmessages = array_merge($postactionmessages, $object->errors);
|
$postactionmessages = array_merge($postactionmessages, $object->errors);
|
||||||
@ -401,9 +408,21 @@ if ($ispaymentok)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ($option == 'bankviainvoice') $postactionmessages[] = 'Invoice, payment and bank record created';
|
if ($option == 'bankviainvoice')
|
||||||
if ($option == 'bankdirect') $postactionmessages[] = 'Bank record created';
|
{
|
||||||
if ($option == 'invoiceonly') $postactionmessages[] = 'Invoice recorded';
|
$postactionmessages[] = 'Invoice, payment and bank record created';
|
||||||
|
dol_syslog("Invoice, payment and bank record created", LOG_DEBUG, 0, '_payment');
|
||||||
|
}
|
||||||
|
if ($option == 'bankdirect')
|
||||||
|
{
|
||||||
|
$postactionmessages[] = 'Bank record created';
|
||||||
|
dol_syslog("Bank record created", LOG_DEBUG, 0, '_payment');
|
||||||
|
}
|
||||||
|
if ($option == 'invoiceonly')
|
||||||
|
{
|
||||||
|
$postactionmessages[] = 'Invoice recorded';
|
||||||
|
dol_syslog("Invoice recorded", LOG_DEBUG, 0, '_payment');
|
||||||
|
}
|
||||||
$ispostactionok = 1;
|
$ispostactionok = 1;
|
||||||
|
|
||||||
// If an invoice was created, it is into $object->invoice
|
// If an invoice was created, it is into $object->invoice
|
||||||
@ -416,7 +435,7 @@ if ($ispaymentok)
|
|||||||
{
|
{
|
||||||
$thirdparty_id = $object->fk_soc;
|
$thirdparty_id = $object->fk_soc;
|
||||||
|
|
||||||
dol_syslog("Search existing Stripe customer profile for thirdparty_id=".$thirdparty_id, LOG_DEBUG, 0, '_stripe');
|
dol_syslog("Search existing Stripe customer profile for thirdparty_id=".$thirdparty_id, LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
$service = 'StripeTest';
|
$service = 'StripeTest';
|
||||||
$servicestatus = 0;
|
$servicestatus = 0;
|
||||||
@ -436,6 +455,8 @@ if ($ispaymentok)
|
|||||||
|
|
||||||
if (! $customer && $TRANSACTIONID) // Not linked to a stripe customer, we make the link
|
if (! $customer && $TRANSACTIONID) // Not linked to a stripe customer, we make the link
|
||||||
{
|
{
|
||||||
|
dol_syslog("No stripe profile found, so we add it", LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
$ch = \Stripe\Charge::retrieve($TRANSACTIONID); // contains the charge id
|
$ch = \Stripe\Charge::retrieve($TRANSACTIONID); // contains the charge id
|
||||||
$stripecu = $ch->customer; // value 'cus_....'
|
$stripecu = $ch->customer; // value 'cus_....'
|
||||||
|
|
||||||
@ -462,9 +483,11 @@ if ($ispaymentok)
|
|||||||
$db->rollback();
|
$db->rollback();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send email
|
// Send email to member
|
||||||
if (! $error)
|
if (! $error)
|
||||||
{
|
{
|
||||||
|
dol_syslog("Send email to customer to ".$object->email." if we have to (sendalsoemail = ".$sendalsoemail.")", LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
// Send confirmation Email
|
// Send confirmation Email
|
||||||
if ($object->email && $sendalsoemail)
|
if ($object->email && $sendalsoemail)
|
||||||
{
|
{
|
||||||
@ -629,7 +652,7 @@ if ($ispaymentok)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$postactionmessages[] = 'Setup of bank account to use in module '.$paymentmethod.' was not set. Not way to record the payment.';
|
$postactionmessages[] = 'Setup of bank account to use in module '.$paymentmethod.' was not set. No way to record the payment.';
|
||||||
$ispostactionok = -1;
|
$ispostactionok = -1;
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -691,7 +714,9 @@ if ($ispaymentok)
|
|||||||
|
|
||||||
$tmptag=dolExplodeIntoArray($fulltag,'.','=');
|
$tmptag=dolExplodeIntoArray($fulltag,'.','=');
|
||||||
|
|
||||||
// Send an email
|
dol_syslog("Send email to admins if we have to (sendemail = ".$sendemail.")", LOG_DEBUG, 0, '_payment');
|
||||||
|
|
||||||
|
// Send an email to admins
|
||||||
if ($sendemail)
|
if ($sendemail)
|
||||||
{
|
{
|
||||||
$companylangs = new Translate('', $conf);
|
$companylangs = new Translate('', $conf);
|
||||||
|
|||||||
@ -307,8 +307,8 @@ print '</td></tr>';
|
|||||||
|
|
||||||
print '<tr class="oddeven"><td>';
|
print '<tr class="oddeven"><td>';
|
||||||
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
print $langs->trans("ONLINE_PAYMENT_SENDEMAIL").'</td><td>';
|
||||||
print '<input size="32" type="email" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
print '<input size="32" type="text" name="ONLINE_PAYMENT_SENDEMAIL" value="'.$conf->global->ONLINE_PAYMENT_SENDEMAIL.'">';
|
||||||
print ' '.$langs->trans("Example").': myemail@myserver.com';
|
print ' '.$langs->trans("Example").': myemail@myserver.com, Payment service <myemail2@myserver2.com>';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Payment token for URL
|
// Payment token for URL
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class AccountingAccountTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class ActionCommTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class AdherentTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class AdminLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class BankAccountTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class BonPrelevementTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -89,6 +89,8 @@ class BuildDocTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class CMailFileTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class CategorieTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class ChargeSocialesTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -72,6 +72,8 @@ class CodingPhpTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -72,6 +72,8 @@ class CodingSqlTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class CommandeFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class CommandeTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class CommonObjectTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class CompanyBankAccountTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class CompanyLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -68,6 +68,8 @@ class ContactTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class ContratTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class CoreTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class DateLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class DateLibTzFranceTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class DiscountTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class EntrepotTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class ExpenseReportTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -64,6 +64,8 @@ class ExportTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class FactureFournisseurTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class FactureRecTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class FactureTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class FactureTestRounding extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class FichinterTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class FilesLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class FormAdminTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class Functions2LibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class FunctionsLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class GetUrlLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class HolidayTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class ImagesLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class ImportTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class JsonLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -72,6 +72,8 @@ class LangTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class MarginsLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class ModulesTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class MouvementStockTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class NumberingModulesTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class PaypalTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class PdfDocTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class PgsqlTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -67,6 +67,8 @@ class PricesTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class ProductTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -61,6 +61,8 @@ class ProjectTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class PropalTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -62,6 +62,8 @@ class RestAPIDocumentTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf = $conf;
|
$this->savconf = $conf;
|
||||||
|
|||||||
@ -64,6 +64,8 @@ class RestAPIUserTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -72,6 +72,8 @@ class ScriptsTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -72,6 +72,8 @@ class SecurityTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class SocieteTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class SupplierProposalTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -60,6 +60,8 @@ class TicketTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class UserGroupTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class UserTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class UtilsTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -69,6 +69,8 @@ class WebservicesInvoicesTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class WebservicesOrdersTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class WebservicesOtherTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -70,6 +70,8 @@ class WebservicesProductsTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -70,6 +70,8 @@ class WebservicesThirdpartyTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class WebservicesUserTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
@ -59,6 +59,8 @@ class XCalLibTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
parent::__construct();
|
||||||
|
|
||||||
//$this->sharedFixture
|
//$this->sharedFixture
|
||||||
global $conf,$user,$langs,$db;
|
global $conf,$user,$langs,$db;
|
||||||
$this->savconf=$conf;
|
$this->savconf=$conf;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user