[IP-1033]: Bugfix: creation dates of invoices should never be changed#1036
Conversation
invoice_date_created should not be updated and always stay the same
|
Great PR. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@mheiduk again, thank you for this PR. I'll try to go over it this weekend. |
You have to send an overdue invoice to a client. If the setting in Settings -> Invoices -> Other settings is set to "No", then only the due date should update to the current date. If the setting is set to "Yes", then no date should be updated. The creation date should not be updated at all. |
|
Thanks mam! I'll take a look this weekend |
nielsdrost7
left a comment
There was a problem hiding this comment.
Also:
public function mark_sent($invoice_id) in Mdl_invoices.php
Shouldn't you check for that due date as well there?
Because right now it's only checked when the invoice is emailed, but when someone manually sets the invoice to sent that due_date isn't checked?
What do you think?
…#1033 * remove unnecessary settings tmp_invoice_date and tmp_due_date settings * remove unnecessary helper function reset_invoice_due_dates
Thanks for the input! Tried to simplify it as much as possible and cleaned up some things in the process. Please check if everything is working as expected for you. |
90c3d0c
into
InvoicePlane:bugfix/1033-creation-dates-of-invoices-should-never-be-changed
|
Great, great Job! It was fun doing this PR with you. |
Description
only update invoice_date_due when sending email
invoice_date_created should not be updated and always stay the same
See (#1033) for more details
Pull Request Checklist
Issue Type (Please check one or more)