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

Write a command to recover an invoice #251

Open
ecoslado opened this issue Jan 19, 2017 · 1 comment
Open

Write a command to recover an invoice #251

ecoslado opened this issue Jan 19, 2017 · 1 comment

Comments

@ecoslado
Copy link
Contributor

When someone removes an invoice all the lines and payments are removed with it. The thing would be to write a command to restore the invoice and the removed data. Something like:

rake siwapp:invoices:restore[14,15395]

Where 14 is the series_id and 15395 is the invoice number.

@ecoslado
Copy link
Contributor Author

ecoslado commented Feb 21, 2017

Since the invoice number is removed when invoice is removed, the query to search the invoice to restore should be by series_id and deleted_number (which stores the invoice old number).

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

No branches or pull requests

1 participant