Revision 945a4716
Von Tamino Steinert vor etwa 1 Jahr 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 | ||
---|---|---|
1510 | 1510 |
'Email Sender Sales Quotation' => 'E-Mail-Absender für Angebote', |
1511 | 1511 |
'Email address' => 'E-Mail-Adresse', |
1512 | 1512 |
'Email journal' => 'E-Mail-Journal', |
1513 |
'Email marked as not obsolete.' => 'E-Mail als gültig markiert.', |
|
1514 |
'Email marked as obsolete.' => 'E-Mail als ungültig markiert.', |
|
1513 | 1515 |
'Email of the delivery order recipient' => 'E-Mail des Lieferscheinempfängers', |
1514 | 1516 |
'Email of the dunning recipient' => 'E-Mail des Mahnungsempfängers', |
1515 | 1517 |
'Email of the invoice recipient' => 'E-Mail des Rechnungsempfängers', |
... | ... | |
2440 | 2442 |
'Next run at' => 'Nächste Ausführung um', |
2441 | 2443 |
'No' => 'Nein', |
2442 | 2444 |
'No 1:n or n:1 relation' => 'Keine 1:n oder n:1 Beziehung', |
2443 |
'No AP Record Template for vendor #1 found, please add one' => 'Kein Belegvorlage für Lieferant #1 gefunden, bitte eine anlegen', |
|
2444 | 2445 |
'No AP template was found.' => 'Keine Kreditorenbuchungsvorlage gefunden.', |
2445 | 2446 |
'No Billing and ship to address, for Order Number #1 with ID Billing #2 and ID Shipping #3' => 'Keine Rechnungs- und Lieferadresse zur Bestellnummer #1 mit Rechnungs-ID #2 und Liefer-ID #3 gefunden', |
2446 | 2447 |
'No Company Address given' => 'Keine Firmenadresse hinterlegt!', |
... | ... | |
2452 | 2453 |
'No Order items fetched' => 'Keine Auftragspositionen gefunden', |
2453 | 2454 |
'No Shopdescription' => 'Keine Shop-Artikelbeschreibung', |
2454 | 2455 |
'No Shopimages' => 'Keine Shop-Bilder', |
2455 |
'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.', |
|
2456 | 2456 |
'No Vendor' => 'Kein Lieferant', |
2457 | 2457 |
'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Händler gefunden', |
2458 | 2458 |
'No account selected. Please select an account.' => 'Kein Konto ausgewählt. Bitte Konto auswählen.', |
... | ... | |
2848 | 2848 |
'Pictures for search parts' => 'Bilder für Warensuche', |
2849 | 2849 |
'Please Check the bank information for each customer:' => 'Bitte überprüfen Sie die Bankinformationen der Kunden:', |
2850 | 2850 |
'Please Check the bank information for each vendor:' => 'Bitte überprüfen Sie die Kontoinformationen der Lieferanten:', |
2851 |
'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', |
|
2852 | 2851 |
'Please ask your administrator to create warehouses and bins.' => 'Bitten Sie Ihren Administrator, dass er Lager und Lagerplätze anlegt.', |
2853 | 2852 |
'Please change the partnumber of the following parts and run the update again:' => 'Bitte ändern Sie daher die Artikelnummer folgender Artikel:', |
2854 | 2853 |
'Please choose a part.' => 'Bitte wählen Sie einen Artikel aus.', |
locale/en/all | ||
---|---|---|
1510 | 1510 |
'Email Sender Sales Quotation' => '', |
1511 | 1511 |
'Email address' => '', |
1512 | 1512 |
'Email journal' => '', |
1513 |
'Email marked as not obsolete.' => '', |
|
1514 |
'Email marked as obsolete.' => '', |
|
1513 | 1515 |
'Email of the delivery order recipient' => '', |
1514 | 1516 |
'Email of the dunning recipient' => '', |
1515 | 1517 |
'Email of the invoice recipient' => '', |
... | ... | |
2439 | 2441 |
'Next run at' => '', |
2440 | 2442 |
'No' => '', |
2441 | 2443 |
'No 1:n or n:1 relation' => '', |
2442 |
'No AP Record Template for vendor #1 found, please add one' => '', |
|
2443 | 2444 |
'No AP template was found.' => '', |
2444 | 2445 |
'No Billing and ship to address, for Order Number #1 with ID Billing #2 and ID Shipping #3' => '', |
2445 | 2446 |
'No Company Address given' => '', |
... | ... | |
2451 | 2452 |
'No Order items fetched' => '', |
2452 | 2453 |
'No Shopdescription' => '', |
2453 | 2454 |
'No Shopimages' => '', |
2454 |
'No VAT Info for this Factur-X/ZUGFeRD invoice, please ask your vendor to add this for his Factur-X/ZUGFeRD data.' => '', |
|
2455 | 2455 |
'No Vendor' => '', |
2456 | 2456 |
'No Vendor was found matching the search parameters.' => '', |
2457 | 2457 |
'No account selected. Please select an account.' => '', |
... | ... | |
2847 | 2847 |
'Pictures for search parts' => '', |
2848 | 2848 |
'Please Check the bank information for each customer:' => '', |
2849 | 2849 |
'Please Check the bank information for each vendor:' => '', |
2850 |
'Please add a valid VAT-ID for this vendor: #1' => '', |
|
2851 | 2850 |
'Please ask your administrator to create warehouses and bins.' => '', |
2852 | 2851 |
'Please change the partnumber of the following parts and run the update again:' => '', |
2853 | 2852 |
'Please choose a part.' => '', |
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