nadineproject / nadine

Open Coworking Software
http://nadineproject.org
GNU Affero General Public License v3.0
163 stars 78 forks source link

Include applied taxes in totals in the staff's "outstanding bills" report #396

Open tnightingale opened 6 years ago

tnightingale commented 6 years ago

Follow up to #354

The staff view for outstanding bills uses a pretty complex aggregate query to the calculate totals of outstanding bills.

Currently it does not take into consideration the new LineItemTax. Unfortunately the indirection imposed by the TaxRate -> Resource and BillLineItem's subclasses -> Resource relationships, including applied taxes looks like it will be rather difficult with the existing implementation.

tnightingale commented 6 years ago

This will likely have implications for #385's implementation too