rdb / toggl2moneybird

User-friendly command-line tool for synchronizing time entries from Toggl Track to Moneybird
MIT License
0 stars 0 forks source link

Billable by default in Moneybird #2

Open Lucreativedesign opened 4 months ago

Lucreativedesign commented 4 months ago

Hi there, back again! Thank you for your last update. Is it also possible to somehow let Moneybird think that all the hours are billable by default? And that I can use a tag option inside Toggl 'unbillable' that puts them as unbillable in Moneybird? Thank you!

rdb commented 4 months ago

Hi, 0.4.0 just went live which adds the --unbillable-tag option which marks everything as billable except those with the given tag, eg. --unbillable-tag=unbillable. You no longer need to use the --unbillable option then.

I don't know if you use the invoice command but I've made it more usable for people without a paid Toggl Track subscription, by asking for hourly rate and currency when it can't be determined from the Toggl Track workspace settings, and allowing you to override it on the command-line (eg. --rate=75 --currency=EUR)

Let me know if you encounter any problems.

Lucreativedesign commented 4 months ago

Oeh cool, just did some tests. Looks like it works! Can I now do a clean install of toggl2moneybird? I want to reset some connections with my projects. I already uninstalled the package, but I'm still logged in.

Thx for the the Invoice command, it gives me this error: No unbilled hours found. Do I need to flag the tags here as well?

Thx!

rdb commented 4 months ago

You need to add the flags to the invoice command too, but I can check if I missed something.

Good point that I should add a logout command. In the meantime—you are on macOS, right? Open the Keychain Access app, search for toggl2moneybird and delete the corresponding entries.

Lucreativedesign commented 4 months ago

Hi! I Tried it with the flags for the Invoice. With a fresh restart (Mac indeed, thx for that) I got it to work with:

toggl2moneybird invoice --unbillable-tag=unbillable

Works great!

Also! After my fresh clean start and resync, I noticed that I need to use this combination to show the specific correct projects as billable in Moneybird: First: toggl2moneybird sync --unbillable --exclude-tag=private --exclude-tag "No sync" Then after that: toggl2moneybird sync --unbillable-tag=unbillable --exclude-tag=private --exclude-tag "No sync"

Is this correct? When I don't use the second string it will flag them all as unbillable.

rdb commented 3 months ago

I think this may have been related to #4, I just published 0.5.0 which should not require you to use --unbillable anymore. (I have also renamed that option to --include-unbillable to better set it apart from the tangentially related --unbillable-tag, and explained these flags a bit more in the readme).

I have also added the logout command to forget your credentials and erase for deleting all synchronized entries from moneybird if you want to start over.