r20054 - gnucash/trunk/src - Bug #638543: Centralize the counter formatting in qofbook.

Christian Stimming cstim at code.gnucash.org
Mon Jan 10 16:39:07 EST 2011


Author: cstim
Date: 2011-01-10 16:39:06 -0500 (Mon, 10 Jan 2011)
New Revision: 20054
Trac: http://svn.gnucash.org/trac/changeset/20054

Modified:
   gnucash/trunk/src/business/business-gnome/dialog-customer.c
   gnucash/trunk/src/business/business-gnome/dialog-employee.c
   gnucash/trunk/src/business/business-gnome/dialog-invoice.c
   gnucash/trunk/src/business/business-gnome/dialog-job.c
   gnucash/trunk/src/business/business-gnome/dialog-order.c
   gnucash/trunk/src/business/business-gnome/dialog-vendor.c
   gnucash/trunk/src/engine/gncCustomer.c
   gnucash/trunk/src/engine/gncCustomerP.h
   gnucash/trunk/src/engine/gncEmployee.c
   gnucash/trunk/src/engine/gncEmployeeP.h
   gnucash/trunk/src/engine/gncInvoice.c
   gnucash/trunk/src/engine/gncInvoiceP.h
   gnucash/trunk/src/engine/gncJob.c
   gnucash/trunk/src/engine/gncJobP.h
   gnucash/trunk/src/engine/gncOrder.c
   gnucash/trunk/src/engine/gncOrderP.h
   gnucash/trunk/src/engine/gncVendor.c
   gnucash/trunk/src/engine/gncVendorP.h
   gnucash/trunk/src/libqof/qof/qofbook.c
   gnucash/trunk/src/libqof/qof/qofbook.h
Log:
Bug #638543: Centralize the counter formatting in qofbook.

Patch by Matthijs Kooijman:

Instead of querying qofbook for the next counter number and then doing
the formatting in all the different business modules (all using the same
format string), the formatting is now moved inside
qof_book_increment_and_get_counter (which is renamed to
qof_book_increment_and_format_counter).

This changes the return value of a bunch of helper functions from gint64
(the counter value) to gchar* (the formatted counter value), but does
not have any user-visible changes.



More information about the gnucash-patches mailing list