+++ /dev/null
-[% USE HTML %]<script type="text/javascript" src="js/FormManager.js" >
-/****************************************************
-* Form Dependency Manager- By Twey- http://www.twey.co.uk
-* Visit Dynamic Drive for this script and more: http://www.dynamicdrive.com
-****************************************************/
-</script>
-
-<script type="text/javascript">
-window.onload = function() {
- setupDependencies('EditAccount'); //name of form(s). Seperate each with a comma (ie: 'weboptions', 'myotherform' )
- };
-</script>
-
-<body>
-<form method="post" name="EditAccount" action="am.pl">
-
-<input type="hidden" name="id" value="[% HTML.escape(id) %]">
-<input type="hidden" name="type" value="account">
-<input type="hidden" name="orphaned" value="[% HTML.escape(orphaned) %]">
-<input type="hidden" name="new_chart_valid" value="[% HTML.escape(new_chart_valid) %]">
-<input type="hidden" name="original_accno" value="[% HTML.escape(accno) %]">
-<input type="hidden" name="inventory_accno_id" value="[% HTML.escape(inventory_accno_id) %]">
-<input type="hidden" name="income_accno_id" value="[% HTML.escape(income_accno_id) %]">
-<input type="hidden" name="expense_accno_id" value="[% HTML.escape(expense_accno_id) %]">
-<input type="hidden" name="fxgain_accno_id" value="[% HTML.escape(fxgain_accno_id) %]">
-<input type="hidden" name="fxloss_accno_id" value="[% HTML.escape(fxloss_accno_id) %]">
-
-<table border="0" width="100%">
- <tr>
- <th class="listtop">[% title %]</th>
- </tr>
-</table>
-
-<fieldset>
- <legend>
- Main Preferences
- </legend>
- <table>
- <tr>
- <td>
- <label>
- Account Number
- </label></td>
- <td><input name="accno" size="20" value="[% HTML.escape(accno) %]"></td>
- </tr>
- <tr>
- <td>
- <label>
- Description
- </label>
- </td>
- <td><input name="description" size="40" value="[% HTML.escape(description) %]"></td>
- </tr>
- <tr>
- <td>
- <label>
- Chart Type
-
- </label>
- </td>
- <td><select name="charttype">[% select_charttype %]</select></td>
- </tr>
- </table>
-</fieldset>
-<fieldset class="DEPENDS ON charttype BEING A">
- <legend>Account Type</legend>
- <select name="category" id="AccountType" class="DEPENDS ON charttype BEING A">
- [% select_category %]</select>
-</fieldset>
-
-[% IF ChartTypeIsAccount %]
-<fieldset class="DEPENDS ON charttype BEING A">
- <legend>Is this a summary account to record</legend>
- <input name="AR" type="checkbox" class="checkbox" value="AR" [% HTML.escape(AR) %]>
- Sales
- <input name="AP" type="checkbox" class="checkbox" value="AP" [% HTML.escape(AP) %]>
- Purchases
- <input name="IC" type="checkbox" class="checkbox" value="IC" [% HTML.escape(IC) %]>
- Inventory
-</fieldset>
-
-<fieldset class="DEPENDS ON charttype BEING A">
- <legend>Include in drop-down menus</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.</p>
- <table width="100%">
- <tr>
- <th align="left">Receivables</th>
- <th align="left">Payables</th>
- <th align="left">Parts Inventory</th>
- <th align="left">Service Items</th>
- </tr>
- <tr>
- <td>
- <input name="AR_amount" type="checkbox" class="checkbox" value="AR_amount"
- [% HTML.escape(AR_amount) %]>
- Revenue <br>
- <input name="AR_paid" type="checkbox" class="checkbox" value="AR_paid"
- [% HTML.escape(AR_paid) %]>
- Receipt <br>
- <input name="AR_tax" type="checkbox" class="checkbox" value="AR_tax"
- [% HTML.escape(AR_tax) %]>
- Tax
- </td>
- <td>
- <input name="AP_amount" type="checkbox" class="checkbox" value="AP_amount"
- [% HTML.escape(AP_amount) %]>
- Expense/Asset <br>
- <input name="AP_paid" type="checkbox" class="checkbox" value="AP_paid"
- [% HTML.escape(AP_paid) %]>
- Payment <br>
- <input name="AP_tax" type="checkbox" class="checkbox" value="AP_tax"
- [% HTML.escape(AP_tax) %]>
- Tax
- </td>
- <td>
- <input name="IC_sale" type="checkbox" class="checkbox" value="IC_sale"
- [% HTML.escape(IC_sale) %]>
- Revenue <br>
- <input name="IC_cogs" type="checkbox" class="checkbox" value="IC_cogs"
- [% HTML.escape(IC_cogs) %]>
- Expense <br>
- <input name="IC_taxpart" type="checkbox" class="checkbox" value="IC_taxpart"
- [% HTML.escape(IC_taxpart) %]>
- Tax
- </td>
- <td>
- <input name=IC_income type=checkbox class=checkbox value="IC_income"
- [% HTML.escape(IC_income) %]>
- Revenue <br>
- <input name=IC_expense type=checkbox class=checkbox value="IC_expense"
- [% HTML.escape(IC_expense) %]>
- Expense <br>
- <input name=IC_taxservice type=checkbox class=checkbox value="IC_taxservice"
- [% HTML.escape(IC_taxservice) %]>
- Tax
- </td>
- </tr>
- </table>
-</fieldset>
-
-<fieldset class="DEPENDS ON charttype BEING A">
- <legend>
- Taxkeys and Taxreport Preferences
- </legend>
- <p style='font-weight:normal'>Note: Taxkeys must have a "valid from" date, and will not be in effect otherwise.</p>
-
- <table>
-[% IF account_exists %]
- <tr>
- <th align="left">Taxkey</th>
- <th align="left">valid from</th>
- <th align="left">pos_ustva</th>
- <th align="left">delete ? </th>
- </tr>
-[% FOREACH tk = ACCOUNT_TAXKEYS %]
- <tr>
- [% IF tk.id %]
- <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="[% tk.id %]">
- <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
- <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
- <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
- <td><input name="taxkey_del_[% tk.runningnumber %]" type="checkbox"
- class="checkbox" value="delete"></td>
- [% ELSE %]
- <input type="hidden" name="taxkey_id_[% tk.runningnumber %]" value="NEW">
- <td><select name="taxkey_tax_[% tk.runningnumber %]">[% tk.selecttaxkey %]</select></td>
- <td><input name="taxkey_startdate_[% tk.runningnumber %]" value="[% HTML.escape(tk.startdate) %]"></td>
- <td><select name="taxkey_pos_ustva_[% tk.runningnumber %]">[% tk.select_tax %]</select></td>
- <td> </td>
- [% END %]
- </tr>
-
-[% END %]
-[% ELSE %]
-<tr>
- <td align="center" colspan="4"><p>Save account first to insert taxkeys</p>
- </td>
-</tr>
-[% END %]
- </table>
-</fieldset>
-
-<fieldset class="DEPENDS ON charttype BEING A">
- <legend>Report and misc. Preferences</legend>
- <table>
- <tr>
- <th align="left">EUER</th>
- <td colspan="3"><select name="pos_eur">[% select_eur %]</select></td>
- </tr>
- <tr>
- <th align="left">BWA</th>
- <td colspan="3"><select name="pos_bwa">[% select_bwa %]</select></td>
- </tr>
- <!-- Diese Steuerfunktion hat keine Auswirkung in der Bilanz und wird erstmal deaktiviert. -->
- <!-- tr>
- <th align="left">Bilanz</th>
- <td colspan="3"><select name="pos_bilanz">[% select_bilanz %]</select></td>
- </tr -->
- <tr>
- <th align="left">Datevautomatik</th>
- <td colspan="3"><input name="datevautomatik" type="checkbox" class="checkbox" value="T" [% IF datevautomatik %]checked [% END %]></td>
- </tr>
- <tr>
- <th align="left">Folgekonto</th>
- <td><select name="new_chart_id">[% selectnewaccount %]</select></td>
- <th align="left">Valid from</th>
- <td><input name="valid_from" value="[% valid_from %]"></td>
- </tr>
- </table>
-[% END %]
-</fieldset>
-<hr size="3" noshade>