mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for mobile view
This commit is contained in:
parent
c1ddc5ae73
commit
8e22cff9ae
@ -53,6 +53,8 @@ class PdfSlot extends Component
|
|||||||
|
|
||||||
public $route_entity = 'client';
|
public $route_entity = 'client';
|
||||||
|
|
||||||
|
public $is_quote = false;
|
||||||
|
|
||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
MultiDB::setDb($this->db);
|
MultiDB::setDb($this->db);
|
||||||
@ -230,8 +232,6 @@ class PdfSlot extends Component
|
|||||||
private function getProducts()
|
private function getProducts()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$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;
|
||||||
})->map(function ($item){
|
})->map(function ($item){
|
||||||
@ -271,6 +271,7 @@ class PdfSlot extends Component
|
|||||||
if ($this->invitation instanceof InvoiceInvitation) {
|
if ($this->invitation instanceof InvoiceInvitation) {
|
||||||
return 'invoice';
|
return 'invoice';
|
||||||
} elseif ($this->invitation instanceof QuoteInvitation) {
|
} elseif ($this->invitation instanceof QuoteInvitation) {
|
||||||
|
$this->is_quote = true;
|
||||||
return 'quote';
|
return 'quote';
|
||||||
} elseif ($this->invitation instanceof CreditInvitation) {
|
} elseif ($this->invitation instanceof CreditInvitation) {
|
||||||
return 'credit';
|
return 'credit';
|
||||||
|
@ -136,10 +136,12 @@ span {
|
|||||||
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.total') }}</td>
|
<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>
|
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $amount }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@if(!$is_quote)
|
||||||
<tr>
|
<tr>
|
||||||
<td style="text-align:left; padding-right:10px;" class="text-lg">{{ ctrans('texts.balance') }}</td>
|
<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>
|
<td style="text-align:right; padding-right:10px;" class="text-lg">{{ $balance }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@endif
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user