rdb / toggl2moneybird

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

Confused about billable flags #4

Closed sandord closed 3 months ago

sandord commented 3 months ago

It seems that when a project has the Billable switch to off but a time entry made for the project does have the Billable flag checked, the tool doesn't sync the time entry.

When I turn the Billable switch on for the project, ALL time entries for the project are synced, not just the ones with the Billable flag checked on them.

Am I doing something wrong?

rdb commented 3 months ago

It looks like both billable and unbillable entries are synced at the moment, but the billable flag should be properly converted on the moneybird end (which also has a billable flag for time entries).

I do think it disregards unbillable projects unless you pass the --unbillable flag.

I now realise this behaviour is a bit unintuitive. What behaviour are you looking for in your situation?

sandord commented 3 months ago

I'd like to sync only time entries that are billable themselves. I have no need for non-billable entries in Moneybird.

As a side note, I don't really know what the Billable switch on projects actually does in Toggl, other than allowing to set a project level rate.

rdb commented 3 months ago

OK, I'll see about making that change.

I think the Billable switch on projects sets the default billability of entries you create in Toggl.

I think I probably got mixed up a bit while implementing it. I think the billable switch on a project probably shouldn't affect toggl2moneybird.

sandord commented 3 months ago

I think the Billable switch on projects sets the default billability of entries you create in Toggl.

Makes sense!

I think I probably got mixed up a bit while implementing it. I think the billable switch on a project probably shouldn't affect toggl2moneybird.

I agree that only the billable flags on time entries should matter.

rdb commented 3 months ago

Just published 0.5.0, which ignores the billable status on a project and only looks at that on individual entries. Haven't tested it extensively, so let me know if there are problems.

sandord commented 3 months ago

Great! Meanwhile I decided to manually put billable hours on my invoices because I need to do a lot of consolidation, rounding and rephrasing of the items anyway. But I'll have to see how it goes. Maybe I'll revisit the idea of using this tool after a while!

rdb commented 3 months ago

Fair enough! I tend to do the consolidation in Toggl Track. The "invoice" command can show me a draft invoice for a period, and if I find that things need to be changed, I can go back to Toggl Track, modify them, and re-run the sync command to update the descriptions. But do what works for you :-)