Revision 342d55f7
Von Sven Schöling vor etwa 10 Jahren hinzugefügt
SL/Controller/PriceRule.pm | ||
---|---|---|
105 | 105 |
sub display_form { |
106 | 106 |
my ($self, %params) = @_; |
107 | 107 |
my $is_new = !$self->price_rule->id; |
108 |
my $title = $is_new ? t8('Create a new price rule') : t8('Edit price rule'); |
|
108 |
my $title = $is_new ? |
|
109 |
($self->price_rule->is_sales ? t8('Create a new sales price rule') : t8('Create a new purchase price rule')) : |
|
110 |
($self->price_rule->is_sales ? t8('Edit sales price rule') : t8('Edit purchase price rule')); |
|
109 | 111 |
$self->render('price_rule/form', |
110 | 112 |
title => $title, |
111 | 113 |
%params |
... | ... | |
163 | 165 |
std_column_visibility => 1, |
164 | 166 |
controller_class => 'PriceRule', |
165 | 167 |
output_format => 'HTML', |
166 |
title => $::locale->text('Price Rules'),
|
|
168 |
title => ($self->vc eq 'customer' ? t8('Sales Price Rules') : t8('Purchase Price Rules')) ,
|
|
167 | 169 |
allow_pdf_export => 1, |
168 | 170 |
allow_csv_export => 1, |
169 | 171 |
); |
Auch abrufbar als: Unified diff
PriceRule: Überschriften mit Einkauf und Verkauf