$self->{payment_options} = [ { title => $::locale->text("never"), value => 0 },
{ title => $::locale->text("every time"), value => 1 },
{ title => $::locale->text("on the same day"), value => 2 }, ];
- $self->{accounting_options} = [ { title => $::locale->text("accrual"), value => "accrual" },
+ $self->{accounting_options} = [ { title => $::locale->text("Accrual"), value => "accrual" },
{ title => $::locale->text("cash"), value => "cash" }, ];
$self->{inventory_options} = [ { title => $::locale->text("perpetual"), value => "perpetual" },
{ title => $::locale->text("periodic"), value => "periodic" }, ];
} else {
$transdate = $form->{deliverydate};
}
+ } elsif (($form->{type} eq "credit_note") and $form->{deliverydate}) {
+ # if credit_note has a deliverydate, use this instead of invdate
+ # useful for credit_notes of invoices from an old period with different tax
+ # if there is no deliverydate then invdate is used, old default (see next elsif)
+ $transdate = $form->{deliverydate};
} elsif (($form->{type} eq "credit_note") || ($form->{script} eq 'ir.pl')) {
$transdate = $form->{invdate};
} else {
# default language
my $all_languages = SL::DB::Manager::Language->get_all;
-# EÜR = cash, Bilanzierung = accrual
+# cash = IST-Versteuerung, accrual = SOLL-Versteuerung
foreach my $key (keys %{ $form->{IC} }) {
foreach my $accno (sort keys %{ $form->{IC}->{$key} }) {
'Accounting Group deleted!' => 'Buchungsgruppe gelöscht!',
'Accounting Group saved!' => 'Buchungsgruppe gespeichert!',
'Accounting method' => 'Versteuerungsart',
- 'Accrual' => 'Bilanzierung',
+ 'Accrual' => 'Soll-Versteuerung',
'Active' => 'Aktiv',
'Active?' => 'Aktiviert?',
'Add' => 'Erfassen',
'Accounting Group deleted!' => 'Buchungsgruppe gelöscht!',
'Accounting Group saved!' => 'Buchungsgruppe gespeichert!',
'Accounting method' => 'Versteuerungsart',
- 'Accrual' => 'Bilanzierung',
+ 'Accrual' => 'Soll-Versteuerung',
'Active' => 'Aktiv',
'Active?' => 'Aktiviert?',
'Add' => 'Erfassen',
'[email]' => '[email]',
'absolute' => 'absolut',
'account_description' => 'Beschreibung',
- 'accrual' => 'Bilanzierung (Soll-Versteuerung)',
+ 'accrual' => 'Soll-Versteuerung',
'action= not defined!' => 'action= nicht definiert!',
'active' => 'aktiv',
'all entries' => 'alle Einträge',
<th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
<td colspan="3"><input size='11' name="donumber" value="[% HTML.escape(donumber) %]"></td>
</tr>
+[%- END %]
<tr>
<th align="right">[% 'Delivery Date' | $T8 %]</th>
<td>[% L.date_tag('deliverydate', deliverydate, cal_align='BL') %]</td>
</tr>
-[%- END %]
-
<tr>
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th>
<td colspan="3"><input size='11' name="ordnumber" value="[% HTML.escape(ordnumber) %]"></td>
<th align=left>[% 'Method' | $T8 %]</th>
<td colspan=3>
[% L.radio_button_tag('method', value='accrual', checked=accrual, label=LxERP.t8('Accrual')) %]
- [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('EUR')) %]
+ [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('cash')) %]
</td>
</tr>
[%- END %]