';
// Ref
- if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
-
- // Ref
- if (preg_match('/po_/i', $txn->source)){
- $origin="payouts";
- } elseif (preg_match('/fee_/i', $txn->source)) {
- $origin="connect/application_fees";
- } else {
- $origin="payments";
- }
+ if (! empty($conf->stripe->enabled) && !empty($stripeacc)) $connect=$stripeacc.'/';
- $url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
- if ($servicestatus)
- {
- $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
- }
- if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
- print "| ".$txn->type." | ";
- } else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . " | \n";
+ if (preg_match('/po_/i', $txn->source)){
+ $origin="payouts";
+ } elseif (preg_match('/fee_/i', $txn->source)) {
+ $origin="connect/application_fees";
+ } else {
+ $origin="payments";
+ }
+ $url='https://dashboard.stripe.com/'.$connect.'test/'.$origin.'/'.$txn->source;
+
+ if ($servicestatus)
+ {
+ $url='https://dashboard.stripe.com/'.$connect.$origin.'/'.$txn->source;
+ }
+
+ if ($txn->type == 'stripe_fee' || $txn->type == 'reserve_transaction') {
+ print "".$txn->type." | ";
+ } else print "".img_picto($langs->trans('ShowInStripe'), 'object_globe')." " . $txn->source . " | \n";
+ // Stripe customer
+ //print "".$charge->customer." | \n";
+ // Link
+ /*print "";
+ if ($societestatic->id > 0)
+ {
+ print $societestatic->getNomUrl(1);
+ }
+ if ($memberstatic->id > 0)
+ {
+ print $memberstatic->getNomUrl(1);
+ }
+ print " | \n";*/
+ // Origine
+
+ //print "";
+ ////if ($charge->metadata->dol_type=="order"){
+ // $object = new Commande($db);
+ // $object->fetch($charge->metadata->dol_id);
+ // print "".img_picto('', 'object_order')." ".$object->ref."";
+ //} elseif ($charge->metadata->dol_type=="invoice"){
+ // $object = new Facture($db);
+ // $object->fetch($charge->metadata->dol_id);
+ // print "".img_picto('', 'object_invoice')." ".$object->ref."";
+ //}
+ //print " | \n";
// Date payment
print '' . dol_print_date($txn->created, '%d/%m/%Y %H:%M') . " | \n";
// Type
@@ -164,12 +219,13 @@ if (! $rowid) {
print "" . price(($txn->fee) / 100, 0, '', 1, - 1, - 1, strtoupper($txn->currency)) . " | ";
// Status
print "";
-if ($txn->status=='available')
- {print img_picto($langs->trans("".$txn->status.""),'statut4');}
-elseif ($txn->status=='pending')
- {print img_picto($langs->trans("".$txn->status.""),'statut7');}
-elseif ($txn->status=='failed')
- {print img_picto($langs->trans("".$txn->status.""),'statut8');}
+ if ($txn->status=='available') {
+ print img_picto($langs->trans("".$txn->status.""),'statut4');
+ } elseif ($txn->status=='pending') {
+ print img_picto($langs->trans("".$txn->status.""),'statut7');
+ } elseif ($txn->status=='failed') {
+ print img_picto($langs->trans("".$txn->status.""),'statut8');
+ }
print ' | ';
print "
\n";
}