Template.blade.php esempio di commessa
This commit is contained in:
parent
0bb00623b9
commit
f8423a1493
@ -2,8 +2,10 @@
|
|||||||
|
|
||||||
namespace App\Models;
|
namespace App\Models;
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Picqer\Barcode\BarcodeGeneratorPNG;
|
||||||
|
// use Picqer\Barcode\BarcodeGeneratorHTML;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
|
||||||
class Cliente extends Model
|
class Cliente extends Model
|
||||||
{
|
{
|
||||||
@ -77,5 +79,10 @@ class Cliente extends Model
|
|||||||
$cliente->delete();
|
$cliente->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function generateBarcode($barcode)
|
||||||
|
{
|
||||||
|
$generator = new BarcodeGeneratorPNG();
|
||||||
|
return base64_encode($generator->getBarcode($barcode, $generator::TYPE_CODE_39));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@
|
|||||||
"laravel/sanctum": "^3.2",
|
"laravel/sanctum": "^3.2",
|
||||||
"laravel/tinker": "^2.8",
|
"laravel/tinker": "^2.8",
|
||||||
"laravel/ui": "^4.2",
|
"laravel/ui": "^4.2",
|
||||||
|
"picqer/php-barcode-generator": "^2.2",
|
||||||
"spatie/laravel-backup": "^8.1",
|
"spatie/laravel-backup": "^8.1",
|
||||||
"spatie/laravel-permission": "^5.10"
|
"spatie/laravel-permission": "^5.10"
|
||||||
},
|
},
|
||||||
|
88
composer.lock
generated
88
composer.lock
generated
@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "ce5e9d4a01aa0a1733db5cd5ca84ea00",
|
"content-hash": "ddb2289737a39bc98d9c9e244c3a54a7",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "barryvdh/laravel-dompdf",
|
"name": "barryvdh/laravel-dompdf",
|
||||||
@ -2687,6 +2687,92 @@
|
|||||||
],
|
],
|
||||||
"time": "2023-02-25T19:38:58+00:00"
|
"time": "2023-02-25T19:38:58+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "picqer/php-barcode-generator",
|
||||||
|
"version": "v2.2.4",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/picqer/php-barcode-generator.git",
|
||||||
|
"reference": "b98f110cc5a79f723688fb17fd90b9325300d844"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/picqer/php-barcode-generator/zipball/b98f110cc5a79f723688fb17fd90b9325300d844",
|
||||||
|
"reference": "b98f110cc5a79f723688fb17fd90b9325300d844",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-mbstring": "*",
|
||||||
|
"php": "^7.3|^8.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "^9.5"
|
||||||
|
},
|
||||||
|
"suggest": {
|
||||||
|
"ext-bcmath": "Barcode IMB (Intelligent Mail Barcode) needs bcmath extension",
|
||||||
|
"ext-gd": "For JPG and PNG generators, GD or Imagick is required",
|
||||||
|
"ext-imagick": "For JPG and PNG generators, GD or Imagick is required"
|
||||||
|
},
|
||||||
|
"type": "library",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"Picqer\\Barcode\\": "src"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"LGPL-3.0-or-later"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nicola Asuni",
|
||||||
|
"email": "info@tecnick.com",
|
||||||
|
"homepage": "http://nicolaasuni.tecnick.com"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Casper Bakker",
|
||||||
|
"email": "info@picqer.com",
|
||||||
|
"homepage": "https://picqer.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "An easy to use, non-bloated, barcode generator in PHP. Creates SVG, PNG, JPG and HTML images from the most used 1D barcode standards.",
|
||||||
|
"homepage": "https://github.com/picqer/php-barcode-generator",
|
||||||
|
"keywords": [
|
||||||
|
"CODABAR",
|
||||||
|
"Code11",
|
||||||
|
"Code93",
|
||||||
|
"EAN13",
|
||||||
|
"KIX",
|
||||||
|
"KIXCODE",
|
||||||
|
"MSI",
|
||||||
|
"POSTNET",
|
||||||
|
"Pharma",
|
||||||
|
"Standard 2 of 5",
|
||||||
|
"barcode",
|
||||||
|
"barcode generator",
|
||||||
|
"code128",
|
||||||
|
"code39",
|
||||||
|
"ean",
|
||||||
|
"html",
|
||||||
|
"jpeg",
|
||||||
|
"jpg",
|
||||||
|
"php",
|
||||||
|
"png",
|
||||||
|
"svg",
|
||||||
|
"upc"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/picqer/php-barcode-generator/issues",
|
||||||
|
"source": "https://github.com/picqer/php-barcode-generator/tree/v2.2.4"
|
||||||
|
},
|
||||||
|
"funding": [
|
||||||
|
{
|
||||||
|
"url": "https://github.com/casperbakker",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"time": "2022-07-01T08:27:26+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/container",
|
"name": "psr/container",
|
||||||
"version": "2.0.2",
|
"version": "2.0.2",
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td valign="top"><img src="img/logo.png" alt="" width="150"/></td>
|
<td valign="top"><img src="img/logo.png" alt="" width="150"/></td>
|
||||||
|
<td><h1>COMMESSA</h1><img src="data:image/png;base64,{{$barcode}})" width="150" height="50"></td>
|
||||||
<td align="right">
|
<td align="right">
|
||||||
<h3>{{env('RAGIONE_SOCIALE')}}</h3>
|
<h3>{{env('RAGIONE_SOCIALE')}}</h3>
|
||||||
<pre>
|
<pre>
|
||||||
@ -34,7 +35,7 @@
|
|||||||
Tel. {{env('TELEFONO')}}
|
Tel. {{env('TELEFONO')}}
|
||||||
Email:{{env('EMAIL')}}
|
Email:{{env('EMAIL')}}
|
||||||
Website: {{env('WEBSITE')}}
|
Website: {{env('WEBSITE')}}
|
||||||
IBAN:{{env('IBAN')}} Banca: {{env('BANCA')}}
|
|
||||||
</pre>
|
</pre>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -43,7 +44,7 @@
|
|||||||
|
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>Commessa N.:</strong> 05854</td>
|
<td><strong>Commessa N.:</strong> 081231723897</td>
|
||||||
<td><strong>Del:</strong> {{date('d/m/Y')}}</td>
|
<td><strong>Del:</strong> {{date('d/m/Y')}}</td>
|
||||||
<td><strong>Operatore:</strong> Laboratorio</td>
|
<td><strong>Operatore:</strong> Laboratorio</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -63,8 +64,7 @@
|
|||||||
<th>Codice</th>
|
<th>Codice</th>
|
||||||
<th>Descrizione</th>
|
<th>Descrizione</th>
|
||||||
<th>Quantità</th>
|
<th>Quantità</th>
|
||||||
<th>Prezzo unitario €</th>
|
|
||||||
<th>Totale €</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -72,41 +72,40 @@
|
|||||||
<th scope="row">06544585</th>
|
<th scope="row">06544585</th>
|
||||||
<td>Ricambio carburatore Husqwarna 06544585</td>
|
<td>Ricambio carburatore Husqwarna 06544585</td>
|
||||||
<td align="right">1</td>
|
<td align="right">1</td>
|
||||||
<td align="right">1400.00</td>
|
|
||||||
<td align="right">1400.00</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">06532586</th>
|
<th scope="row">06532586</th>
|
||||||
<td>Collettore compatibile Typhoon</td>
|
<td>Collettore compatibile Typhoon</td>
|
||||||
<td align="right">1</td>
|
<td align="right">1</td>
|
||||||
<td align="right">105.00</td>
|
|
||||||
<td align="right">105.00</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">000532</th>
|
<th scope="row">000532</th>
|
||||||
<td>Ore laboratorio</td>
|
<td>Ore laboratorio</td>
|
||||||
<td align="right">2</td>
|
<td align="right">2</td>
|
||||||
<td align="right">65.00</td>
|
|
||||||
<td align="right">130.00</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
<tfoot>
|
<tfoot>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3"></td>
|
<td colspan="3"> </td>
|
||||||
<td align="right">Subtotale €</td>
|
|
||||||
<td align="right">1635.00</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3"></td>
|
<td colspan="3" class="gray" align="center"> Rapporto lavorazioni </td>
|
||||||
<td align="right">IVA €</td>
|
|
||||||
<td align="right">294.3</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="3"></td>
|
<td colspan="3"> Smontaggio dell'apparecchiatura, individuazione del problema, generazione preventivo per commerciale,
|
||||||
<td align="right">Totale €</td>
|
Attesa approvazione preventivo, quindi prosecuzione con sostituzione carburatore originale, pulizia e sostituzione collettore di aspirazione con uno compatibile,
|
||||||
<td align="right" class="gray">€ 1929.3</td>
|
verifica del serraggio dei prigionieri e quindi rimontaggio apparecchiatura. Test finale e chiusura commessa. </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td align="right">Stato</td>
|
||||||
|
<td align="right" class="gray">Riparato</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</tfoot>
|
</tfoot>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user