After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 687504 - Not possible to reset an invoice/bill counter format
Not possible to reset an invoice/bill counter format
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Business
git-master
Other Linux
: Normal normal
: ---
Assigned To: Derek Atkins
Christian Stimming
Depends on:
Blocks:
 
 
Reported: 2012-11-03 13:45 UTC by Geert Janssens
Modified: 2018-06-29 23:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Geert Janssens 2012-11-03 13:45:49 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
Comment 1 Geert Janssens 2016-03-23 17:36:58 UTC
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.
Comment 2 John Ralls 2018-06-29 23:11:36 UTC
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.