Skip to content

Commit

Permalink
Net 0 transactions showing up under transaction search now, fix for 1…
Browse files Browse the repository at this point in the history
….3 entirely independent of fix for 1.4

git-svn-id: svn://svn.code.sf.net/p/ledger-smb/code/branches/1.3@5591 4979c152-3d1c-0410-bac9-87ea11338e46
  • Loading branch information
einhverfr committed Jan 16, 2013
1 parent 64dd3c1 commit d8eda83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Chris T.
* Fixed inverted tax numbers in vendor taxable sales report (Chris T, 3600002)
* Fixed cash/receipt and payment screen calculating to pay wrong (Chris T,
3599995)
* Fixed net-0 transactions not showing up on search (Chris T, 3600700)

Changelog for 1.3.28
* Added db list to setup.pl when no db is entered and credentials allow login
Expand Down
4 changes: 2 additions & 2 deletions LedgerSMB/AA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ sub transactions {
a.ponumber $acc_trans_flds
FROM $table a
JOIN entity_credit_account vc ON (a.entity_credit_account = vc.id)
JOIN acc_trans acs ON (acs.trans_id = a.id)
LEFT JOIN acc_trans acs ON (acs.trans_id = a.id)
JOIN entity vce ON (vc.entity_id = vce.id)
JOIN chart c ON (acs.chart_id = c.id
AND charttype='A')
Expand Down Expand Up @@ -991,7 +991,7 @@ sub transactions {
JOIN entity_credit_account vc ON (a.entity_credit_account = vc.id)
JOIN acc_trans ac ON (a.id = ac.trans_id)
JOIN chart c ON (c.id = ac.chart_id)
JOIN (SELECT acc_trans.trans_id,
LEFT JOIN (SELECT acc_trans.trans_id,
sum(CASE WHEN '$table' = 'ap' THEN amount
WHEN '$table' = 'ar'
THEN amount * -1
Expand Down

0 comments on commit d8eda83

Please sign in to comment.