| 1 |
<?php |
| 2 |
/** |
| 3 |
* Quote layout for server-side PDF rendering. |
| 4 |
* |
| 5 |
* Shares document.php with the invoice. A quote is the same document with a |
| 6 |
* different name on it, an expiry instead of a due date, and no expectation of |
| 7 |
* payment — so it is the same template with four labels swapped, rather than a |
| 8 |
* second copy that drifts. |
| 9 |
* |
| 10 |
* Its absence is why PdfRenderer::renderQuote() returned "The PDF template is |
| 11 |
* missing" and every quote silently fell back to the browser renderer. |
| 12 |
* |
| 13 |
* Override with the `easy_invoice_pdf_template_path` filter. |
| 14 |
* |
| 15 |
* @package Easy_Invoice |
| 16 |
*/ |
| 17 |
|
| 18 |
if ( ! defined( 'ABSPATH' ) ) { |
| 19 |
exit; |
| 20 |
} |
| 21 |
|
| 22 |
$ei_pdf_type = 'quote'; |
| 23 |
|
| 24 |
require __DIR__ . '/document.php'; |
| 25 |
|