-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
#300 Allow Invoice Payment Only If totalAmount >= 108 EUR #313
Conversation
@criske thank you for your Pull Request. I'll assign someone to review it soon. |
no bounty |
@amihaiemil please review this Pull Request. Deadline (when it should be merged or closed) is You should check if the requirements have been implemented (partially or in full), if there are unit tests covering the changes and if the CI build passes. Feel free to reject the PR or ask for changes if it's too big or not clear enough. Estimation here is |
@amihaiemil speaking of pdf invoices, shouldn't we delete them from server after user finished the download? |
@@ -157,13 +157,17 @@ var projectContractsCount = -1; | |||
+ "</a> "; | |||
if (invoice.paymentTime == "null" && invoice.transactionId == "null") { | |||
status = "Active"; | |||
if (parseFloat(invoice.totalAmount) > 0.0) { | |||
var totalAmount = parseFloat(invoice.totalAmount.substring(0, invoice.totalAmount.length - 1)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I have a bug here though, total amount has comma as decimal separator and messes the parseFloat.
- fixed transformation currency to float
@criske > Also active invoices with 0 total amount can't be downloaded. Please change this pack, I want to allow invoice download even if the value is 0 :D Yes, we could remove the invoices after download, but I'm not sure how to do that in the Spring RestController. |
Right, that makes sense.
The easiest way is to use |
- fixed transformation currency to float
Open an Issue about this and I'll assign it to you :D |
@amihaiemil thank you for resolving this ticket. I've just added it to your active invoice. You can always check all your invoices and more on the Contributor Dashboard. |
fixes #300
Also active invoices with 0 total amount can't be downloaded. (I think this bug was reintroduced after we moved the pdf generation logic on server)