jshiwam
jshiwam
Update Query-Service setup documentation.
https://github.com/angelodlfrtr/go-invoice-generator/blob/master/totals.go#L60 On this line we calculate the discountPercent as follows: `discountPercent = discountAmount.Mul(decimal.NewFromFloat(100)).Div(totalWithoutTax)` here we have already subtracted document.Discount from `doc.TotalWithoutTaxAndWithoutDocumentDiscount()` which gives us `totalWithoutTax`. Shouldn't we perform the calculation...
This PR contains example for goroutines