Make quantity a floating point number not an integer.
rouilj opened this issue · comments
For invoices that bill by time, --quantity
should be a floating point number so 1/2 hour or other
time periods can be specified. Currently using --quantity 0.5 --rate 175
I get:
2023/07/03 23:32:17 invalid argument "0.5" for "-q, --quantity" flag: strconv.Atoi:
parsing "0.5": invalid syntax
for invoicing a 1/2 hour call.
Thanks.
@rouilj until this is fixed, you can change your rate on items that are qty < 1 to match, for e.g. -q 1 -r 87.5
since -r or --rates
DOES support floating/decimals. Then, in the item notes, in parens, you can say (1/2 hrs @ $175/hr = $87.50). Just a work around.
I actually decided to give a shot to learning a little go. So I have my own change for it. But thanks for the pointer. I'll use your pointer to see if my change is idiomatic go.
I actually decided to give a shot to learning a little go. So I have my own change for it. But thanks for the pointer. I'll use your pointer to see if my change is idiomatic go.
LOL, me too. Today is my first day ever writing any GO
code. Take a look at #31 I just submitted code for implementing version command, Chinese char support,and the qty change.