Revision 0949cead
Von Tamino Steinert vor 12 Monaten hinzugefügt
SL/Controller/EmailJournal.pm | ||
---|---|---|
498 | 498 |
$self->js->render(); |
499 | 499 |
} |
500 | 500 |
|
501 |
sub action_toggle_obsolete { |
|
502 |
my ($self) = @_; |
|
503 |
|
|
504 |
$::auth->assert('email_journal'); |
|
505 |
|
|
506 |
my $back_to = $::form->{back_to} || $self->url_for(action => 'list'); |
|
507 |
|
|
508 |
$self->entry(SL::DB::EmailJournal->new(id => $::form->{id})->load); |
|
509 |
|
|
510 |
if (!$self->can_view_all && ($self->entry->sender_id != SL::DB::Manager::Employee->current->id)) { |
|
511 |
$::form->error(t8('You do not have permission to access this entry.')); |
|
512 |
} |
|
513 |
|
|
514 |
$self->entry->obsolete(!$self->entry->obsolete); |
|
515 |
$self->entry->save; |
|
516 |
|
|
517 |
$self->js |
|
518 |
->val('#obsolete', $self->entry->obsolete_as_bool_yn) |
|
519 |
->flash('info', |
|
520 |
$self->entry->obsolete ? |
|
521 |
$::locale->text('Email marked as obsolete.') |
|
522 |
: $::locale->text('Email marked as not obsolete.') |
|
523 |
)->render(); |
|
524 |
|
|
525 |
return; |
|
526 |
} |
|
527 |
|
|
501 | 528 |
# |
502 | 529 |
# filters |
503 | 530 |
# |
js/kivi.EmailJournal.js | ||
---|---|---|
55 | 55 |
|
56 | 56 |
$.post("controller.pl", data, kivi.eval_json_result); |
57 | 57 |
} |
58 |
|
|
59 |
ns.toggle_obsolete = function(email_journal_id) { |
|
60 |
let data = $('#record_action_form').serializeArray(); |
|
61 |
data.push({ name: 'action', value: 'EmailJournal/toggle_obsolete' }); |
|
62 |
data.push({ name: 'id', value: email_journal_id }); |
|
63 |
|
|
64 |
$.post("controller.pl", data, kivi.eval_json_result); |
|
65 |
} |
|
58 | 66 |
}); |
locale/de/all | ||
---|---|---|
1513 | 1513 |
'Email Sender Sales Quotation' => 'E-Mail-Absender für Angebote', |
1514 | 1514 |
'Email address' => 'E-Mail-Adresse', |
1515 | 1515 |
'Email journal' => 'E-Mail-Journal', |
1516 |
'Email marked as not obsolete.' => 'E-Mail als gültig markiert.', |
|
1517 |
'Email marked as obsolete.' => 'E-Mail als ungültig markiert.', |
|
1516 | 1518 |
'Email of the delivery order recipient' => 'E-Mail des Lieferscheinempfängers', |
1517 | 1519 |
'Email of the dunning recipient' => 'E-Mail des Mahnungsempfängers', |
1518 | 1520 |
'Email of the invoice recipient' => 'E-Mail des Rechnungsempfängers', |
... | ... | |
2457 | 2459 |
'No Order items fetched' => 'Keine Auftragspositionen gefunden', |
2458 | 2460 |
'No Shopdescription' => 'Keine Shop-Artikelbeschreibung', |
2459 | 2461 |
'No Shopimages' => 'Keine Shop-Bilder', |
2460 |
'No VAT Info for this Factur-X/ZUGFeRD invoice, please ask your vendor to add this for his Factur-X/ZUGFeRD data.' => 'Keine USt-Info für diese Factur-X/ZUGFeRD Rechnung, bitte fragen Sie Ihren Lieferanten, diese für seine Factur-X/ZUGFeRD Daten hinzuzufügen.', |
|
2461 | 2462 |
'No Vendor' => 'Kein Lieferant', |
2462 | 2463 |
'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Händler gefunden', |
2463 | 2464 |
'No account selected. Please select an account.' => 'Kein Konto ausgewählt. Bitte Konto auswählen.', |
... | ... | |
2855 | 2856 |
'Pictures for search parts' => 'Bilder für Warensuche', |
2856 | 2857 |
'Please Check the bank information for each customer:' => 'Bitte überprüfen Sie die Bankinformationen der Kunden:', |
2857 | 2858 |
'Please Check the bank information for each vendor:' => 'Bitte überprüfen Sie die Kontoinformationen der Lieferanten:', |
2858 |
'Please add a valid VAT-ID for this vendor: #1' => 'Bitte fügen Sie eine gültige USt-ID für diesen Lieferanten hinzu: #1', |
|
2859 | 2859 |
'Please ask your administrator to create warehouses and bins.' => 'Bitten Sie Ihren Administrator, dass er Lager und Lagerplätze anlegt.', |
2860 | 2860 |
'Please change the partnumber of the following parts and run the update again:' => 'Bitte ändern Sie daher die Artikelnummer folgender Artikel:', |
2861 | 2861 |
'Please choose a part.' => 'Bitte wählen Sie einen Artikel aus.', |
locale/en/all | ||
---|---|---|
1513 | 1513 |
'Email Sender Sales Quotation' => '', |
1514 | 1514 |
'Email address' => '', |
1515 | 1515 |
'Email journal' => '', |
1516 |
'Email marked as not obsolete.' => '', |
|
1517 |
'Email marked as obsolete.' => '', |
|
1516 | 1518 |
'Email of the delivery order recipient' => '', |
1517 | 1519 |
'Email of the dunning recipient' => '', |
1518 | 1520 |
'Email of the invoice recipient' => '', |
templates/design40_webpages/email_journal/tabs/basic_data.html | ||
---|---|---|
56 | 56 |
</div> |
57 | 57 |
</td> |
58 | 58 |
</tr> |
59 |
<tr> |
|
60 |
<th>[% 'Obsolete' | $T8 %]</th> |
|
61 |
<td> |
|
62 |
[% L.input_tag('obsolete', SELF.entry.obsolete_as_bool_yn, style="color:black", class="wi-verysmall", disabled=1) %] |
|
63 |
[% L.button_tag("kivi.EmailJournal.toggle_obsolete( $SELF.entry.id );", 'Toggle', class="wi-verysmall") %] |
|
64 |
</td> |
|
59 | 65 |
</tbody> |
60 | 66 |
</table> |
61 | 67 |
</div><!-- /.wrapper --> |
Auch abrufbar als: Unified diff
EmailJournal: Obsolete anzeigen und umschalten können