Re: [GNC] Fractional Hours?

2020-07-07 Thread Andrew Clark
Ok, thank you for your help. I had a look at the eguile file for the report
and it calls fmtnumeric for the qty. It looks like that's changed in the
utilities file along the way from:

(define-public (fmtnumeric n)
  ;; Format gnc-numeric n with as many decimal places as required
  (fmtnumber (gnc-numeric-to-double n)))

To:

(define-public (fmtnumber n)
  ;; Format a number (integer or real) into something printable
  (number->string (if (integer? n) (inexact->exact n) n)))

I created a copy of the eguile file in my home directory and pointed my
report to use that, put a call the contents of the old function directly in
place where qty is printed and it now works cleanly.

Here's a diff:

--- /usr/share/gnucash/scm/gnucash/report/taxinvoice.eguile.scm 2020-07-08
10:38:56.578832054 +1000
+++ "/srv/home/aclark/Documents/Account Keeping/taxinvoice.eguile.scm"
2020-07-08 10:39:36.206075678 +1000
@@ -351,7 +351,7 @@
   
   
   
-
+
   
   
 

I don't know if that's the best fix or if there's a more suitable function
to be calling there?

On Thu, 2 Jul 2020 at 13:36, Adrien Monteleone <
adrien.montele...@lusfiber.net> wrote:

> Sorry, I see that now.
>
> If it was working before, then this would be a change in the report's code.
>
> A bug report on GnuCash’s Bugzilla would be in order.
>
> In the meantime, you could download and ‘borrow’ the report from a
> previous version that worked. If you update before it is fixed, you’ll have
> to keep overwriting the new report with the old.
>
> Another option would be to set up the old report as a custom report. (see
> the wiki on how)
>
> That way, it won’t get overwritten on an update, and when your bug is
> fixed, you can ditch the ‘custom’ old copy.
>
> Finally, it seems this is only the case with the Tax Invoice that I can
> tell. A standard (Easy) invoice report shows decimals.
>
> Other than looks, I’m not even certain of the benefits of the ’tax
> invoice’. For me, there is no tax info on it. But the other invoices do
> have tax info –odd that is.
>
> Regards,
> Adrien
>
> > On Jul 1, 2020 w27d183, at 9:25 PM, Andrew Clark 
> wrote:
> >
> > Sorry, I misspoke in my previous.
> >
> > That setting is already in place, but this isn't a price.
> >
> > It's an actual amount that really should be decimal. Saying I'm billing
> for 171/2 hours work is confusing.
> >
> > It shows in both the Tax Invoice report and the Australian Tax Invoice
> report.
> >
>
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
Cheers,

Andrew.
--- /usr/share/gnucash/scm/gnucash/report/taxinvoice.eguile.scm	2020-07-08 10:38:56.578832054 +1000
+++ "/srv/home/aclark/Documents/Account Keeping/taxinvoice.eguile.scm"	2020-07-08 10:39:36.206075678 +1000
@@ -351,7 +351,7 @@
   
   
   
-
+
   
   
 
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fractional Hours?

2020-07-01 Thread Adrien Monteleone
Sorry, I see that now.

If it was working before, then this would be a change in the report's code.

A bug report on GnuCash’s Bugzilla would be in order.

In the meantime, you could download and ‘borrow’ the report from a previous 
version that worked. If you update before it is fixed, you’ll have to keep 
overwriting the new report with the old.

Another option would be to set up the old report as a custom report. (see the 
wiki on how)

That way, it won’t get overwritten on an update, and when your bug is fixed, 
you can ditch the ‘custom’ old copy.

Finally, it seems this is only the case with the Tax Invoice that I can tell. A 
standard (Easy) invoice report shows decimals.

Other than looks, I’m not even certain of the benefits of the ’tax invoice’. 
For me, there is no tax info on it. But the other invoices do have tax info 
–odd that is.

Regards,
Adrien

> On Jul 1, 2020 w27d183, at 9:25 PM, Andrew Clark  wrote:
> 
> Sorry, I misspoke in my previous.
> 
> That setting is already in place, but this isn't a price.
> 
> It's an actual amount that really should be decimal. Saying I'm billing for 
> 171/2 hours work is confusing.
> 
> It shows in both the Tax Invoice report and the Australian Tax Invoice report.
> 


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fractional Hours?

2020-07-01 Thread Andrew Clark
Sorry, I misspoke in my previous.

That setting is already in place, but this isn't a price.

It's an actual amount that really should be decimal. Saying I'm billing for
171/2 hours work is confusing.

It shows in both the Tax Invoice report and the Australian Tax Invoice
report.

On Thu, 2 Jul 2020 at 12:06, Andrew Clark  wrote:

> That setting is in place.
>
> This is showing up under the hours column for an invoice, a dollar amount,
> not a fraction display in a conversion.
>
> On Tue, 23 Jun 2020 at 10:25, Adrien Monteleone <
> adrien.montele...@lusfiber.net> wrote:
>
>> Check Preferences > General > Numbers > Force prices to display as
>> decimals.
>>
>> Note, some people prefer fractions for investments for exact pricing, but
>> it seems this is a one-time setting.
>>
>> That might be a good RFE to allow different treatment by register type.
>>
>> Regards,
>> Adrien
>>
>> > On Jun 22, 2020 w26d174, at 7:02 PM, Andrew Clark 
>> wrote:
>> >
>> > I generated an invoice last month for 85.50 hours. Weirdly, the invoice
>> > shows this as 171/2.
>> > [image: invoice.png]
>> > I'm running version 3.10+(2020-04-11) on Debian and I haven't changed
>> any
>> > settings that I know of.
>> >
>> > How do I get decimal hours back on my tax invoices?
>>
>>
>> ___
>> gnucash-user mailing list
>> gnucash-user@gnucash.org
>> To update your subscription preferences or to unsubscribe:
>> https://lists.gnucash.org/mailman/listinfo/gnucash-user
>> If you are using Nabble or Gmane, please see
>> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
>> -
>> Please remember to CC this list on all your replies.
>> You can do this by using Reply-To-List or Reply-All.
>>
>
>
> --
> Cheers,
>
> Andrew.
>


-- 
Cheers,

Andrew.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fractional Hours?

2020-07-01 Thread Andrew Clark
That setting is in place.

This is showing up under the hours column for an invoice, a dollar amount,
not a fraction display in a conversion.

On Tue, 23 Jun 2020 at 10:25, Adrien Monteleone <
adrien.montele...@lusfiber.net> wrote:

> Check Preferences > General > Numbers > Force prices to display as
> decimals.
>
> Note, some people prefer fractions for investments for exact pricing, but
> it seems this is a one-time setting.
>
> That might be a good RFE to allow different treatment by register type.
>
> Regards,
> Adrien
>
> > On Jun 22, 2020 w26d174, at 7:02 PM, Andrew Clark 
> wrote:
> >
> > I generated an invoice last month for 85.50 hours. Weirdly, the invoice
> > shows this as 171/2.
> > [image: invoice.png]
> > I'm running version 3.10+(2020-04-11) on Debian and I haven't changed any
> > settings that I know of.
> >
> > How do I get decimal hours back on my tax invoices?
>
>
> ___
> gnucash-user mailing list
> gnucash-user@gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


-- 
Cheers,

Andrew.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fractional Hours?

2020-06-22 Thread w...@theprescotts.com
That explains something I have always wondered about. I often have transactions 
that are in US dollars in one account and Mexican pesos in the other account. 
It expressed the exchange rate as a fraction, but a decimal value would be more 
useful. Now I know how to change that.

Thanks,
Will

On 2020 Jun 22, at 06-22 19:25:12, Adrien Monteleone 
 wrote:

Check Preferences > General > Numbers > Force prices to display as decimals.

Note, some people prefer fractions for investments for exact pricing, but it 
seems this is a one-time setting.

That might be a good RFE to allow different treatment by register type.

Regards,
Adrien

> On Jun 22, 2020 w26d174, at 7:02 PM, Andrew Clark  wrote:
> 
> I generated an invoice last month for 85.50 hours. Weirdly, the invoice
> shows this as 171/2.
> [image: invoice.png]
> I'm running version 3.10+(2020-04-11) on Debian and I haven't changed any
> settings that I know of.
> 
> How do I get decimal hours back on my tax invoices?


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


Re: [GNC] Fractional Hours?

2020-06-22 Thread Adrien Monteleone
Check Preferences > General > Numbers > Force prices to display as decimals.

Note, some people prefer fractions for investments for exact pricing, but it 
seems this is a one-time setting.

That might be a good RFE to allow different treatment by register type.

Regards,
Adrien

> On Jun 22, 2020 w26d174, at 7:02 PM, Andrew Clark  wrote:
> 
> I generated an invoice last month for 85.50 hours. Weirdly, the invoice
> shows this as 171/2.
> [image: invoice.png]
> I'm running version 3.10+(2020-04-11) on Debian and I haven't changed any
> settings that I know of.
> 
> How do I get decimal hours back on my tax invoices?


___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.


[GNC] Fractional Hours?

2020-06-22 Thread Andrew Clark
I generated an invoice last month for 85.50 hours. Weirdly, the invoice
shows this as 171/2.
[image: invoice.png]
I'm running version 3.10+(2020-04-11) on Debian and I haven't changed any
settings that I know of.

How do I get decimal hours back on my tax invoices?

-- 
Cheers,

Andrew.
___
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
If you are using Nabble or Gmane, please see 
https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
-
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.