Kosmetik...
This commit is contained in:
parent
7471882878
commit
155379c729
|
|
@ -260,16 +260,20 @@ func printTotals() {
|
||||||
pdf.Line(tabstopRight-widthPrice, yPos, tabstopRight, yPos)
|
pdf.Line(tabstopRight-widthPrice, yPos, tabstopRight, yPos)
|
||||||
pdf.SetFont("Dejavusans-Bold", "", defaultFontSize)
|
pdf.SetFont("Dejavusans-Bold", "", defaultFontSize)
|
||||||
yPos = yPos + lineSpacing
|
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")
|
writeText(tabstopPrice, yPos, widthPrice, floatToString(totalNetAmount), "TR")
|
||||||
yPos = yPos + lineSpacing
|
yPos = yPos + lineSpacing
|
||||||
yPos = yPos + lineSpacing
|
yPos = yPos + lineSpacing
|
||||||
|
pdf.SetFont("Dejavusans-Bold", "", defaultFontSize)
|
||||||
writeText(tabstopLeft, yPos, 0, fmt.Sprintf("MwSt. %.1f%%", invoiceData.Metadata.Vat))
|
writeText(tabstopLeft, yPos, 0, fmt.Sprintf("MwSt. %.1f%%", invoiceData.Metadata.Vat))
|
||||||
mwstAmount := round5rappen(totalNetAmount * invoiceData.Metadata.Vat / 100)
|
mwstAmount := round5rappen(totalNetAmount * invoiceData.Metadata.Vat / 100)
|
||||||
|
pdf.SetFont("Dejavusans", "", defaultFontSize)
|
||||||
writeText(tabstopPrice, yPos, widthPrice, floatToString(mwstAmount), "TR")
|
writeText(tabstopPrice, yPos, widthPrice, floatToString(mwstAmount), "TR")
|
||||||
yPos = yPos + lineSpacing
|
yPos = yPos + lineSpacing
|
||||||
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
|
totalInvoiceAmount = totalNetAmount + mwstAmount
|
||||||
writeText(tabstopPrice, yPos, widthPrice, floatToString(totalNetAmount+mwstAmount), "TR")
|
writeText(tabstopPrice, yPos, widthPrice, floatToString(totalNetAmount+mwstAmount), "TR")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue