Raise invoice payment QR code
This commit is contained in:
@@ -990,13 +990,14 @@ export const createInvoicePDF = async (server:FastifyInstance, returnMode, invoi
|
|||||||
const mm = 2.83
|
const mm = 2.83
|
||||||
const qrSize = 32 * mm
|
const qrSize = 32 * mm
|
||||||
const rightMargin = 20 * mm
|
const rightMargin = 20 * mm
|
||||||
const bottomMargin = 20 * mm
|
const bottomMargin = 40 * mm
|
||||||
|
const labelGap = 5 * mm
|
||||||
const qrX = lastPage.getWidth() - rightMargin - qrSize
|
const qrX = lastPage.getWidth() - rightMargin - qrSize
|
||||||
const qrY = bottomMargin
|
const qrY = bottomMargin
|
||||||
|
|
||||||
lastPage.drawText("Überweisung per QR-Code", {
|
lastPage.drawText("Überweisung per QR-Code", {
|
||||||
x: qrX,
|
x: qrX,
|
||||||
y: qrY + qrSize + 7,
|
y: qrY + qrSize + labelGap,
|
||||||
size: 8,
|
size: 8,
|
||||||
color: rgb(0, 0, 0),
|
color: rgb(0, 0, 0),
|
||||||
lineHeight: 8,
|
lineHeight: 8,
|
||||||
|
|||||||
Reference in New Issue
Block a user