Hi Derek, Yeah, I am on that track already.
So far I focused on the reporting side only. Goal was to show the price before taxes in taxinvoice.scm instead of the typed in price. I have a working version by adding (and calling) a gncEntryGetInvNetPrice function which calculates this from the existing struct entry. Just working out how to provide that patch for review. My next step will be figuring about good ways to solve the original problem of correctly adding purchase entries to invoices with differing tax rates. And I that without modifying struct entry. Cheers, Christoph > Am 02.02.2017 um 17:57 schrieb Derek Atkins <warl...@mit.edu>: > > Hi, > > Christoph R <subscriptions+lis...@rohland.net> writes: > >> Hi, >> >> while trying to find a way to solve Bug 776380 – Gross value of bills >> charged back instead of net value >> <https://bugzilla.gnome.org/show_bug.cgi?id=776380> I digged into >> gncEntry.c. >> My idea is to add a ?_net_price variable to struct _gncEntry and >> modify gncEntryComputeValue to calculate the net price. > > Is there any particular reason not to use the TaxIncluded flag? Is > there some reason where the setting of TaxIncluded and your new proposed > netPrice flags wouldn't be equivalent? > > -derek > > -- > Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory > Member, MIT Student Information Processing Board (SIPB) > URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH > warl...@mit.edu PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel