From 155379c72983a204a0276a6413e618ed0e389ffa Mon Sep 17 00:00:00 2001 From: Joerg Lehmann Date: Thu, 2 Jul 2020 18:22:38 +0200 Subject: [PATCH] Kosmetik... --- mkinvoice.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mkinvoice.go b/mkinvoice.go index 460aa49..f4046e7 100644 --- a/mkinvoice.go +++ b/mkinvoice.go @@ -260,16 +260,20 @@ func printTotals() { pdf.Line(tabstopRight-widthPrice, yPos, tabstopRight, yPos) pdf.SetFont("Dejavusans-Bold", "", defaultFontSize) yPos = yPos + lineSpacing - writeText(tabstopLeft, yPos, 0, "Netto Betrag") + writeText(tabstopLeft, yPos, 0, "Netto (exkl. MwSt.)") + pdf.SetFont("Dejavusans", "", defaultFontSize) writeText(tabstopPrice, yPos, widthPrice, floatToString(totalNetAmount), "TR") yPos = yPos + lineSpacing yPos = yPos + lineSpacing + pdf.SetFont("Dejavusans-Bold", "", defaultFontSize) writeText(tabstopLeft, yPos, 0, fmt.Sprintf("MwSt. %.1f%%", invoiceData.Metadata.Vat)) mwstAmount := round5rappen(totalNetAmount * invoiceData.Metadata.Vat / 100) + pdf.SetFont("Dejavusans", "", defaultFontSize) writeText(tabstopPrice, yPos, widthPrice, floatToString(mwstAmount), "TR") yPos = yPos + lineSpacing yPos = yPos + lineSpacing - writeText(tabstopLeft, yPos, 0, "Total Betrag sFr.") + pdf.SetFont("Dejavusans-Bold", "", defaultFontSize) + writeText(tabstopLeft, yPos, 0, "Rechnungbetrag inkl. MwSt. in CHF") totalInvoiceAmount = totalNetAmount + mwstAmount writeText(tabstopPrice, yPos, widthPrice, floatToString(totalNetAmount+mwstAmount), "TR") }