diff --git a/htdocs/stripe/charge.php b/htdocs/stripe/charge.php
index 83cbe2755a1..fb122948dd0 100644
--- a/htdocs/stripe/charge.php
+++ b/htdocs/stripe/charge.php
@@ -101,10 +101,10 @@ if (!$rowid)
print_liste_field_titre("StripeCustomerId", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
print_liste_field_titre("Customer", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
print_liste_field_titre("Origin", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
- print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "", "", "", 'align="left"', $sortfield, $sortorder);
- print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", 'align="right"');
+ print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'left ');
+ print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", '', '', '', 'right ');
print "\n";
print "\n";
@@ -149,9 +149,9 @@ if (!$rowid)
}
print '
';
- print '| getStripeCustomerAccount($facture->socid)!=$source) {
print'class="opacitymedium"';
}
@@ -745,7 +745,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print ' | ';
// Default
- print 'id!=$source) {
print'class="opacitymedium"';
}
@@ -823,21 +823,21 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print '';
print '';
print '| '.$arraytitle.' | ';
- print ''.$langs->trans('Date').' | ';
+ print ''.$langs->trans('Date').' | ';
if (!empty($conf->multicurrency->enabled)) {
print ''.$langs->trans('Currency').' | ';
- print ''.$langs->trans('MulticurrencyAmountTTC').' | ';
- print ''.$multicurrencyalreadypayedlabel.' | ';
- print ''.$multicurrencyremaindertopay.' | ';
+ print ''.$langs->trans('MulticurrencyAmountTTC').' | ';
+ print ''.$multicurrencyalreadypayedlabel.' | ';
+ print ''.$multicurrencyremaindertopay.' | ';
}
- print ''.$langs->trans('AmountTTC').' | ';
- print ''.$alreadypayedlabel.' | ';
- print ''.$remaindertopay.' | ';
- print ''.$langs->trans('PaymentAmount').' | ';
+ print ''.$langs->trans('AmountTTC').' | ';
+ print ''.$alreadypayedlabel.' | ';
+ print ''.$remaindertopay.' | ';
+ print ''.$langs->trans('PaymentAmount').' | ';
if (!empty($conf->multicurrency->enabled)) {
- print ''.$langs->trans('MulticurrencyPaymentAmount').' | ';
+ print ''.$langs->trans('MulticurrencyPaymentAmount').' | ';
}
- print ' | ';
+ print ' | ';
print " \n";
$total=0;
@@ -878,20 +878,20 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print "\n";
// Date
- print ''.dol_print_date($db->jdate($objp->df), 'day')." | \n";
+ print ''.dol_print_date($db->jdate($objp->df), 'day')." | \n";
// Currency
- if (!empty($conf->multicurrency->enabled)) print ''.$objp->multicurrency_code." | \n";
+ if (!empty($conf->multicurrency->enabled)) print ''.$objp->multicurrency_code." | \n";
// Multicurrency Price
if (!empty($conf->multicurrency->enabled))
{
- print '';
+ print ' | ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency) print price($sign * $objp->multicurrency_total_ttc);
print ' | ';
// Multicurrency Price
- print '';
+ print ' | ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency)
{
print price($sign * $multicurrency_payment);
@@ -901,26 +901,26 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
print ' | ';
// Multicurrency Price
- print '';
+ print ' | ';
if ($objp->multicurrency_code && $objp->multicurrency_code != $conf->currency) print price($sign * $multicurrency_remaintopay);
print ' | ';
}
// Price
- print ''.price($sign * $objp->total_ttc).' | ';
+ print ''.price($sign * $objp->total_ttc).' | ';
// Received or paid back
- print ''.price($sign * $paiement);
+ print ' | '.price($sign * $paiement);
if ($creditnotes) print '+'.price($creditnotes);
if ($deposits) print '+'.price($deposits);
print ' | ';
// Remain to take or to pay back
- print ''.price($sign * $remaintopay).' | ';
+ print ''.price($sign * $remaintopay).' | ';
//$test= price(price2num($objp->total_ttc - $paiement - $creditnotes - $deposits));
// Amount
- print '';
+ print ' | ';
// Add remind amount
$namef = 'amount_'.$objp->facid;
@@ -943,7 +943,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
// Multicurrency Price
if (! empty($conf->multicurrency->enabled))
{
- print ' | ';
+ print ' | ';
// Add remind multicurrency amount
$namef = 'multicurrency_amount_'.$objp->facid;
@@ -968,7 +968,7 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
}
// Warning
- print ' | ';
+ print ' | ';
//print "xx".$amounts[$invoice->id]."-".$amountsresttopay[$invoice->id]." ";
if ($amounts[$invoice->id] && (abs($amounts[$invoice->id]) > abs($amountsresttopay[$invoice->id]))
|| $multicurrency_amounts[$invoice->id] && (abs($multicurrency_amounts[$invoice->id]) > abs($multicurrency_amountsresttopay[$invoice->id])))
@@ -994,21 +994,21 @@ if ($action == 'create' || $action == 'confirm_paiement' || $action == 'add_paie
$amount=round(price($sign * price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits, 'MT'))*100);
// Print total
print ' | ';
- print '| '.$langs->trans('TotalTTC').' | ';
+ print ''.$langs->trans('TotalTTC').' | ';
if (!empty($conf->multicurrency->enabled)) {
print ' | ';
print ' | ';
print ' | ';
}
- print ''.price($sign * $total_ttc).' | ';
- print ''.price($sign * $totalrecu);
+ print ' | '.price($sign * $total_ttc).' | ';
+ print ''.price($sign * $totalrecu);
if ($totalrecucreditnote) print '+'.price($totalrecucreditnote);
if ($totalrecudeposits) print '+'.price($totalrecudeposits);
print ' | ';
- print ''.price($sign * price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits, 'MT')).' | ';
- print ' | ';
+ print ''.price($sign * price2num($total_ttc - $totalrecu - $totalrecucreditnote - $totalrecudeposits, 'MT')).' | ';
+ print ' | ';
if (!empty($conf->multicurrency->enabled)) {
- print ' | ';
+ print ' | ';
}
print " \n";
}
@@ -1105,7 +1105,7 @@ if (! GETPOST('action'))
print_liste_field_titre('Invoice', $_SERVER["PHP_SELF"], 'ref', '', '', '', $sortfield, $sortorder);
print_liste_field_titre('Date', $_SERVER["PHP_SELF"], 'dp', '', '', '', $sortfield, $sortorder);
print_liste_field_titre('Type', $_SERVER["PHP_SELF"], 'libelle', '', '', '', $sortfield, $sortorder);
- print_liste_field_titre('Amount', $_SERVER["PHP_SELF"], 'fa_amount', '', '', 'align="right"', $sortfield, $sortorder);
+ print_liste_field_titre('Amount', $_SERVER["PHP_SELF"], 'fa_amount', '', '', '', $sortfield, $sortorder, 'right ');
print_liste_field_titre('', $_SERVER["PHP_SELF"], "", '', '', '', $sortfield, $sortorder, 'maxwidthsearch ');
print "\n";
@@ -1116,7 +1116,7 @@ if (! GETPOST('action'))
print ''.$objp->ref." | \n";
print ''.dol_print_date($db->jdate($objp->dp))." | \n";
print ''.$objp->paiement_type.' '.$objp->num_paiement." | \n";
- print ''.price($objp->amount).' | | ';
+ print ''.price($objp->amount).' | | ';
$parameters=array();
$reshook=$hookmanager->executeHooks('printObjectLine', $parameters, $objp, $action); // Note that $action and $object may have been modified by hook
diff --git a/htdocs/stripe/payout.php b/htdocs/stripe/payout.php
index 2fec924c2bf..0149775c360 100644
--- a/htdocs/stripe/payout.php
+++ b/htdocs/stripe/payout.php
@@ -103,12 +103,12 @@ if (! $rowid) {
//print_liste_field_titre("StripeCustomerId",$_SERVER["PHP_SELF"],"","","","",$sortfield,$sortorder);
//print_liste_field_titre("CustomerId", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
//print_liste_field_titre("Origin", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
- print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre("DateOperation", $_SERVER["PHP_SELF"], "", "", "", 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "", "", "", 'align="left"', $sortfield, $sortorder);
- print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Fee", $_SERVER["PHP_SELF"], "", "", "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", 'align="right"');
+ print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre("DateOperation", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'left ');
+ print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Fee", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", '', '', '', 'right ');
print "\n";
print "\n";
@@ -198,16 +198,16 @@ if (! $rowid) {
//}
//print "\n";
// Date payment
- print '' . dol_print_date($payout->created, '%d/%m/%Y %H:%M') . " | \n";
+ print '' . dol_print_date($payout->created, '%d/%m/%Y %H:%M') . " | \n";
// Date payment
- print '' . dol_print_date($payout->arrival_date, '%d/%m/%Y %H:%M') . " | \n";
+ print '' . dol_print_date($payout->arrival_date, '%d/%m/%Y %H:%M') . " | \n";
// Type
print '' . $payout->description . ' | ';
// Amount
- print "" . price(($payout->amount) / 100, 0, '', 1, - 1, - 1, strtoupper($payout->currency)) . " | ";
- print "" . price(($payout->fee) / 100, 0, '', 1, - 1, - 1, strtoupper($payout->currency)) . " | ";
+ print '' . price(($payout->amount) / 100, 0, '', 1, - 1, - 1, strtoupper($payout->currency)) . " | ";
+ print '' . price(($payout->fee) / 100, 0, '', 1, - 1, - 1, strtoupper($payout->currency)) . " | ";
// Status
- print "";
+ print " | ";
if ($payout->status=='paid') {
print img_picto($langs->trans("".$payout->status.""), 'statut4');
} elseif ($payout->status=='pending') {
diff --git a/htdocs/stripe/transaction.php b/htdocs/stripe/transaction.php
index b0575a53ee4..d1ab2ebe50d 100644
--- a/htdocs/stripe/transaction.php
+++ b/htdocs/stripe/transaction.php
@@ -102,11 +102,11 @@ if (! $rowid) {
//print_liste_field_titre("StripeCustomerId",$_SERVER["PHP_SELF"],"","","","",$sortfield,$sortorder);
//print_liste_field_titre("CustomerId", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
//print_liste_field_titre("Origin", $_SERVER["PHP_SELF"], "", "", "", "", $sortfield, $sortorder);
- print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", 'align="center"', $sortfield, $sortorder);
- print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "", "", "", 'align="left"', $sortfield, $sortorder);
- print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Fee", $_SERVER["PHP_SELF"], "", "", "", 'align="right"', $sortfield, $sortorder);
- print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", 'align="right"');
+ print_liste_field_titre("DatePayment", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'center ');
+ print_liste_field_titre("Type", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'left ');
+ print_liste_field_titre("Paid", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Fee", $_SERVER["PHP_SELF"], "", "", "", '', $sortfield, $sortorder, 'right ');
+ print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "", "", "", '', '', '', 'right_');
print "\n";
print "\n";
@@ -161,7 +161,7 @@ if (! $rowid) {
// Ref
if (!empty($stripeacc)) $connect=$stripeacc.'/';
-
+
// Ref
if (preg_match('/po_/i', $txn->source)){
$origin="payouts";
@@ -207,20 +207,21 @@ if (! $rowid) {
//}
//print " | \n";
// Date payment
- print '' . dol_print_date($txn->created, '%d/%m/%Y %H:%M') . " | \n";
+ print '' . dol_print_date($txn->created, '%d/%m/%Y %H:%M') . " | \n";
// Type
print '' . $txn->type . ' | ';
// Amount
- print "" . price(($txn->amount) / 100, 0, '', 1, - 1, - 1, strtoupper($txn->currency)) . " | ";
- print "" . price(($txn->fee) / 100, 0, '', 1, - 1, - 1, strtoupper($txn->currency)) . " | ";
+ print '' . price(($txn->amount) / 100, 0, '', 1, - 1, - 1, strtoupper($txn->currency)) . " | ";
+ 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');}
+ 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');
+ }
print ' | ';
print "\n";
}
|