removed tax from profit & loss
This commit is contained in:
@ -329,7 +329,7 @@ abstract class Report
|
||||
event(new RowsShowing($this));
|
||||
}
|
||||
|
||||
public function setTotals($items, $date_field, $check_type = false, $table = 'default')
|
||||
public function setTotals($items, $date_field, $check_type = false, $table = 'default', $with_tax = true)
|
||||
{
|
||||
foreach ($items as $item) {
|
||||
// Make groups extensible
|
||||
@ -347,7 +347,7 @@ abstract class Report
|
||||
continue;
|
||||
}
|
||||
|
||||
$amount = $item->getAmountConvertedToDefault();
|
||||
$amount = $item->getAmountConvertedToDefault(false, $with_tax);
|
||||
|
||||
$type = (($item instanceof Invoice) || (($item instanceof Transaction) && ($item->type == 'income'))) ? 'income' : 'expense';
|
||||
|
||||
|
Reference in New Issue
Block a user