1 [% USE HTML %][% USE T8 %][% USE L %][% USE LxERP %]
 
   2 <h1>[% FORM.title %]</h1>
 
   4  <form method="post" action="controller.pl">
 
   6 [%- INCLUDE 'common/flash.html' %]
 
  10     <td>[%- 'Description' | $T8 %]</td>
 
  12      <input name="payment_term.description" value="[%- HTML.escape(SELF.payment_term.description) %]">
 
  17     <td>[%- 'Long Description' | $T8 %]</td>
 
  19      <input name="payment_term.description_long" value="[%- HTML.escape(SELF.payment_term.description_long) %]" size="60">
 
  23    [%- FOREACH language = SELF.languages %]
 
  25      <td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td>
 
  27       <input name="translation_[% language.id %]" value="[%- HTML.escape(SELF.payment_term.translated_attribute('description_long', language, 1)) %]" size="60">
 
  33     <td>[%- 'Netto Terms' | $T8 %]</td>
 
  35      <input name="payment_term.terms_netto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_netto_as_number) %]" size="6">
 
  40     <td>[%- 'Skonto Terms' | $T8 %]</td>
 
  42      <input name="payment_term.terms_skonto_as_number" value="[%- HTML.escape(SELF.payment_term.terms_skonto_as_number) %]" size="6">
 
  47     <td>[%- 'Skonto' | $T8 %]</td>
 
  49      <input name="payment_term.percent_skonto_as_percent" value="[%- HTML.escape(SELF.payment_term.percent_skonto_as_percent) %]" size="6">%
 
  55    <input type="hidden" name="id" value="[% SELF.payment_term.id %]">
 
  56    <input type="hidden" name="action" value="PaymentTerm/dispatch">
 
  57    <input type="submit" class="submit" name="action_[% IF SELF.payment_term.id %]update[% ELSE %]create[% END %]" value="[% 'Save' | $T8 %]">
 
  58    [%- IF SELF.payment_term.id %]
 
  59     <input type="submit" class="submit" name="action_destroy" value="[% 'Delete' | $T8 %]"
 
  60            onclick="if (confirm('[% 'Are you sure you want to delete this payment term?' | $T8 %]')) return true; else return false;">
 
  62    <a href="[% SELF.url_for(action => 'list') %]">[%- 'Abort' | $T8 %]</a>
 
  67   <p>[% LxERP.t8("You can use the following strings in the long description and all translations. They will be replaced by their actual values by kivitendo before they're output.") %]</p>
 
  70    <tr class="listheading"><th>[%- LxERP.t8('Field') %]</th><th>[%- LxERP.t8('Description') %]</th></tr>
 
  71    <tr><td><%payment_terms%></td><td>[% LxERP.t8("Payment description") %]</td></tr>
 
  72    <tr><td><%payment_description%></td><td>[% LxERP.t8("Payment description detail") %]</td></tr>
 
  73    <tr><td><%netto_date%></td><td>[% LxERP.t8("Date the payment is due in full") %]</td></tr>
 
  74    <tr><td><%skonto_date%></td><td>[% LxERP.t8("Date the payment is due with discount") %]</td></tr>
 
  75    <tr><td><%skonto_amount%></td><td>[% LxERP.t8("The deductible amount") %]</td></tr>
 
  76    <tr><td><%skonto_in_percent%></td><td>[% LxERP.t8("The discount in percent") %]</td></tr>
 
  77    <tr><td><%total%></td><td>[% LxERP.t8("Amount payable") %]</td></tr>
 
  78    <tr><td><%total_wo_skonto%></td><td>[% LxERP.t8("Amount payable less discount") %]</td></tr>
 
  79    <tr><td><%invtotal%></td><td>[% LxERP.t8("Invoice total") %]</td></tr>
 
  80    <tr><td><%invtotal_wo_skonto%></td><td>[% LxERP.t8("Invoice total less discount") %]</td></tr>
 
  81    <tr><td><%currency%></td><td>[% LxERP.t8("The selected currency") %]</td></tr>
 
  82    <tr><td><%terms_netto%></td><td>[% LxERP.t8("The number of days for full payment") %]</td></tr>
 
  83    <tr><td><%account_number%></td><td>[% LxERP.t8("Your account number") %]</td></tr>
 
  84    <tr><td><%bank%></td><td>[% LxERP.t8("Your bank") %]</td></tr>
 
  85    <tr><td><%bank_code%></td><td>[% LxERP.t8("Your bank code") %]</td></tr>