[GNC] Income statement report change
Adrien Monteleone
adrien.monteleone at lusfiber.net
Tue Dec 28 20:18:04 EST 2021
I'll hazard the suggestion to examine the main loop that spits out the
account names and either prepend or append code that does: "if my
special option is true, then lookup and output *this* data." You may
have to rename the account name variable and concatenate the two under
the original account name variable so as to preserve report formatting
since most if not all reports result in an HTML table. (this would
effectively put the code and name in a single cell currently occupied by
just the name)
Alternatively, you can edit the name of every account to include the
code. I think that is the 'current' workaround.
Regards,
Adrien
On 8/7/21 4:07 AM, Gerald wrote:
> Hello
>
> I am trying to modify the standard Income statement report to show the
> account code. This option is available in the standard Account Summary
> report but not the Income Statement.
>
> With a lot of help from the wiki I got as far as replicating the standard
> report and adding a boolean option to show account code. But it is only a
> tickbox option that doesn't actually do anything!
>
> I have now reached the limit of my technical ability and need some help
> with making the option actually change the report produced.
>
> Ideally the result will be just like the Account Summary report, ie the
> account code is the first column then the account title. However, it could
> be any column as long as it is tabular.
>
> Is anyone able to help with the report code change required?
More information about the gnucash-user
mailing list