Skip to content

Commit

Permalink
Merge pull request #17 from sj902/fix/tax-amount-symbol
Browse files Browse the repository at this point in the history
Fix: Put currency symbol in tax amount
  • Loading branch information
angelodlfrtr authored Jun 1, 2022
2 parents f83731e + 81f800b commit 29665f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion item.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func (i *Item) appendColTo(options *Options, doc *Document) {
dAmount := dCost.Mul(taxAmount.Div(decimal.NewFromFloat(100)))
taxDesc = ac.FormatMoneyDecimal(dAmount)
} else {
taxTitle = fmt.Sprintf("%s %s", taxAmount, "€")
taxTitle = fmt.Sprintf("%s %s", ac.Symbol, taxAmount)
dCost := i.totalWithoutTaxAndWithDiscount()
dPerc := taxAmount.Mul(decimal.NewFromFloat(100))
dPerc = dPerc.Div(dCost)
Expand Down

0 comments on commit 29665f1

Please sign in to comment.