Tax Tables - how to rename entries?

Sébastien de Menten sdementen at gmail.com
Mon Mar 9 16:45:11 EDT 2015


Hi Martin,

If you can install piecash
<http://piecash.readthedocs.org/en/latest/index.html> (easy on linux, more
challenging on windows) and know a little bit of python, the following
python script allows you to change the name of a taxtable entry :

####### START ###########
import piecash

book = piecash.open_book("your_book_that_will_be_modified.gnucash",
readonly=False)
for tr in book.query(piecash.business.Taxtable).all():
    if tr.name=="your_old_name":
        print "Found a taxtable entry ! Changing its name ..."
        tr.name="your_new_name"

book.save()
####### END ###########

kr

sebastien

On Sun, Mar 8, 2015 at 10:31 PM, MP99 <martinrpayneuk at gmail.com> wrote:

> I have created various entries in the Tax Tables, which I would now like to
> rename. (I don't need to change which account they map to, just the names
> which I now regret using.)
>
> There's no edit button on the Tax Tables dialog box. I believe I could do
> it
> by creating new entries, reopening all my bills and invoices, changing to
> the new entries, closing (and re-assigning the payments), then I could
> delete the old entries.
>
> Is there a better way to do this within the package?
>
> If not, is this something I could reasonably do by editing the file
> directly?
>
> Many thanks for any help.
>
> cheers, Martin
>
> PS I did search for this subject, and the only other query I found doesn't
> seem to have received an answer.
>
>
>
> --
> View this message in context:
> http://gnucash.1415818.n4.nabble.com/Tax-Tables-how-to-rename-entries-tp4676729.html
> Sent from the GnuCash - User mailing list archive at Nabble.com.
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>


More information about the gnucash-user mailing list