Ensure gateway fees are displayed with invoices that only have tasks

This commit is contained in:
David Bomba 2024-02-13 14:28:14 +11:00
parent 52ae1722b3
commit ae8fbc89d9
2 changed files with 2 additions and 2 deletions

View File

@ -1239,7 +1239,7 @@ class PdfBuilder
public function productTable(): array public function productTable(): array
{ {
$product_items = collect($this->service->config->entity->line_items)->filter(function ($item) { $product_items = collect($this->service->config->entity->line_items)->filter(function ($item) {
return $item->type_id == 1 || $item->type_id == 6 || $item->type_id == 5; return $item->type_id == 1 || $item->type_id == 6 || $item->type_id == 5 || $item->type_id == 4;
}); });
if (count($product_items) == 0) { if (count($product_items) == 0) {

View File

@ -441,7 +441,7 @@ class Design extends BaseDesign
public function productTable(): array public function productTable(): array
{ {
$product_items = collect($this->entity->line_items)->filter(function ($item) { $product_items = collect($this->entity->line_items)->filter(function ($item) {
return $item->type_id == 1 || $item->type_id == 6 || $item->type_id == 5; return $item->type_id == 1 || $item->type_id == 6 || $item->type_id == 5 || $item->type_id == 4;
}); });
if (count($product_items) == 0) { if (count($product_items) == 0) {