Merge branch 'gewicht'
[kivitendo-erp.git] / templates / webpages / client_config / form.html
1 [%- USE T8 %][%- USE L %][% USE LxERP %]
2
3 [% PROCESS 'common/select_warehouse_bin.html'  WAREHOUSES=SELF.WAREHOUSES warehouse_id=SELF.warehouse_id bin_id=SELF.bin_id %]
4 <h1>[% title | html %]</h1>
5
6 [% PROCESS 'common/flash.html' %]
7
8 <form action='controller.pl' method='POST'>
9
10 <table>
11
12  <tr class='listheading'>
13    <th colspan="3">[% 'Posting Configuration' | $T8 %]</th>
14  </tr>
15
16  <tr>
17    <td align="right">[% 'Sales invoices changeable' | $T8 %]</td>
18    <td>[% L.select_tag('is_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.is_changeable) %]</td>
19    <td>[% 'Should sales invoices be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
20  </tr>
21  <tr>
22    <td align="right">[% 'Purchase invoices changeable' | $T8 %]</td>
23    <td>[% L.select_tag('ir_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ir_changeable) %]</td>
24    <td>[% 'Should purchase invoices be and when should they be deleteable after posting?' | $T8 %]</td>
25  </tr>
26  <tr>
27    <td align="right">[% 'AR transactions changeable' | $T8 %]</td>
28    <td>[% L.select_tag('ar_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ar_changeable) %]</td>
29    <td>[% 'Should ar transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
30  </tr>
31  <tr>
32    <td align="right">[% 'AP transactions changeable' | $T8 %]</td>
33    <td>[% L.select_tag('ap_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.ap_changeable) %]</td>
34    <td>[% 'Should ap transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
35  </tr>
36  <tr>
37    <td align="right">[% 'GL transactions changeable' | $T8 %]</td>
38    <td>[% L.select_tag('gl_changeable', SELF.posting_options, value_key => 'value', title_key => 'title', default => SELF.gl_changeable) %]</td>
39    <td>[% 'Should gl transactions be and when should they be changeable or deleteable after posting?' | $T8 %]</td>
40  </tr>
41
42  <tr> </tr>
43  <tr> </tr>
44
45  <tr>
46    <td align="right">[% 'Payments Changeable' | $T8 %]</td>
47    <td>[% L.select_tag('payments_changeable', SELF.payment_options, value_key => 'value', title_key => 'title', default => SELF.payments_changeable) %]</td>
48    <td>[% 'Should payments be and when should they be changeable after posting?' | $T8 %]</td>
49  </tr>
50
51  <tr> </tr>
52  <tr> </tr>
53
54  <tr>
55    <td align="right">[% 'Show "mark as paid" in sales invoices' | $T8 %]</td>
56    <td>[% L.yes_no_tag('is_show_mark_as_paid', SELF.is_show_mark_as_paid) %]</td>
57    <td>[% 'Should the "mark as paid" button showed on sales invoices?' | $T8 %]</td>
58  </tr>
59  <tr>
60    <td align="right">[% 'Show "mark as paid" in purchase invoices' | $T8 %]</td>
61    <td>[% L.yes_no_tag('ir_show_mark_as_paid', SELF.ir_show_mark_as_paid) %]</td>
62    <td>[% 'Should the "mark as paid" button showed in purchase invoices?' | $T8 %]</td>
63  </tr>
64  <tr>
65    <td align="right">[% 'Show "mark as paid" in ar transactions' | $T8 %]</td>
66    <td>[% L.yes_no_tag('ar_show_mark_as_paid', SELF.ar_show_mark_as_paid) %]</td>
67    <td>[% 'Should the "mark as paid" button showed in ar transactions?' | $T8 %]</td>
68  </tr>
69  <tr>
70    <td align="right">[% 'Show "mark as paid" in ap transactions' | $T8 %]</td>
71    <td>[% L.yes_no_tag('ap_show_mark_as_paid', SELF.ap_show_mark_as_paid) %]</td>
72    <td>[% 'Should the "mark as paid" button showed in ap transactions?' | $T8 %]</td>
73  </tr>
74
75  <tr> </tr>
76  <tr> </tr>
77
78  <tr>
79    <td align="right">[% 'Accounting method' | $T8 %]</td>
80    <td>[% L.select_tag('accounting_method', SELF.accounting_options, value_key => 'value', title_key => 'title', default => SELF.accounting_method) %]</td>
81    <td>[% 'This option controls the posting and calculation behavior for the accounting method.' | $T8 %]</td>
82  </tr>
83  <tr>
84    <td align="right">[% 'Inventory system' | $T8 %]</td>
85    <td>[% L.select_tag('inventory_system', SELF.inventory_options, value_key => 'value', title_key => 'title', default => SELF.inventory_system) %]</td>
86    <td>
87      [% 'This option controls the inventory system.' | $T8 %]<br>
88      [% 'ATTENTION! You can not simply change it from periodic to perpetual once you started posting.' | $T8 %]
89    </td>
90  </tr>
91  <tr>
92    <td align="right">[% 'Profit determination' | $T8 %]</td>
93    <td>[% L.select_tag('profit_determination', SELF.profit_options, value_key => 'value', title_key => 'title', default => SELF.profit_determination) %]</td>
94    <td>[% 'This option controls the method used for profit determination.' | $T8 %]</td>
95  </tr>
96
97  <tr> </tr>
98  <tr> </tr>
99
100  <tr class='listheading'>
101    <th colspan="3">[% 'DATEV check configuration' | $T8 %]</th>
102  </tr>
103  <tr>
104    <td colspan="3">[% 'It is possible to make a quick DATEV export everytime you post a record to ensure things work nicely with their data requirements. This will result in a slight overhead though you can enable this for each type of record independantly.' | $T8 %]</td>
105  </tr>
106  <tr>
107    <td align="right">[% 'Check on sales invoice' | $T8 %]</td>
108    <td>[% L.yes_no_tag('datev_check_on_sales_invoice', SELF.datev_check_on_sales_invoice) %]</td>
109    <td>[% 'Perform check when a sales invoice or a payment for a sales invoice is posted?' | $T8 %]</td>
110  </tr>
111  <tr>
112    <td align="right">[% 'Check on purchase invoice' | $T8 %]</td>
113    <td>[% L.yes_no_tag('datev_check_on_purchase_invoice', SELF.datev_check_on_purchase_invoice) %]</td>
114    <td>[% 'Perform check when a purchase invoice or a payment for a purchase invoice is posted?' | $T8 %]</td>
115  </tr>
116  <tr>
117    <td align="right">[% 'Check on ar transaction' | $T8 %]</td>
118    <td>[% L.yes_no_tag('datev_check_on_ar_transaction', SELF.datev_check_on_ar_transaction) %]</td>
119    <td>[% 'Perform check when an ar transaction is posted?' | $T8 %]</td>
120  </tr>
121  <tr>
122    <td align="right">[% 'Check on ap transaction' | $T8 %]</td>
123    <td>[% L.yes_no_tag('datev_check_on_ap_transaction', SELF.datev_check_on_ap_transaction) %]</td>
124    <td>[% 'Perform check when an ap transaction is posted?' | $T8 %]</td>
125  </tr>
126  <tr>
127    <td align="right">[% 'Check on gl transaction' | $T8 %]</td>
128    <td>[% L.yes_no_tag('datev_check_on_gl_transaction', SELF.datev_check_on_gl_transaction) %]</td>
129    <td>[% 'Perform check when a gl transaction is posted?' | $T8 %]</td>
130  </tr>
131
132  <tr> </tr>
133  <tr> </tr>
134
135  <tr class='listheading'>
136    <th colspan="3">[% 'Orders / Delivery Orders deleteable' | $T8 %]</th>
137  </tr>
138  <tr>
139    <td align="right">[% 'Sales Orders deleteable' | $T8 %]</td>
140    <td>[% L.yes_no_tag('sales_order_show_delete', SELF.sales_order_show_delete) %]</td>
141    <td>[% 'Show delete button in sales orders?' | $T8 %]</td>
142  </tr>
143  <tr>
144    <td align="right">[% 'Purchase Orders deleteable' | $T8 %]</td>
145    <td>[% L.yes_no_tag('purchase_order_show_delete', SELF.purchase_order_show_delete) %]</td>
146    <td>[% 'Show delete button in purchase orders?' | $T8 %]</td>
147  </tr>
148  <tr>
149    <td align="right">[% 'Sales Delivery Orders deleteable' | $T8 %]</td>
150    <td>[% L.yes_no_tag('sales_delivery_order_show_delete', SELF.sales_delivery_order_show_delete) %]</td>
151    <td>[% 'Show delete button in sales delivery orders?' | $T8 %]</td>
152  </tr>
153  <tr>
154    <td align="right">[% 'Purchase Delivery Orders deleteable' | $T8 %]</td>
155    <td>[% L.yes_no_tag('purchase_delivery_order_show_delete', SELF.purchase_delivery_order_show_delete) %]</td>
156    <td>[% 'Show delete button in purchase delivery orders?' | $T8 %]</td>
157  </tr>
158
159  <tr> </tr>
160  <tr> </tr>
161
162  <tr class='listheading'>
163    <th colspan="3">[% 'Warehouse' | $T8 %]</th>
164  </tr>
165  <tr>
166    <td align="right">[% 'Show Bestbefore' | $T8 %]</td>
167    <td>
168      [% L.yes_no_tag('show_bestbefore', SELF.show_bestbefore) %]
169    </td>
170    <td>
171      [% 'Show fields used for the best before date?' | $T8 %]<br>
172      [% 'ATTENTION! If you enabled this feature you can not simply turn it off again without taking care that best_before fields are emptied in the database.' | $T8 %]<br>
173      [% 'This can be done with the following query:' | $T8 %]<br>
174      <br>
175      UPDATE inventory SET bestbefore = NULL; <br>
176      <br>
177      [% 'Any stock contents containing a best before date will be impossible to stock out otherwise.' | $T8 %]
178    </td>
179  </tr>
180  <tr> </tr>
181  <tr> </tr>
182  <tr>
183   <th align="right" nowrap="true">[% 'Default Warehouse' | $T8 %]</th>
184   <td>
185    <select name="warehouse_id" onchange="warehouse_selected(warehouses[this.selectedIndex]['id'], 0)">
186     [%- FOREACH warehouse = SELF.WAREHOUSES %]
187       <option value="[% HTML.escape(warehouse.id) %]"[% IF SELF.warehouse_id == warehouse.id %] selected[% END %]>[% warehouse.description %]</option>
188     [%- END %]
189    </select>
190  </td>
191   <td>
192      [% 'This is the default bin for parts' | $T8 %]<br>
193   </td>
194  </tr>
195  <tr>
196   <th align="right" nowrap="true">[% 'Default Bin' | $T8 %]</th>
197   <td><select id="bin_id" name="bin_id"></select></td>
198  </tr>
199
200
201  <tr class='listheading'>
202    <th colspan="3">[% 'Weight' | $T8 %]</th>
203  </tr>
204  <tr>
205    <td align="right">[% 'Show weights' | $T8 %]</td>
206    <td>
207      [% L.yes_no_tag('show_weight', SELF.show_weight) %]
208    </td>
209    <td>
210      [% 'Show the weights of articles and the total weight in orders, invoices and delivery notes?' | $T8 %]<br>
211    </td>
212  </tr>
213 </table>
214
215 <br>
216
217 [%- L.hidden_tag('action',  'ClientConfig/dispatch')  %]
218 [%- L.submit_tag('action_save',  LxERP.t8('Save'))  %]
219
220 <br><br>
221
222 </form>