Skip to content

invoicing a second time, before being paid for the first one #48

@bburdette

Description

@bburdette

A corner case:

The user wants to generate a new invoice before being paid for the last, and they want to break it out by user using the distribution tab.

The problem is that the distribution tab doesn't remove invoiced hours from its calculation, only paid hours. So people could have some of their hours counted twice on invoices.

The hack solution is to generate the payments on the first invoice, so that the workers are paid for it. Then calculate the new invoice amounts with the distribution algo. Then, go back and delete the first invoice payments.

The non-hack solution is TBD. Probably would require an interface change for the distribution calc bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions