Fix PDF invoice - now depends on php-7.3-ext

This commit is contained in:
Deon George 2020-04-02 17:34:22 +11:00
parent 6a3b8692e1
commit 26365c57ff
5 changed files with 873 additions and 473 deletions

1305
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -232,7 +232,6 @@ return [
'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class,
'SnappyImage' => Barryvdh\Snappy\Facades\SnappyImage::class,
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class,

View File

@ -3,14 +3,14 @@
return [
'pdf' => array(
'enabled' => true,
'binary' => '/var/www/html/vendor/bin/wkhtmltopdf-amd64',
'binary' => '/usr/bin/wkhtmltopdf',
'timeout' => false,
'options' => array('print-media-type' => true),
'env' => array(),
),
'image' => array(
'enabled' => true,
'enabled' => false,
'binary' => '/var/www/html/vendor/bin/wkhtmltoimage',
'timeout' => false,
'options' => array(),

28
public/css/print.css vendored
View File

@ -1,19 +1,19 @@
@media print {
body {
color: #333;
font-weight: 400;
font-size: 12px;
}
body {
color: #333;
font-weight: 400;
font-size: 0.85em;
}
label {
font-weight: bold;
}
label {
font-weight: bold;
}
tr { page-break-inside:avoid; }
thead { display:table-header-group; }
tfoot { display:table-footer-group; }
tr { page-break-inside:avoid; }
thead { display:table-header-group; }
tfoot { display:table-footer-group; }
.table-responsive {
overflow: visible !important;
}
.table-responsive {
overflow: visible !important;
}
}

View File

@ -27,7 +27,7 @@
<!-- info row -->
<div class="row invoice-info">
<div class="col-sm-4 invoice-col">
<div class="col-4 invoice-col">
FROM:
<address>
<strong>{{ $so->site_name }}</strong><br>
@ -38,7 +38,7 @@
</address>
</div>
<div class="col-sm-4 invoice-col">
<div class="col-4 invoice-col">
TO:
<address>
<strong>{{ $o->account->company }}</strong><br>
@ -51,9 +51,9 @@
</address>
</div>
{{-- col-sm-offset-2 not working here --}}
<div class="col-sm-1"></div>
<div class="col-1"></div>
<div class="col-md-3 invoice-col">
<div class="col-3 invoice-col">
<table class="table table-borderless text-right" style="font-size: 1.1rem;">
<tr >
<td class="p-0">Account:</td><td class="p-0"><strong>{{ $o->account->account_id }}</strong></td>