Commit Graph

9 Commits

Author SHA1 Message Date
Derek Atkins
ac574a38eb * engine/gnc-be-utils.h: implement macro helpers for begin/commit functions
* business/business-core/*.c: Implement BeginEdit()/CommitEdit() functions
	  for all the business-accounting data objects.
	* Use the begin/commit calls in the GUI and file-backend.
	* mostly fixes bug #96855.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7431 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-11-03 20:21:42 +00:00
Derek Atkins
43083bb2db * Create an "owner-report" which prints out a set of Invoice and
Payment transactions and also an aging report for a single "owner"
	(e.g. Customer or Vendor).  This is still a first pass, so it
	might not be correct.  It uses Lots, but it assumes that the
	Account is periodically closed and re-opened (does not have a
	'start-date').  It still needs to be tied into the main GUI.

	* gncJob: add gncJobRetGUID() and gncJobLookupDirect()

	* gncOwner: add gncOwnerRetGUID()

	* gw-business-core-spec.scm: wrap GncAmountType, GncTaxIncluded
	GncBillTermType, gncInvoiceGetInvoiceFromLot(), gncJobRetGUID(),
	jobJobLookupDirect(), gncOwnerGetEndOwner(),
	gncOwnerGetOwnerFromLot(), gncOwnerRetGUID()

	* business-gnome.scm: add extensions to test the owner-report

	* business-options.scm: add an "owner" option-type


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7037 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-06-27 20:03:19 +00:00
Derek Atkins
25a6b025ab Remove dialog-job-select.[ch] from the build process.
Add JOB_ACTIVE to the list of queriable parameters


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6844 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-05-09 21:35:24 +00:00
Derek Atkins
3c71341542 - Provide 'QUERY_PARAM_GUID' to abstract the guid parameter. Remove all
the *_GUID defines, and change them all the QUERY_PARAM_GUID.
- Add a gncObject is_dirty() method, and have the book call it --
  this gives the UI a means to warn the user if any business objects
  changed.
- abstract out the storage methods in the business objects


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6734 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-24 22:12:24 +00:00
Derek Atkins
5836537d92 - register gncAddress for queries
- register gncJob for queries
- add customer->address and vendor->address methods
- rename gncJobSortFunc to gncJobCompare


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6685 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-02-04 18:54:06 +00:00
Derek Atkins
4d54387978 - Support Vendor-owned Jobs.. Fill in all the GNC_OWNER_VENDOR place
holders with appropriate code.
- Change gncJob{Get,Set}Desc to {Get,Set}Reference to better reflect
  its purpose in life


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6636 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-22 17:16:02 +00:00
Derek Atkins
7e2891f0d8 Change Job to use GncOwner instead of GncCustomer -- this lets
you create Jobs for Vendors as well as Jobs for Customers.
Still needs more Vendor support to maintain a Job list.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6635 57a11ea4-9604-0410-9ed3-97b8803252fd
2002-01-22 15:51:14 +00:00
Derek Atkins
b1cdb65bcd * Remove the "GncBusiness" object type in preparation to move
structure registration (GncBusinessObject) into "gncCore" in the
   engine.

 * Change all the Business Objects to take a GNCBook instead of
   GncBusiness; use the GNCEntityTable in the Book for GUID storage.

 * Use xaccGUIDNew() instead of guid_new().

 * Move the object storage tables into the GNCBook via get/set_data.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6041 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-25 05:34:34 +00:00
Dave Peticolas
94d8372af6 Derek Atkins's business accounting patch.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5902 57a11ea4-9604-0410-9ed3-97b8803252fd
2001-11-17 01:17:06 +00:00