DailyBankTransactions.php
Selecting "Matched" or "Unmatched" yields nothing in the results list.
It appears name="ShowType" is not used anywhere in the script?
This seems to work fine for me. Do you still get this issue on the Git branch?
All I can imagine, is that the script decides whether a transaction is matched with the following:
$MyRow['amount'] == $MyRow['amountcleared']
and maybe there are fractions getting in the way. Try:
round($MyRow['amount'], 2) == round($MyRow['amountcleared'], 2)
and see if the problem persists.
Tim
Sorry about ambiguity. This is the piece that does not work:
[
attachment=941]
(12-14-2018, 08:37 PM)VortecCPI Wrote: [ -> ]Sorry about ambiguity. This is the piece that does not work:
It seems to work fine for me Paul.
The selection screen shows:
[
attachment=945]
Selecting All shows
[
attachment=942]
Selecting Matched shows:
[
attachment=943]
Selecting Unmatched shows:
[
attachment=944]
Tim
I am using GIT version so I will have another look in just a bit.
Thank you for verifying all works on your end...
Using 4.15 and it works for me too.
Sorry guys... This was a 4.14.1 issue.
I thought I was in the GIT version but I was in our old 4.14.1 version.
I don't care much for the "Yes" / "No" so I changed ours to look like this:
[
attachment=951]
I only want to see an indicator for Cleared/Matched lines -- I find indicators on each line a bit confusing.
PHP Code:
if ($myrow['amount']==$myrow['amountcleared']) {
$Matched='✔'; //_('Yes');
} else {
$Matched=''; //_('No');
}
if ($_POST['ShowType'] == 'All' or ($_POST['ShowType'] == 'Unmatched' and $Matched == '') or ($_POST['ShowType'] == 'Matched' and $Matched != '')) {