Revision 3c61ead5
Von Bernd Bleßmann vor etwa 1 Jahr hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
17 | 17 |
use SL::DB::Helper::RecordLink qw(RECORD_ID RECORD_TYPE_REF); |
18 | 18 |
|
19 | 19 |
use SL::DB::DeliveryOrder::TypeData qw(:types); |
20 |
use SL::DB::Order::TypeData qw(:types); |
|
20 | 21 |
use SL::DB::Reclamation::TypeData qw(:types); |
21 | 22 |
|
22 | 23 |
use SL::Helper::Number qw(_format_total _round_total); |
... | ... | |
129 | 130 |
goto &donumber; |
130 | 131 |
} |
131 | 132 |
|
133 |
sub preceding_purchase_order_confirmations { |
|
134 |
my ($self) = @_; |
|
135 |
|
|
136 |
my @lrs = (); |
|
137 |
if ($self->id) { |
|
138 |
@lrs = grep { $_->record_type eq PURCHASE_ORDER_CONFIRMATION_TYPE() } @{$self->linked_records(from => 'SL::DB::Order')}; |
|
139 |
} else { |
|
140 |
if ('SL::DB::Order' eq $self->{RECORD_TYPE_REF()}) { |
|
141 |
my $order = SL::DB::Order->load_cached($self->{RECORD_ID()}); |
|
142 |
push @lrs, $order if $order->record_type eq PURCHASE_ORDER_CONFIRMATION_TYPE(); |
|
143 |
} |
|
144 |
} |
|
145 |
|
|
146 |
return \@lrs; |
|
147 |
} |
|
148 |
|
|
132 | 149 |
sub _clone_orderitem_cvar { |
133 | 150 |
my ($cvar) = @_; |
134 | 151 |
|
... | ... | |
183 | 200 |
intnotes |
184 | 201 |
language_id |
185 | 202 |
notes |
186 |
ordnumber |
|
187 | 203 |
payment_id |
188 | 204 |
reqdate |
189 | 205 |
salesman_id |
... | ... | |
195 | 211 |
vendor_confirmation_number |
196 | 212 |
vendor_id |
197 | 213 |
); |
214 |
$record_args{ordnumber} = $source->ordnumber if $source->record_type ne PURCHASE_ORDER_CONFIRMATION_TYPE(); |
|
198 | 215 |
# }}} for vim folds |
199 | 216 |
} elsif ( ref($source) eq 'SL::DB::Reclamation' ) { |
200 | 217 |
map{ ( $record_args{$_} = $source->$_ ) } # {{{ for vim folds |
locale/de/all | ||
---|---|---|
2649 | 2649 |
'Order' => 'Auftrag', |
2650 | 2650 |
'Order & Articles' => 'Auftrag & Artikel', |
2651 | 2651 |
'Order & Numbers' => 'Auftrag & Nummern', |
2652 |
'Order Confirmation Number' => 'Auftragsbestätigungsnummer', |
|
2652 | 2653 |
'Order Controller' => 'Auftrags-Controller', |
2653 | 2654 |
'Order Date' => 'Auftragsdatum', |
2654 | 2655 |
'Order Date missing!' => 'Auftragsdatum fehlt!', |
locale/en/all | ||
---|---|---|
2648 | 2648 |
'Order' => '', |
2649 | 2649 |
'Order & Articles' => '', |
2650 | 2650 |
'Order & Numbers' => '', |
2651 |
'Order Confirmation Number' => '', |
|
2651 | 2652 |
'Order Controller' => '', |
2652 | 2653 |
'Order Date' => '', |
2653 | 2654 |
'Order Date missing!' => '', |
templates/design40_webpages/delivery_order/tabs/basic_data.html | ||
---|---|---|
193 | 193 |
</tr> |
194 | 194 |
|
195 | 195 |
[%- IF SELF.type == 'purchase_delivery_order' %] |
196 |
<tr> |
|
197 |
<th>[% 'Order Confirmation Number' | $T8 %]</th> |
|
198 |
[%- |
|
199 |
numbers = []; |
|
200 |
FOREACH p = SELF.order.preceding_purchase_order_confirmations(); |
|
201 |
numbers.push(p.ordnumber); |
|
202 |
END; |
|
203 |
%] |
|
204 |
<td><span class="data wi-normal">[% numbers.join(', ') %]</span></td> |
|
205 |
</tr> |
|
206 |
|
|
196 | 207 |
<tr> |
197 | 208 |
<th>[% 'Vendor Confirmation Number' | $T8 %]</th> |
198 | 209 |
<td>[% L.input_tag('order.vendor_confirmation_number', SELF.order.vendor_confirmation_number, class='wi-normal numeric') %]</td> |
templates/webpages/delivery_order/tabs/basic_data.html | ||
---|---|---|
130 | 130 |
</tr> |
131 | 131 |
|
132 | 132 |
[%- IF SELF.type == 'purchase_delivery_order' %] |
133 |
<tr> |
|
134 |
<th width="70%" align="right" nowrap>[% 'Order Confirmation Number' | $T8 %]</th> |
|
135 |
[%- |
|
136 |
numbers = []; |
|
137 |
FOREACH p = SELF.order.preceding_purchase_order_confirmations(); |
|
138 |
numbers.push(p.ordnumber); |
|
139 |
END; |
|
140 |
%] |
|
141 |
<td>[% numbers.join(', ') %]</td> |
|
142 |
</tr> |
|
143 |
|
|
133 | 144 |
<tr> |
134 | 145 |
<th width="70%" align="right" nowrap>[% 'Vendor Confirmation Number' | $T8 %]</th> |
135 | 146 |
<td>[% L.input_tag('order.vendor_confirmation_number', SELF.order.vendor_confirmation_number, size = 11) %]</td> |
Auch abrufbar als: Unified diff
EK-Lieferschein: Nummer der Lieferantenbestätigung in Maske anzeigen
Die Nummer wird aus den Verknüpfungen geholt.