Skip to content

Commit

Permalink
Merge pull request ledgersmb#453 from einhverfr/1.3
Browse files Browse the repository at this point in the history
Fixing 1241, join projection in invoice detail form (1.3-only)
  • Loading branch information
einhverfr committed Oct 15, 2014
2 parents 437cb30 + a2ad1ad commit d66af6a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Changelog for 1.3.45
* Quieted some of the test cases (Chris T)
* Fixed bug 1244, manually entered tax crashes invoice on edit (Chris T)
* Fixed bug 1251, some backports failing due to misplacing db cnx (Chris T)
* Fixed bug 1241, join projection, amounts in invoice details report (Chris T)

Chris T is Chris Travers

Expand Down
10 changes: 5 additions & 5 deletions LedgerSMB/AA.pm
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,12 @@ sub transactions {

if ( !$form->{summary} and !$form->{outstanding} ) {
$acc_trans_flds = qq|
, c.accno, ac.source,
p.projectnumber, ac.memo AS description,
ac.amount AS linetotal,
, c.accno,
p.projectnumber,
((1 - i.discount) * i.qty * i.sellprice) as linetotal,
i.description AS linedescription|;
$group_by_fields = qq|, c.accno, ac.source, p.projectnumber, ac.memo,
ac.amount, i.description |;
$group_by_fields = qq|, c.accno, p.projectnumber,
i.discount, i.qty, i.sellprice, i.description |;

$acc_trans_join = qq|
JOIN acc_trans ac ON (a.id = ac.trans_id)
Expand Down

0 comments on commit d66af6a

Please sign in to comment.