Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0a50b37c

Von Sven Schöling vor mehr als 8 Jahren hinzugefügt

  • ID 0a50b37cde825744889a90cb21cc9e0c2c2d47c6
  • Vorgänger 8ae66263
  • Nachfolger 642d2475

Rechnungsmasken auf dispatcher Mechanismus umgestellt

Unterschiede anzeigen:

bin/mozilla/is.pl
1174 1174

  
1175 1175
  $main::lxdebug->leave_sub();
1176 1176
}
1177

  
1178
sub dispatcher {
1179
  for my $action (qw(
1180
    print update ship_to e_mail storno post_payment use_as_new credit_note
1181
    delete post order preview post_and_e_mail print_and_post save_draft
1182
    mark_as_paid
1183
  )) {
1184
    if ($::form->{"action_$action"}) {
1185
      call_sub($action);
1186
      return;
1187
    }
1188
  }
1189

  
1190
  $::form->error($::locale->text('No action defined.'));
1191
}
templates/webpages/is/form_footer.html
154 154
<hr size="3" noshade>
155 155

  
156 156
<p>[% print_options %]</p>
157

  
157
  <input type="hidden" name="action" value="dispatcher">
158 158
  [% IF id %]
159 159

  
160
    <input class="submit" type="submit" accesskey="u" name="action" id="update_button" value="[% 'Update' | $T8 %]">
161
    <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
162
    <input class="submit" type="submit" name="action" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
163
    <input class="submit" type="submit" name="action" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
160
    <input class="submit" type="submit" accesskey="u" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
161
    <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
162
    <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
163
    <input class="submit" type="submit" name="action_e_mail" value="[% 'E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
164 164
[% IF  show_storno %]
165
    [% L.submit_tag("action", LxERP.t8("Storno"), "data-require-transaction-description"=INSTANCE_CONF.get_require_transaction_description_ps, confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
165
    [% L.submit_tag("action_storno", LxERP.t8("Storno"), "data-require-transaction-description"=INSTANCE_CONF.get_require_transaction_description_ps, confirm=LxERP.t8('Do you really want to cancel this invoice?')) %]
166 166
[% END %]
167
    <input class="submit" type="submit" name="action" value="[% 'Post Payment' | $T8 %]">
168
    <input class="submit" type="submit" name="action" value="[% 'Use As New' | $T8 %]">
167
    <input class="submit" type="submit" name="action_post_payment" value="[% 'Post Payment' | $T8 %]">
168
    <input class="submit" type="submit" name="action_use_as_new" value="[% 'Use As New' | $T8 %]">
169 169

  
170 170
[% IF id && !is_type_credit_note %]
171
    <input class="submit" type="submit" name="action" value="[% 'Credit Note' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
171
    <input class="submit" type="submit" name="action_credit_note" value="[% 'Credit Note' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
172 172
[% END %]
173 173
[% IF show_delete && (!storno || storno_id) %]
174
    <input class="submit" type="submit" name="action" value="[% 'Delete' | $T8 %]">
174
    <input class="submit" type="submit" name="action_delete" value="[% 'Delete' | $T8 %]">
175 175
[% END %]
176 176
[% IF show_delete && !storno %]
177
    <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
177
    <input class="submit" type="submit" name="action_post" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
178 178
[% END %]
179
    <input class="submit" type="submit" name="action" value="[% 'Order' | $T8 %]">
179
    <input class="submit" type="submit" name="action_order" value="[% 'Order' | $T8 %]">
180 180
    <input type="button" class="submit" onclick="follow_up_window()" value="[% 'Follow-Up' | $T8 %]">
181 181

  
182 182
 [% ELSE # no id %]
183 183
   [% UNLESS locked %]
184
      <input class="submit" type="submit" name="action" id="update_button" value="[% 'Update' | $T8 %]">
185
      <input class="submit" type="submit" name="action" value="[% 'Ship to' | $T8 %]">
186
      <input class="submit" type="submit" name="action" value="[% 'Preview' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
187
      <input class="submit" type="submit" name="action" value="[% 'Post and E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
188
      <input class="submit" type="submit" name="action" value="[% 'Print and Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
189
      <input class="submit" type="submit" name="action" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
190
      <input class="submit" type="submit" name="action" value="[% 'Save Draft' | $T8 %]">
184
      <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
185
      <input class="submit" type="submit" name="action_ship_to" value="[% 'Ship to' | $T8 %]">
186
      <input class="submit" type="submit" name="action_preview" value="[% 'Preview' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
187
      <input class="submit" type="submit" name="action_post_and_e_mail" value="[% 'Post and E-mail' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
188
      <input class="submit" type="submit" name="action_print_and_post" value="[% 'Print and Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
189
      <input class="submit" type="submit" name="action_post" value="[% 'Post' | $T8 %]" data-require-transaction-description="[% INSTANCE_CONF.get_require_transaction_description_ps %]">
190
      <input class="submit" type="submit" name="action_save_draft" value="[% 'Save Draft' | $T8 %]">
191 191
   [%- END %]
192 192
 [% END # id %]
193 193

  
......
195 195
      [%#- button for saving history %]
196 196
      <input type="button" class="submit" onclick="set_history_window([% id | html %], 'glid');" name="history" id="history" value="[% 'history' | $T8 %]">
197 197
      [% IF INSTANCE_CONF.get_is_show_mark_as_paid %]
198
          <input type="submit" class="submit" name="action" value="[% 'mark as paid' | $T8 %]">
198
          <input type="submit" class="submit" name="action_mark_as_paid" value="[% 'mark as paid' | $T8 %]">
199 199
      [% END %]
200 200
  [% END %]
201 201

  

Auch abrufbar als: Unified diff