Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate Prepayments to Invoice #387

Open
phyllipy opened this issue Sep 29, 2017 · 2 comments
Open

Allocate Prepayments to Invoice #387

phyllipy opened this issue Sep 29, 2017 · 2 comments
Labels

Comments

@phyllipy
Copy link
Contributor

There is currently no way to allocate prepayments to invoices.
https://developer.xero.com/documentation/api/prepayments

@rjaus
Copy link
Collaborator

rjaus commented Jan 24, 2018

Hey @phyllipy. The credit note model already has functionality for creating allocations, it's the same for Prepayments. I've made the same functionality available for the Prepayments model.

Branch: https://github.com/waynerobinson/xeroizer/blob/prepayment_allocation/lib/xeroizer/models/prepayment.rb

There are some limitations tho (on both CreditNotes & Prepayments) due to the implementation (not the API).

Only one allocation can be made. The allocate function continues to allocate the initial allocation.

Appreciate it if you want to have a go at refactoring it.

@phyllipy
Copy link
Contributor Author

phyllipy commented May 9, 2018

Hey @rjaus ! Been a while, any news on this? otherwise I'd be happy to refactor it =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants