}
$notes =
- qq|<textarea name=notes rows=$rows cols=60 wrap=soft>$form->{notes}</textarea>|;
+ qq|<textarea name=notes rows=$rows cols=50 wrap=soft>$form->{notes}</textarea>|;
if (($rows = $form->numtextrows($form->{description}, 40)) > 1) {
$description =
qq|<textarea name="description" rows=$rows cols=40 wrap=soft>$form->{description}</textarea>|;
</tr>|;
- $form->{selectadr} = "<option></option>";
- if (@{ $form->{ADR} }) {
- foreach $item (@{ $form->{ADR} }) {
- if ($item->{id} == $form->{adr_id}) {
- $form->{selectadr} .=
- "<option value=$item->{id} selected>$item->{adr_code}\n";
- } else {
- $form->{selectadr} .=
- "<option value=$item->{id}>$item->{adr_code}\n";
- }
-
- }
- }
-
- $adr = qq|
- <tr>
- <th align=right>| . $locale->text('ADR') . qq|</th>
- <td><select name=adr_id>$form->{selectadr}</select></td>
- </tr>|;
-
-
# set option
foreach $item (qw(IC IC_income IC_expense)) {
if ($form->{$item}) {
<td><input name=gv size=10 value=$form->{gv}></td>
</tr>
|;
- $aluok = $form->{alu} == 1 ? "checked" : "";
-
- $alu .= qq|
- <tr>
- <th align=right nowrap>|
- . $locale->text('Aluartikel') . qq|</th>
- <td><input class=checkbox type=checkbox name=alu value=1 $aluok></td>
- </tr>|;
-
$notdiscountableok = ($form->{not_discountable}) == 1 ? "checked" : "";
$notdiscountable .= qq|
<tr>
|;
$formel =
- qq|<ilayer><layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('| . $locale->text('The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br><br>For alu article:<br>Length:<br>Weight/m:<br>Length ist total length of article and weight/m ist the weight pro meter') . qq|')"><textarea name=formel rows=4 cols=60 wrap=soft>$form->{formel}</textarea></layer><ilayer>|;
- $formel = "";
+ qq|<ilayer><layer onmouseover="this.T_STICKY=true;this.T_STATIC=true;return escape('| . $locale->text('The formula needs the following syntax:<br>For regular article:<br>Variablename= Variable Unit;<br>Variablename2= Variable2 Unit2;<br>...<br>###<br>Variable + ( Variable2 / Variable )<br><b>Please be beware of the spaces in the formula</b><br>') . qq|')"><textarea name=formel rows=4 cols=40 wrap=soft>$form->{formel}</textarea></layer><ilayer>|;
$imagelinks = qq|
<tr>
<td>
<table>
$buchungsgruppe
$linkaccounts
- $adr
</table>
</td>
<tr>
<th align="left">| . $locale->text('Notes') . qq|</th>
+ <th align="left">| . $locale->text('Formula') . qq|</th>
</tr>
<tr>
<td>
$notes
</td>
+ <td>
+ $formel
+ </td>
</tr>
<tr>
<td colspan=2>
$notdiscountable
$vegv
$shop
- $alu
$obsolete
</table>
</td>