Re: [GNC] Customizing invoices (Helmut Eller

2022-03-31 Thread john
Adrien, Sort of. Yes, quantity is a multiplier of a commodity, but the way the commodity is measured affects what are the legitimate fractions the quantity can use. If you sell something by the kilo and have a scale that's accurate to the gram then the fraction for that commodity is 1/1000. If

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-31 Thread Adrien Monteleone
John, Sorry I guess I misunderstood your suggestion wrong. What's throwing me off is that setting up a non-currency commodity isn't going to help as I see it. Quantity is not a commodity. It is the multiplier of one. A line-item on an invoice is always some multiplier of a currency. The OPs

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-30 Thread john
Not a currency: Currency smallest fractions are set by law in the currency's issuing country, the ISO4217 committee maintains a list, and GnuCash follows that list. Non-currency commodities are more user-configurable via the Security editor, though you'll make yourself crazy if you set something

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-30 Thread Adrien Monteleone
Helmut, It isn't a matter of using securities on invoices. The Security Editor is simply where you set the smallest fraction of a currency. (and thus the number of digits displayed) John is proposing tying that setting in to be used outside of securities, in this case for invoices amounts. (s

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread Helmut Eller
On Tue, Mar 29 2022, John Ralls wrote: > I'd think amounts on invoices should be in some integer multiple of > the commodity's smallest fraction traded--that's a property of the > commodity that you set in the New/Edit Security dialog--and should > display as a decimal with the appropriate number

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread Adrien Monteleone
Thanks to you and Chris for investigating. Hopefully, this will resolve the discrepancy. Regards, Adrien On 3/29/22 10:50 PM, john wrote: Chris has created https://bugs.gnucash.org/show_bug.cgi?id=798496 to document working on that.

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread john
> On Mar 29, 2022, at 7:58 PM, Adrien Monteleone > wrote: > > It doesn't affect it now, but that would be reasonable at least for prices. > And if someone is really intent on 4 decimal precision for a quantity, > perhaps their answer is to rethink the base unit of the invoice item. (one >

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread Adrien Monteleone
On 3/29/22 5:14 PM, John Ralls wrote: On Mar 29, 2022, at 10:33 AM, Adrien Monteleone wrote: The report should simply print the data from the invoice unchanged. Be careful what you ask for. The data from the invoice is a rational number, meaning a numerator and a denominator. The print r

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread John Ralls
> On Mar 29, 2022, at 10:33 AM, Adrien Monteleone > wrote: > > The report should simply print the data from the invoice unchanged. Be careful what you ask for. The data from the invoice is a rational number, meaning a numerator and a denominator. The print routine will print that as an int

Re: [GNC] Customizing invoices (Helmut Eller

2022-03-29 Thread Adrien Monteleone
David, it seems the list-thread is broken, so for completeness, I'm posting there that I filed bug: https://bugs.gnucash.org/show_bug.cgi?id=798493 on this issue. This also happens for the Unit Price column. The report should simply print the data from the invoice unchanged. Regards, Adrien

[GNC] Customizing invoices (Helmut Eller

2022-03-28 Thread David Long
I have same problem as Helmut who wants to display more than 2 decimal places in the quantity field of an invoice. My case is if I want to charge say 7 months of an annual subscription then my quantity is 7 12ths so 3 decimal places would be better. My only workaround was to add it in the descripti