Revision 5c833ab8
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
| SL/Controller/EmailJournal.pm | ||
|---|---|---|
|
sent_on => t8('Sent on'),
|
||
|
status => t8('Status'),
|
||
|
extended_status => t8('Extended status'),
|
||
|
linked => t8('Linked'),
|
||
|
},
|
||
|
);
|
||
|
}
|
||
| ... | ... | |
|
@filters;
|
||
|
|
||
|
my %status = (
|
||
|
send_failed => $::locale->text('send failed'),
|
||
|
sent => $::locale->text('sent'),
|
||
|
imported => $::locale->text('imported'),
|
||
|
send_failed => $::locale->text('send failed'),
|
||
|
sent => $::locale->text('sent'),
|
||
|
imported => $::locale->text('imported'),
|
||
|
record_imported => $::locale->text('record imported'),
|
||
|
);
|
||
|
push @filter_strings, $status{ $filter->{'status:eq_ignore_empty'} } if $filter->{'status:eq_ignore_empty'};
|
||
|
|
||
| SL/DB/EmailJournal.pm | ||
|---|---|---|
|
$self->link_to_record($record);
|
||
|
}
|
||
|
|
||
|
sub linked {
|
||
|
my ($self) = @_;
|
||
|
|
||
|
return !!scalar @{$self->linked_records};
|
||
|
}
|
||
|
|
||
|
sub process_attachments_as_purchase_invoices {
|
||
|
my ($self) = @_;
|
||
|
|
||
| SL/DB/Manager/EmailJournal.pm | ||
|---|---|---|
|
columns => {
|
||
|
SIMPLE => 'ALL',
|
||
|
sender => 'sender.name',
|
||
|
linked => "(
|
||
|
SELECT count(*) from record_links where
|
||
|
( record_links.from_table = 'email_journal'::varchar(50)
|
||
|
AND record_links.from_id = email_journal.id
|
||
|
) OR (
|
||
|
record_links.to_table = 'email_journal'::varchar(50)
|
||
|
AND record_links.to_id = email_journal.id
|
||
|
)
|
||
|
) > 0"
|
||
|
},
|
||
|
);
|
||
|
}
|
||
| locale/de/all | ||
|---|---|---|
|
'Link to' => 'Verknüpfen mit',
|
||
|
'Link to invoice' => 'Beleglink',
|
||
|
'Link to the following project:' => 'Mit dem folgenden Projekt verknüpfen:',
|
||
|
'Linked' => 'Verknüpft',
|
||
|
'Linked Records' => 'Verknüpfte Belege',
|
||
|
'Linked email and attachment to ' => 'E-Mail und Anhang verknüpft mit ',
|
||
|
'Linked invoices' => 'Verknüpfte Rechnungen',
|
||
| locale/en/all | ||
|---|---|---|
|
'Link to' => '',
|
||
|
'Link to invoice' => '',
|
||
|
'Link to the following project:' => '',
|
||
|
'Linked' => '',
|
||
|
'Linked Records' => '',
|
||
|
'Linked email and attachment to ' => '',
|
||
|
'Linked invoices' => '',
|
||
| templates/design40_webpages/email_journal/_filter.html | ||
|---|---|---|
|
[ "sent", LxERP.t8("sent") ],
|
||
|
[ "imported", LxERP.t8("imported") ]
|
||
|
[ "record_imported", LxERP.t8("record imported") ]
|
||
|
], default=filter.status_eq_ignore_empty) %]</td>
|
||
|
], default=filter.status_eq_ignore_empty) %]
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
| templates/design40_webpages/email_journal/list.html | ||
|---|---|---|
|
<th>[% L.sortable_table_header("sent_on") %]</th>
|
||
|
<th>[% L.sortable_table_header("status") %]</th>
|
||
|
<th>[% L.sortable_table_header("extended_status") %]</th>
|
||
|
<th>[% L.sortable_table_header("linked") %]</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
| ... | ... | |
|
<td>[% HTML.escape(entry.sent_on.to_lxoffice('precision' => 'second')) %]</td>
|
||
|
<td> [% P.email_journal.entry_status(entry) %] </td>
|
||
|
<td>[% HTML.escape(entry.extended_status) %]</td>
|
||
|
<td>[% entry.linked ? LxERP.t8('Yes') : LxERP.t8('No') %]</td>
|
||
|
</tr>
|
||
|
[% END %]
|
||
|
</tbody>
|
||
Auch abrufbar als: Unified diff
EmailJournal: Report: Sortiere nach verknüpften Emails