|
|
|
@@ -7,6 +7,7 @@ use App\Models\ReceiptIssuingHTParkingCustomOrder; |
|
|
|
use App\Models\ReceiptIssuingOrder; |
|
|
|
use App\Util\DateUtil; |
|
|
|
use Illuminate\Database\Eloquent\Collection; |
|
|
|
use LogicException; |
|
|
|
use PDF; |
|
|
|
|
|
|
|
class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager |
|
|
|
@@ -41,6 +42,20 @@ class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager |
|
|
|
return $this; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @override |
|
|
|
*/ |
|
|
|
public function downlaodLetter() |
|
|
|
{ |
|
|
|
if ($this->initialized === false) { |
|
|
|
throw new LogicException("初期化不良"); |
|
|
|
} |
|
|
|
|
|
|
|
$data = new Collection([$this->order]); |
|
|
|
|
|
|
|
return $this->downlaodLetters($data); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @param Collection<int, ReceiptIssuingOrder> $list |
|
|
|
*/ |
|
|
|
@@ -60,10 +75,6 @@ class PDFDownLoadManagerHelloTechno extends PDFDownLoadManager |
|
|
|
->setOption('page-width', 100) |
|
|
|
->setOption('encoding', 'utf-8') |
|
|
|
->inline(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return $ret; |
|
|
|
} |
|
|
|
|
|
|
|
|