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

1307
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(),

View File

@ -2,7 +2,7 @@
body {
color: #333;
font-weight: 400;
font-size: 12px;
font-size: 0.85em;
}
label {

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>