QR code with balance, not amount

This commit is contained in:
David Bomba
2025-12-05 08:46:16 +11:00
parent 727005237b
commit 02c1dbd00a

View File

@@ -816,7 +816,7 @@ class HtmlEngine
}
if ($this->entity_string == 'invoice' || $this->entity_string == 'recurring_invoice') {
$data['$sepa_qr_code'] = ['value' => (new EpcQrGenerator($this->company, $this->entity, $data['$amount_raw']['value']))->getQrCode(), 'label' => ''];
$data['$sepa_qr_code'] = ['value' => (new EpcQrGenerator($this->company, $this->entity, $data['$balance_due_raw']['value']))->getQrCode(), 'label' => ''];
$data['$sepa_qr_code_raw'] = ['value' => html_entity_decode($data['$sepa_qr_code']['value']), 'label' => ''];
}