1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Fixes for mobile view

This commit is contained in:
David Bomba 2023-07-25 18:24:37 +10:00
parent c1ddc5ae73
commit 8e22cff9ae
2 changed files with 5 additions and 2 deletions

View File

@ -53,6 +53,8 @@ class PdfSlot extends Component
public $route_entity = 'client';
public $is_quote = false;
public function mount()
{
MultiDB::setDb($this->db);
@ -230,8 +232,6 @@ class PdfSlot extends Component
private function getProducts()
{
$product_items = collect($this->entity->line_items)->filter(function ($item) {
return $item->type_id == 1 || $item->type_id == 6 || $item->type_id == 5;
})->map(function ($item){
@ -271,6 +271,7 @@ class PdfSlot extends Component
if ($this->invitation instanceof InvoiceInvitation) {
return 'invoice';
} elseif ($this->invitation instanceof QuoteInvitation) {
$this->is_quote = true;
return 'quote';
} elseif ($this->invitation instanceof CreditInvitation) {
return 'credit';

View File

@ -136,10 +136,12 @@ span {
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.total') }}</td>
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $amount }}</td>
</tr>
@if(!$is_quote)
<tr>
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.balance') }}</td>
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $balance }}</td>
</tr>
@endif
</tbody>
</table>