Update invoice templates to use a consistent invoice identification number format
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$payment_method = 'payment_method_'.$invoice_data['header']['payment_method'];
|
$payment_method = 'payment_method_'.$invoice_data['header']['payment_method'];
|
||||||
|
$invoice_identifcation_number = date('ymd', strtotime($invoice_date)) . '-' . $invoice_data['header']['id'];
|
||||||
|
|
||||||
$message = '
|
$message = '
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
@@ -50,7 +51,7 @@ $message = '
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding: 3px 0;"><strong>Invoice Number:</strong></td>
|
<td style="padding: 3px 0;"><strong>Invoice Number:</strong></td>
|
||||||
<td style="padding: 3px 0;">' . htmlspecialchars($order_id) . '</td>
|
<td style="padding: 3px 0;">' . htmlspecialchars($invoice_identifcation_number) . '</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td style="padding: 3px 0;"><strong>Your Vat Number:</strong></td>
|
<td style="padding: 3px 0;"><strong>Your Vat Number:</strong></td>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
$payment_method = 'payment_method_'.$invoice_data['header']['payment_method'];
|
$payment_method = 'payment_method_'.$invoice_data['header']['payment_method'];
|
||||||
|
$invoice_identifcation_number = date('ymd', strtotime($invoice_date)) . '-' . $invoice_data['header']['id'];
|
||||||
|
|
||||||
$pdf = '<!DOCTYPE html>
|
$pdf = '<!DOCTYPE html>
|
||||||
<html lang="' . strtolower($language) . '">
|
<html lang="' . strtolower($language) . '">
|
||||||
@@ -232,7 +233,7 @@ $pdf = '<!DOCTYPE html>
|
|||||||
</div>
|
</div>
|
||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<div class="detail-label">Invoice Number</div>
|
<div class="detail-label">Invoice Number</div>
|
||||||
<div class="detail-value">: ' . htmlspecialchars($order_id) . '</div>
|
<div class="detail-value">: ' . htmlspecialchars($invoice_identifcation_number) . '</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="detail-row">
|
<div class="detail-row">
|
||||||
<div class="detail-label">Your Vat Number</div>
|
<div class="detail-label">Your Vat Number</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user