Betroffen waren das Auftragsdatum, Angebotsnummer, BearbeiterIn,
Steuerzone. Ist in
464f44a kaputt gegangen.
my $currency = $form->{currency};
invoice_links();
+ if ($form->{ordnumber}) {
+ require SL::DB::Order;
+ if (my $order = SL::DB::Manager::Order->find_by(ordnumber => $form->{ordnumber})) {
+ $order->load;
+ $form->{orddate} = $order->transdate_as_date;
+ $form->{$_} = $order->$_ for qw(payment_id salesman_id taxzone_id quonumber);
+ }
+ }
+
$form->{currency} = $currency;
$form->{exchangerate} = "";
$form->{forex} = $form->check_exchangerate(\%myconfig, $form->{currency}, $form->{invdate}, $buysell);
<input type="hidden" name="max_dunning_level" value="[% HTML.escape(max_dunning_level) %]">
<input type="hidden" name="media" value="[% HTML.escape(media) %]">
<input type="hidden" name="message" value="[% HTML.escape(message) %]">
- <input type="hidden" name="payment_id" value="[% HTML.escape(payment_id) %]">
<input type="hidden" name="printed" value="[% HTML.escape(printed) %]">
<input type="hidden" name="proforma" value="[% HTML.escape(proforma) %]">
<input type="hidden" name="queued" value="[% HTML.escape(queued) %]">