feat: command to stamp invoice pdfs
This commit is contained in:
@@ -23,7 +23,8 @@ class InvoiceApprover extends AbstractPdfRenderer
|
||||
}
|
||||
|
||||
// Load template
|
||||
$filepath = sprintf('%s/uploads/invoice/%s', $this->config['project_dir'], $originalFilename);
|
||||
$folder = substr($originalFilename, 0, 1);
|
||||
$filepath = sprintf('%s/uploads/invoice/%s/%s', $this->config['project_dir'], $folder, $originalFilename);
|
||||
if (false === file_exists($filepath)) {
|
||||
throw new \InvalidArgumentException('Uploaded document not found at '.$filepath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user