GNOME Bugzilla – Bug 687504
Not possible to reset an invoice/bill counter format
Last modified: 2018-06-29 23:11:36 UTC
I have set a number format for the invoice/bill counters in my book via File->Preferences->Counters I want to remove one of the formats now so the default format is used again. This doesn't seem possible. Steps to reproduce: If you never set a custom counter format in your book, then let's first add one - open the counter preferences tab - set a counter on the bill counter, for example 2012-%03lli - click ok If you want, you could now create a bill and notice it will use 2012-xxx as bill number Now let's try to remove the custom counter format again - open the counter preferences tab - delete the content of the bill counter format field - click ok - open the counter preferences tab again => observe the bill counter format is still there
This was a tricky one. The main issue was that the scm code to save options to kvp would not attempt to save if the value to save happened to be the default value. This is fine when writing saved reports to file, but not ok when working with kvp's. As I'm not sure if this code is shared with other parts of gnucash I decided to work around it locally for the business counter options only.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=687504. Please update any external references or bookmarks.