Fix regressions

This commit is contained in:
Laurent Destailleur
2023-05-26 17:55:25 +02:00
parent 57fd5b82ac
commit 089107850b
2 changed files with 6 additions and 5 deletions

View File

@@ -2196,6 +2196,7 @@ class pdf_crabe extends ModelePDFFactures
* @param Facture $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @param int $heightforqrinvoice Height for QR invoices
* @return int Return height of bottom margin including footer text
*/
protected function _pagefoot(&$pdf, $object, $outputlangs, $hidefreetext = 0, $heightforqrinvoice = 0)

View File

@@ -83,11 +83,11 @@ abstract class ModelePDFFactures extends CommonDocGenerator
/**
* Get the SwissQR object, including validation
*
* @param Facture $object Invoice object
* @param Translate $langs Translation object
* @return SwissQrBill|bool The valid SwissQR object, or false
* @param Facture $object Invoice object
* @param Translate $langs Translation object
* @return SwissQrBill|bool The valid SwissQR object, or false
*/
private function getSwissQrBill(\Facture $object, \Translate $langs) : SwissQrBill\QrBill|bool
private function getSwissQrBill(Facture $object, Translate $langs)
{
global $conf;
@@ -138,7 +138,7 @@ abstract class ModelePDFFactures extends CommonDocGenerator
// This is what you will need to identify incoming payments.
$qrBill->setPaymentReference(
SwissQrBill\DataGroup\Element\PaymentReference::create(
SwissQrBill\DataGroup\Element\PaymentReference::TYPE_NON,
SwissQrBill\DataGroup\Element\PaymentReference::TYPE_NON
)
);