my $rows = scalar @{ $form->{item_list} };
- $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100);
+ # Falls kein Kundenrabatt vorhanden ist, den aktuellen Rabatt nicht mit 0% überschreiben,
+ # da hier der Anwender schon manual einen Wert eingetragen haben könnte (analog zu qty) Bugfix: 1412
+ if ($form->{customer_discount}){
+ $form->{"discount_$i"} = $form->format_amount(\%myconfig, $form->{customer_discount} * 100);
+ }
if ($rows) {
$form->{"qty_$i"} = ($form->{"qty_$i"} * 1) ? $form->{"qty_$i"} : 1;
};
}
- # Kontrollvariable für die Templates
- $form->{'year2007'} = ($form->{year} >= 2007 ) ? "1":"0";
-
+ # Kontrollvariablen für die Templates
+ $form->{"year$_"} = ($form->{year} >= $_ ) ? "1":"0" for 2007..2107;
# Get the USTVA
$ustva->ustva(\%myconfig, \%$form);
libdatetime-perl libdbi-perl libdbd-pg-perl libpg-perl
libemail-address-perl libio-stringy-perl liblist-moreutils-perl
libpdf-api2-perl libtemplate-perl libtext-csv-xs-perl
-libtext-iconv-perl liburi-perl libxml-writer-perl libyaml-perl'
+libtext-iconv-perl liburi-perl libxml-writer-perl libyaml-perl
+librose-object-perl librose-db-perl librose-db-object-perl
+libreadonly-xs-perl'
Für Fedora Core benötigen Sie diese Pakete:
--- /dev/null
+-- @tag: ustva_2010
+-- @description: Zusätzliche UStVA Kennziffern.
+-- @charset: utf-8
+-- @depends: release_2_6_1
+
+INSERT INTO tax.report_variables (id, position, heading_id, description, taxbase, dec_places, valid_from)
+ VALUES (47, '21', 66, 'Nicht steuerbare sonstige Leistungen gem. § 18b Satz 1 Nr. 2 UStG', 0, 0, '01.01.2010');
+INSERT INTO tax.report_variables (id, position, heading_id, description, taxbase, dec_places, valid_from)
+ VALUES (48, '46', 6, 'Im Inland steuerpflichtige sonstige Leistungen von im übrigen Gemeinschaftsgebiet ansässigen Unternehmen (§13b Abs. 1 UStG)', 0, 0, '01.01.2010');
+INSERT INTO tax.report_variables (id, position, heading_id, description, taxbase, dec_places, valid_from)
+ VALUES (49, '47', 6, '', 49, 2, '01.01.2010');
+INSERT INTO tax.report_variables (id, position, heading_id, description, taxbase, dec_places, valid_from)
+ VALUES (50, '83', 8, 'Verbleibender Überschuss - bitte dem Betrag ein Minuszeichen voranstellen -', 0, 0, '01.01.2010');
+
+
<td class="spalte"><span class="nodis"></span></td>
<td class="betrag"></td>
</tr>
+<%if year2010%>
+ <tr>
+ <td class="text2"><b>Nicht steuerbare Leistungen</b> gem. § 18b Satz 1 Nr. 2 UStG</td>
+ <td class="spalte ausfuellen">21</td>
+ <td class="betrag ausfuellen" width="70"><%21%><br></td>
+ <td class="spalte"><span class="nodis"></span></td>
+ <td class="betrag"></td>
+ </tr>
+<%end if year2010%>
<tr>
<td class="text">Im Inland nicht steuerbare Umsätze</td>
<td class="spalte ausfuellen">45</td>
<td class="betrag"><%Z45%></td>
</tr>
+<%if year2010%>
+ <tr>
+ <td class="text2">Im Inland steuerpflichtige sonstige Leistungen von im übrigen Gemeinschaftsgebiet ansässigen Unternehmen (§13b Abs. 1 UStG)</td>
+ <td class="spalte ausfuellen">46</td>
+ <td class="betrag ausfuellen"><%46%></td>
+ <td class="spalte">47</td>
+ <td class="betrag"><%47%></td>
+ </tr>
+<%end if year2010%>
<tr>
<td class="text2">Leistungen eines im Ausland ansässigen Unternehmers</td>
<td class="spalte ausfuellen">52</td>