crater-invoice/crater

Add possibility of invoice cancellation (negative amounts in invoice)

Opened this issue ยท 14 comments

Is your feature request related to a problem? Please describe.
Enter possibility of negative bills.
When an already paid invoice, is canceled. It must be possible to create a new invoice with a credit note. But the credit note is negative. Currently it is not possible to enter negative totals.

Describe the solution you'd like
Possibility of negative invoices

Describe alternatives you've considered
Automatically cancel invoices, which then create a credit note in the system with reference to the invoice number and invoice date.

Duplicate #110 still relevant in 2022. Can we add this in the roadmap ?

I can't promise but i will try to make a PR before march.

This is the feature needed for me to use Crater. Very nice software, but can't use it in my business because of not being able to add items with negative prices. An implementation of this would be lovely.

Duplicate #110 still relevant in 2022. Can we add this in the roadmap ?

I can't promise but i will try to make a PR before march.

@RobinDev did you start on this already? could you share something already? Maybe I could have a look with you too. This is also a feature for me that's needed to use crater.

Thanks in advance!

Would also be interested in the progress, if not maybe; i will find some time ๐Ÿค™

I've started working on this and will create a proof of concept. I will share some work soon; maybe you could hook on and/or review it @lowbits

@JoeyJanson yes, i would love to have a a look :)

+1 We need this as well in order to be able to use crater.

@JoeyJanson can we help you out in a way? :)

Are there any news on this matter?

Sorry, took a little while before I could start on this again. Created a PR. Let me know your thoughts!

This is a working proof of concept. Since the column in the database can't be negative this should be the way to go in my opinion. Please let me know your thoughts on this. The front end probably needs some rework but that is not my strong side.

If you're still interested @lowbits please check it out.

blanc6 commented

Is there any news on this subject?
I've seen that you can put negative unit amounts on invoices to "force" a negative invoice. But there's a bug with the number of 00s.

Is there any news on this subject? I've seen that you can put negative unit amounts on invoices to "force" a negative invoice. But there's a bug with the number of 00s.

@ggiak did not like the idea to "use" invoices as credit invoice but would rather create a new super category to have this feature specific for credits. You can read my response in the PR but I did not get any answer to the question if there are any plans to work on the new credit category.

I'm using the changes from my PR myself and it works fine though..

And I'm not so sure if there is any real major development going on for this project. In discord I've seen some messages about "legacy maintenance only". I would love to contribute to improve and develop new features but there is not so much communication about where they (whoever "they" are right now) are heading, what the blocking issues are, where the code effort needs to be etc. Guess they are busy with other stuff (paid cloud solution which makes money of course) as I can understand but it is a bit of a shame since the application in the basis is good.

ggiak commented

Hey @JoeyJanson, I don't have a strong opinion to have the feature in the same category or not.

just to be able to keep a track on "refunds" when it comes to different people handling.

Let me know if you need any assistance on testing your pull request, looks lovely :)

Hey, i guess like @JoeyJanson this repository is dead. So maybe not ideal to create new features here.
Maybe we will create a fork and add their our logic.
Currently you cannot install crater with php 8.2.1