Fix error when sending a receipt of a sale without invoice (#4229)

This commit is contained in:
diego-ramos authored and GitHub committed 2025-04-21 18:21:30 +02:00
1 parent a32519fe4a
commit febe5109f0
1 file changed
+1 -1
+1 -1
View File
@@ -989,7 +989,7 @@ class Sales extends Secure_Controller
$text = $this->config['invoice_email_message'];
$tokens = [
new Token_invoice_sequence($sale_data['invoice_number']),
new Token_invoice_sequence($number),
new Token_invoice_count('POS ' . $sale_data['sale_id']),
new Token_customer((array)$sale_data)
];