mirror of
https://github.com/itflow-org/itflow
synced 2026-09-06 23:05:12 +00:00
Send Email and Mark Sent modals for invoices and quotes (db 2.7.7)
Send Email opens a contact picker instead of hardcoding the primary contact; Mark Sent asks how it went out and takes a note. Both log recipients / method / note to the document history. Handlers moved GET -> POST. Fixes two pre-existing bugs in the email path: archived contacts were still receiving billing copies, and every copy was addressed to the primary contact by name.
This commit is contained in:
@@ -785,3 +785,24 @@ function createiCalStrCancel($datetime, $title, $uid) {
|
||||
|
||||
return $cal_event->export();
|
||||
}
|
||||
|
||||
/*
|
||||
* The delivery methods offered by the Mark Sent modal on invoices and quotes.
|
||||
*
|
||||
* Marking a document sent records that it left the building by some route
|
||||
* other than ITFlow's own mailer, so the list is about how it got there. It is
|
||||
* deliberately a fixed list rather than a categories row: the post handler
|
||||
* validates the submitted value against it, and "Other" plus the free-text
|
||||
* note covers anything not listed.
|
||||
*/
|
||||
function getSentMethods() {
|
||||
return [
|
||||
'Sent by Snail Mail',
|
||||
'Sent by Email Client',
|
||||
'Hand Delivered',
|
||||
'Sent by Fax',
|
||||
'Sent by Courier',
|
||||
'Shared Guest Link',
|
||||
'Other'
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user