Revision 2f6a11fb
Von Bernd Bleßmann vor etwa 10 Jahren hinzugefügt
SL/AP.pm | ||
---|---|---|
165 | 165 |
} else { |
166 | 166 |
|
167 | 167 |
($form->{id}) = selectrow_query($form, $dbh, qq|SELECT nextval('glid')|); |
168 |
|
|
168 |
|
|
169 | 169 |
$query = |
170 | 170 |
qq|INSERT INTO ap (id, invnumber, employee_id,currency_id, taxzone_id) | . |
171 | 171 |
qq|VALUES (?, ?, (SELECT e.id FROM employee e WHERE e.login = ?), |
SL/Controller/Buchungsgruppen.pm | ||
---|---|---|
89 | 89 |
# constraint, if Buchungsgruppe is connected to a part |
90 | 90 |
|
91 | 91 |
my $db = $self->{config}->db; |
92 |
$db->do_transaction(sub {
|
|
92 |
$db->do_transaction(sub { |
|
93 | 93 |
my $taxzone_charts = SL::DB::Manager::TaxzoneChart->get_all(where => [ buchungsgruppen_id => $self->config->id ]); |
94 | 94 |
foreach my $taxzonechart ( @{$taxzone_charts} ) { $taxzonechart->delete }; |
95 | 95 |
$self->config->delete(); |
SL/Controller/CsvImport/BaseMulti.pm | ||
---|---|---|
151 | 151 |
my $ri = $p->{row_ident}; |
152 | 152 |
$ccb->{row_ident}->{$ri} = [ map { "cvar_" . $_->name } (@{ $self->cvar_configs_by->{row_ident}->{$ri} }) ]; |
153 | 153 |
} |
154 |
|
|
154 |
|
|
155 | 155 |
return $ccb; |
156 | 156 |
} |
157 | 157 |
|
SL/DB/Buchungsgruppe.pm | ||
---|---|---|
72 | 72 |
my ($self) = @_; |
73 | 73 |
return SL::DB::Manager::TaxzoneChart->get_all(where => [ buchungsgruppen_id => $self->id ]); |
74 | 74 |
} |
75 |
|
|
75 |
|
|
76 | 76 |
sub orphaned { |
77 | 77 |
my ($self) = @_; |
78 | 78 |
die 'not an accessor' if @_ > 1; |
SL/DO.pm | ||
---|---|---|
421 | 421 |
$form->{saved_donumber} = $form->{donumber}; |
422 | 422 |
$form->{saved_ordnumber} = $form->{ordnumber}; |
423 | 423 |
$form->{saved_cusordnumber} = $form->{cusordnumber}; |
424 |
|
|
424 |
|
|
425 | 425 |
Common::webdav_folder($form); |
426 | 426 |
|
427 | 427 |
$main::lxdebug->leave_sub(); |
SL/IR.pm | ||
---|---|---|
1199 | 1199 |
|
1200 | 1200 |
# also search hits in makemodels, but only cache the results by id and merge later |
1201 | 1201 |
my $mm_query = qq| |
1202 |
SELECT parts_id, model FROM makemodel
|
|
1203 |
LEFT JOIN parts ON parts.id = parts_id
|
|
1202 |
SELECT parts_id, model FROM makemodel |
|
1203 |
LEFT JOIN parts ON parts.id = parts_id |
|
1204 | 1204 |
WHERE NOT parts.obsolete AND model ILIKE ? AND (make IS NULL OR make = ?); |
1205 | 1205 |
|; |
1206 | 1206 |
my $mm_results = selectall_hashref_query($::form, $dbh, $mm_query, '%' . $form->{"partnumber_$i"} . '%', $::form->{vendor_id}); |
... | ... | |
1268 | 1268 |
WHERE id = p.buchungsgruppen_id) = c1.id) |
1269 | 1269 |
LEFT JOIN chart c2 ON |
1270 | 1270 |
((SELECT tc.income_accno_id |
1271 |
FROM taxzone_charts tc
|
|
1271 |
FROM taxzone_charts tc |
|
1272 | 1272 |
WHERE tc.taxzone_id = '$taxzone_id' and tc.buchungsgruppen_id = p.buchungsgruppen_id) = c2.id) |
1273 | 1273 |
LEFT JOIN chart c3 ON |
1274 | 1274 |
((SELECT tc.expense_accno_id |
SL/InstanceConfiguration.pm | ||
---|---|---|
129 | 129 |
report. |
130 | 130 |
|
131 | 131 |
Valid options: |
132 |
closed_to start_of_year all_transactions last_ob_or_all_transactions last_ob_or_start_of_year
|
|
132 |
closed_to start_of_year all_transactions last_ob_or_all_transactions last_ob_or_start_of_year |
|
133 | 133 |
|
134 | 134 |
=item C<get_is_changeable> |
135 | 135 |
|
SL/Presenter/Part.pm | ||
---|---|---|
88 | 88 |
|
89 | 89 |
=back |
90 | 90 |
|
91 |
=back
|
|
91 |
=back |
|
92 | 92 |
|
93 | 93 |
=over 2 |
94 | 94 |
|
SL/WH.pm | ||
---|---|---|
162 | 162 |
Common::check_params(\%params, qw(assembly_id dst_warehouse_id login qty unit dst_bin_id chargenumber bestbefore comment)); |
163 | 163 |
|
164 | 164 |
|
165 |
my $unit = SL::DB::Manager::Unit->find_by(name => $params{unit});
|
|
165 |
my $unit = SL::DB::Manager::Unit->find_by(name => $params{unit}); |
|
166 | 166 |
if ($unit) { |
167 | 167 |
my $assembly = SL::DB::Manager::Assembly->get_all( |
168 | 168 |
query => [ id => $params{assembly_id} ], |
bin/mozilla/vk.pl | ||
---|---|---|
300 | 300 |
# stored seperately). However, for fxsellprice this method only works when |
301 | 301 |
# the tax is not included, because otherwise fxsellprice includes the tax |
302 | 302 |
# and there is no simple way to extract the tax rate of the article from |
303 |
# the big query.
|
|
303 |
# the big query. |
|
304 | 304 |
# |
305 | 305 |
# Using fxsellprice is potentially more accurate (certainly for tax |
306 | 306 |
# included), because we can use the same method as is used while the |
... | ... | |
315 | 315 |
# sellprice_total_including_tax = qty * fxsellprice * (1-discount) / price_factor * exchangerate |
316 | 316 |
# $ar->{sellprice_total_including_tax} = $form->round_amount( $ar->{qty} * ( $ar->{fxsellprice} * ( 1 - $ar->{discount} ) ) / $ar->{price_factor}, $form->{"decimalplaces"}); |
317 | 317 |
|
318 |
$ar->{sellprice} = $ar->{sellprice} / $ar->{price_factor} / $basefactor;
|
|
318 |
$ar->{sellprice} = $ar->{sellprice} / $ar->{price_factor} / $basefactor; |
|
319 | 319 |
$ar->{sellprice_total} = $form->round_amount( $ar->{qty} * $ar->{sellprice} / $ar->{price_factor} , $form->{"decimalplaces"}); |
320 | 320 |
|
321 | 321 |
$ar->{lastcost} = $ar->{lastcost} / $ar->{price_factor} / $basefactor; |
Auch abrufbar als: Unified diff
trailing whitespaces entfernt