}
my $ChartTypeIsAccount = ($form->{charttype} eq "A") ? "1":"";
+ my $AccountIsPosted = ($form->{orphaned} ) ? "":"1";
$form->header();
my $parameters_ref = {
ChartTypeIsAccount => $ChartTypeIsAccount,
+ AccountIsPosted => $AccountIsPosted,
select_category => $select_category,
select_charttype => $select_charttype,
select_bwa => $select_bwa,
'Cc' => 'Cc',
'Change Lx-Office installation settings (all menu entries beneath \'System\')' => 'Verändern der Lx-Office-Installationseinstellungen (Menüpunkte unterhalb von \'System\')',
'Change representative to' => 'Vertreter ändern in',
+ 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' => 'Änderungen bei Forderungen oder Verbindlichkeiten sind nur möglich, wenn dieses Konto noch nicht bebucht wurde.',
'Charge Number' => 'Chargennummer',
'Charge number' => 'Chargennummer',
'Charset' => 'Zeichensatz',
[% 'Inventory' | $T8 %]
</fieldset>
+[% IF AccountIsPosted %]
+[%- SET DIS = ' disabled="disabled"' %]
+[% END %]
<fieldset class="DEPENDS ON charttype BEING A">
<legend>[% 'Include in drop-down menus' | $T8 %]</legend>
<p style='font-weight:normal'>[% 'These will only be effective if the account is NOT a summary account AND there exists at least one taxkey. Setting the account as a summary account will erase these settings.' | $T8 %]</p>
+ <p style='font-weight:normal'>[% 'Changes to Receivables and Payables are only possible if no transactions to this account are posted yet.' | $T8 %]</p>
<table width="100%">
<tr>
<th align="left">[% 'Receivables' | $T8 %]</th>
<tr>
<td>
<input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
- [% HTML.escape(AR_amount) %]>
+ [% HTML.escape(AR_amount)%][% DIS %]>
[% 'Revenue' | $T8 %] <br>
<input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
- [% HTML.escape(AR_paid) %]>
+ [% HTML.escape(AR_paid) %][% DIS %]>
[% 'Receipt' | $T8 %] <br>
<input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
- [% HTML.escape(AR_tax) %]>
+ [% HTML.escape(AR_tax) %][% DIS %]>
[% 'Tax' | $T8 %]
</td>
<td>
<input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
- [% HTML.escape(AP_amount) %]>
+ [% HTML.escape(AP_amount) %][% DIS %]>
[% 'Expense/Asset' | $T8 %] <br>
<input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
- [% HTML.escape(AP_paid) %]>
+ [% HTML.escape(AP_paid) %][% DIS %]>
[% 'Payment' | $T8 %] <br>
<input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
- [% HTML.escape(AP_tax) %]>
+ [% HTML.escape(AP_tax) %][% DIS %]>
[% 'Tax' | $T8 %]
</td>
<td>