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, 'Route' => Illuminate\Support\Facades\Route::class,
'Schema' => Illuminate\Support\Facades\Schema::class, 'Schema' => Illuminate\Support\Facades\Schema::class,
'Session' => Illuminate\Support\Facades\Session::class, 'Session' => Illuminate\Support\Facades\Session::class,
'SnappyImage' => Barryvdh\Snappy\Facades\SnappyImage::class,
'Socialite' => Laravel\Socialite\Facades\Socialite::class, 'Socialite' => Laravel\Socialite\Facades\Socialite::class,
'Storage' => Illuminate\Support\Facades\Storage::class, 'Storage' => Illuminate\Support\Facades\Storage::class,
'Str' => Illuminate\Support\Str::class, 'Str' => Illuminate\Support\Str::class,

View File

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

View File

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

View File

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