commit 08-2025
This commit is contained in:
parent
9b54eb0512
commit
02f2a4c23e
184 changed files with 31653 additions and 22327 deletions
|
|
@ -22,6 +22,7 @@ class InvoiceRepository extends BaseRepository {
|
|||
private $delivery_dir;
|
||||
private $delivery_filename;
|
||||
|
||||
|
||||
public function __construct(ShoppingOrder $model)
|
||||
{
|
||||
$this->model = $model;
|
||||
|
|
@ -130,7 +131,7 @@ class InvoiceRepository extends BaseRepository {
|
|||
if(!Storage::disk('public')->exists( $this->delivery_dir )){
|
||||
Storage::disk('public')->makeDirectory($this->delivery_dir); //creates directory
|
||||
}
|
||||
$path = Storage::disk('public')->getAdapter()->getPathPrefix();
|
||||
$path = Storage::disk('public')->path('');
|
||||
|
||||
$pdf_file = new InvoicePDF('pdf.invoice');
|
||||
$pdf_file->create($data, $this->filename, 'save', $path.$this->dir);
|
||||
|
|
@ -176,6 +177,10 @@ class InvoiceRepository extends BaseRepository {
|
|||
foreach($whitelabel_image->attributes as $attribute){
|
||||
if(in_array($attribute, $label->attributes)){
|
||||
//found and overwrite
|
||||
if(!$this->model->user_white_label){
|
||||
$this->model->user_white_label = true;
|
||||
$this->model->save();
|
||||
}
|
||||
$labels[$key] = $whitelabel_image;
|
||||
}
|
||||
}
|
||||
|
|
@ -184,7 +189,6 @@ class InvoiceRepository extends BaseRepository {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
foreach($labels as $key=>$label){
|
||||
//label hat attribue
|
||||
$varinats = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue