Revision 1796abb6
Von Tamino Steinert vor 5 Tagen hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
224 | 224 |
content => $document, |
225 | 225 |
); |
226 | 226 |
|
227 |
my %part_label_print_values = ( |
|
228 |
price_history_id => $part->last_price_update->id, |
|
229 |
print_type => $::form->{print_options}->{part_labels_for_stock} ? |
|
230 |
'stock' : 'single', |
|
231 |
template => $formname, |
|
232 |
); |
|
233 |
SL::DB::Manager::PartLabelPrint->find_by(%part_label_print_values) |
|
234 |
or SL::DB::PartLabelPrint->new(%part_label_print_values)->save(); |
|
235 |
|
|
227 | 236 |
$self->js->flash('info', t8('The document has been sent to the printer \'#1\'.', $printer->printer_description)); |
228 | 237 |
} else { |
229 | 238 |
die t8('Media \'#1\' is not supported yet/anymore.', $media); |
Auch abrufbar als: Unified diff
PartLabelPrint: merken wenn für den aktuellen Preis Etiketten werden