Revision d68c96d8
Von Moritz Bunkus vor fast 2 Jahren hinzugefügt
SL/Controller/DeliveryTerm.pm | ||
---|---|---|
4 | 4 |
|
5 | 5 |
use parent qw(SL::Controller::Base); |
6 | 6 |
|
7 |
use SL::DB::Customer; |
|
7 | 8 |
use SL::DB::DeliveryTerm; |
8 | 9 |
use SL::DB::Language; |
10 |
use SL::DB::Vendor; |
|
9 | 11 |
use SL::Helper::Flash; |
10 | 12 |
use SL::Locale::String qw(t8); |
11 | 13 |
|
... | ... | |
110 | 112 |
$self->{delivery_term}->save_attribute_translation('description_long', $language, $::form->{"translation_" . $language->id}); |
111 | 113 |
} |
112 | 114 |
|
115 |
if ($::form->{remove_customer_delivery_terms}) { |
|
116 |
foreach my $class (qw(Customer Vendor)) { |
|
117 |
"SL::DB::Manager::${class}"->update_all( |
|
118 |
set => { delivery_term_id => undef }, |
|
119 |
where => [ delivery_term_id => $self->{delivery_term}->id ], |
|
120 |
); |
|
121 |
} |
|
122 |
} |
|
123 |
|
|
113 | 124 |
flash_later('info', $is_new ? $::locale->text('The delivery term has been created.') : $::locale->text('The delivery term has been saved.')); |
114 | 125 |
$self->redirect_to(action => 'list'); |
115 | 126 |
} |
locale/de/all | ||
---|---|---|
1106 | 1106 |
'Delete address' => 'Adresse löschen', |
1107 | 1107 |
'Delete all' => 'Alle Löschen', |
1108 | 1108 |
'Delete for Customers' => 'Bei Kunden löschen', |
1109 |
'Delete for customers & vendors' => 'Bei Kunden & Lieferanten löschen', |
|
1109 | 1110 |
'Delete links' => 'Verknüpfungen löschen', |
1110 | 1111 |
'Delete picture' => 'Bild löschen', |
1111 | 1112 |
'Delete printfiles' => 'Dokumente löschen', |
... | ... | |
4181 | 4182 |
'This vendor has already been added.' => 'Der Lieferant wurde bereits hinzugefügt.', |
4182 | 4183 |
'This vendor number is already in use.' => 'Diese Lieferantennummer wird bereits verwendet.', |
4183 | 4184 |
'This way you can get a similar list of linked records for every record in the same workflow.' => 'So kann eine ähnliche Liste für alle Belege eines Workflows angezeigt werden.', |
4185 |
'This will also remove these delivery terms for all customers & vendors.' => 'Damit werden auch alle verknüpften Lieferbedingungen im Kunden- & Lieferantenstamm gelöscht!', |
|
4184 | 4186 |
'This will also remove this pricegroup for all customers.' => 'Damit werden auch alle verknüpften Preisgruppen im Kundenstamm gelöscht!', |
4185 | 4187 |
'This will apply a 3% reduction to the master data price before entering it into the record item.' => 'Diese Zeile zieht vom Stammdatenpreis 3% ab, und schlägt den resultierenden Preis vor.', |
4186 | 4188 |
'This will be treated as a discount in percent points.' => 'Diese Option schlägt den Wert in Prozentpunkten als Rabatt vor.', |
templates/webpages/delivery_term/form.html | ||
---|---|---|
33 | 33 |
<td>[% 'Obsolete' | $T8 %]</td> |
34 | 34 |
<td>[% L.checkbox_tag('delivery_term.obsolete', checked=SELF.delivery_term.obsolete, for_submit=1) %]</td> |
35 | 35 |
</tr> |
36 |
|
|
37 |
<tr> |
|
38 |
<td>[% "Delete for customers & vendors" | $T8 %]</td> |
|
39 |
<td>[% L.checkbox_tag("remove_customer_vendor_delivery_terms", checked=remove_customer_vendor_delivery_terms, for_submit=1, label=LxERP.t8("This will also remove these delivery terms for all customers & vendors.")) %]</td> |
|
40 |
</tr> |
|
36 | 41 |
</table> |
37 | 42 |
|
38 | 43 |
[% P.hidden_tag("id", SELF.delivery_term.id) %] |
Auch abrufbar als: Unified diff
Lieferbedingungen: optional bei Kunden/Lieferanten entfernen