Removalls and offers revenues
This commit is contained in:
@@ -27,7 +27,7 @@ class Invoices_model extends MY_Model {
|
||||
public function getOutstandingPerProject( $projectID )
|
||||
{
|
||||
$this->sql = "
|
||||
SELECT (own_revenue + other_revenue) AS totalrevenue,
|
||||
SELECT (own_revenue + other_revenue + OFF.costs) AS totalrevenue,
|
||||
ROUND(SUM(INV.invoiceamount * ((100 + vatrate) / 100)), 0) AS totalinvoiced,
|
||||
(
|
||||
SELECT SUM(paymentamount) PAYMENTAMOUNT
|
||||
|
||||
Reference in New Issue
Block a user