An Entry now has pointers to an Invoice and a Bill, although
both are represented by a GncInvoice. Force a GncInvoice to a
Bill if the owner is a Vendor. (It's a regular Invoice if the
owner is a Customer). Eventually we can support Owner ==
Employee to deal with Expense Reports.
* gncInvoice: add gncBill{Add,Remove}Entry
* gncEntry: add gncEntry{Get,Set}Bill
* gw-business-core: wrap gncEntryGetBill
* gnc-entry-xml-v2: add entry:bill pointer
* gncEntryLedger: deal with Bill Entry. Don't need a lot of
columns (compared to Invoices). This is not complete, but is
at a workable point now.
* dialog-invoice: call the BILL vs. INVOICE entry-ledger based
on the invoice owner.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7108 57a11ea4-9604-0410-9ed3-97b8803252fd
"Bill" for vendor reports. Fix the aging table. Reverse the
numerics for vendor reports.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7106 57a11ea4-9604-0410-9ed3-97b8803252fd
need to pull in the g-wrap module for gw:wcp-is-of-type?
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7101 57a11ea4-9604-0410-9ed3-97b8803252fd
generators for various objects. This simplifies the distributed
generation of kvp-option dialogs.
* app-utils.scm: export kvp-option-registry functions
* option-util: add option_db_changed() function
* business-gnome.scm: add "File -> File Preferences" menu item
which is the kvp-option dialog for the Book.
* business-prefs.scm: register a kvp-option generator for gnc:id-book
* gnc-book: add gnc_book_kvp_changed() function
* gw-engine-spec.scm: wrap gnc_book_kvp_changed
* dialog-options.c: only call the SCM apply_cb if the optiondb
actually changed.
* gnome-utils.scm: create gnc:kvp-option-dialog procedure to create
an kvp-option dialog for the speficied type. Export this procedure.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7097 57a11ea4-9604-0410-9ed3-97b8803252fd
option_db_destroy()
* options.scm: fix scm->kvp method; fix a typo; add clear-kvp?
argument to gnc:options-scm->kvp for whether to clear out the
kvp before saving it.
* business-gnome.scm: add code to test the kvp option-dialog
* kvp-scm.c: fix the delete_at_path() function to actually work right.
* dialog-options: create a function (and support routines) to
use SCM apply_cb and close_cb callback functions:
options_dialog_set_callbacks()
* gw-gnome-utils-spec.scm: wrap <gnc:OptionWin*>, options_dialog_new(),
options_dialog_destroy(), options_dialog_build_contents(), and
options_dialog_set_callbacks()
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7096 57a11ea4-9604-0410-9ed3-97b8803252fd
* gnc-file.c: change the open/closed book hooks to take a
<gnc:Session*> instead of a string.
* binary-import.scm: fix the book-opened-hook.
* main-window.scm: fix the book-opened/closed-hook calls
* main.scm: fix the book-opened/closed-hook calls
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7095 57a11ea4-9604-0410-9ed3-97b8803252fd
and kvp->scp. Implement these two methods for most of the options.
* app-utils.scm: export the kvp->scm and scm->kvp procedures
* business-options.scm: Implement the kvp->scm and scm->kvp methods
for the business options.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7094 57a11ea4-9604-0410-9ed3-97b8803252fd
for changing the book-opened-hook and book-closed-hook
prototypes.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7093 57a11ea4-9604-0410-9ed3-97b8803252fd
This function will clear a sub-tree out of a kvp_frame.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7090 57a11ea4-9604-0410-9ed3-97b8803252fd
* business-options.c: implement invoice option for the dialog
* gncEntryLedgerLoad.c: fix a compiler warning
* invoice.scm: make report visible; deal with no invoice; make
invoice a visible option on the general page; deal with "printing"
un-posted invoices.
* receivables.scm: remove code I don't need
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7085 57a11ea4-9604-0410-9ed3-97b8803252fd
options to plug into the options dialog.
* businessmod-gnome: initialize business options
* business-utils: pack into box FALSE, not TRUE
* owner-report: put the company into the options dialog instead of
hiding it.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7084 57a11ea4-9604-0410-9ed3-97b8803252fd
* dialog-options: publish gnc_options_dialog_changed_internal() so
pluggible options can set the flag, too.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7083 57a11ea4-9604-0410-9ed3-97b8803252fd
the supplied owner actually matches..
Internationalize the business reports a bit better.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7081 57a11ea4-9604-0410-9ed3-97b8803252fd
added "links" to the company, invoices, and company-report.
Create a "Business Reports" menu item under "Reports" and put the
business reports there. This required a new startup hook to allow
dynamic creation of the Report Menu. Change the aging reports to
use Invoices and Lots instead of the transaction description to
differentiate actual companies.
* dialog-invoice: publish the function to open a company-report
* business-urls: hooks into gnc-html for business objects.
Initialize at module load-time. wrap the business url types.
* business-core: create gnc:owner-from-split which is used by a
bunch of the business reports. wrap gncOwnerCopy().
* fix the "Create Test Data" extension
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7080 57a11ea4-9604-0410-9ed3-97b8803252fd
* src/gnome/druid-hierarchy.c (gnc_get_ea_locale_dir): If current
locale doesn't work for account hierarchy druid, then check all
abbreviated versions of that locale.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7079 57a11ea4-9604-0410-9ed3-97b8803252fd
function that adds a list of valid account-types; this limits the
account-tree dialog to only "reasonable" accounts.
* option-util.[ch]: add function to obtain GList* of valid
account-types. NULL means "all".
* dialog-options: Limit account-list by types.
* Update payables and receivables reports to limit account types.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7076 57a11ea4-9604-0410-9ed3-97b8803252fd
Window. Fill in the callbacks required to get the menu to work.
* Create a hook into the "owner-report" and link that into the
Invoice Window, so you can print the report from any Invoice.
* add a hook in the entry ledger to obtain the current Query (to
set the sort order).
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7075 57a11ea4-9604-0410-9ed3-97b8803252fd
popup. Only set the popup for Read-Write invoices.
* business/business-gnome/glade/invoice.glade: define the popup
menu in glade.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7068 57a11ea4-9604-0410-9ed3-97b8803252fd
space. This was because the HBOX was had both expand and fill set to
true. Oops.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7062 57a11ea4-9604-0410-9ed3-97b8803252fd
gnc_build_url() (or gnc:html-build-url in scheme) instead of
assuming the HTML prototype string. Unfortunately the
help-window-index.scm cannot be fixed.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7060 57a11ea4-9604-0410-9ed3-97b8803252fd
* accounts/fr_FR/*: Add french account hierarchy template by
Yannick LE NY <y-le-ny@ifrance.com> (might need more work though.)
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7057 57a11ea4-9604-0410-9ed3-97b8803252fd