Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 8b217e89

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

  • ID 8b217e89e09ec0d18a6dc747a62a0c38dc7b9572
  • Vorgänger 82d692e7
  • Nachfolger 5af4094b

kivi.Validator: In AP Suche und Maske als check registriert

Unterschiede anzeigen:

bin/mozilla/ap.pl
1168 1168
      action => [
1169 1169
        $::locale->text('Search'),
1170 1170
        submit    => [ '#form', { action => "ap_transactions" } ],
1171
        checks    => [ 'kivi.validate_form' ],
1171 1172
        accesskey => 'enter',
1172 1173
      ],
1173 1174
    );
1174 1175
  }
1176
  $::request->layout->add_javascripts('kivi.Validator.js');
1175 1177
}
1176 1178

  
1177 1179
sub setup_ap_transactions_action_bar {
......
1211 1213
        t8('Update'),
1212 1214
        submit    => [ '#form', { action => "update" } ],
1213 1215
        id        => 'update_button',
1216
        checks    => [ 'kivi.validate_form' ],
1214 1217
        accesskey => 'enter',
1215 1218
      ],
1216 1219

  
......
1218 1221
        action => [
1219 1222
          t8('Post'),
1220 1223
          submit   => [ '#form', { action => "post" } ],
1221
          checks   => [ 'kivi.AP.check_fields_before_posting' ],
1224
          checks   => [ 'kivi.validate_form', 'kivi.AP.check_fields_before_posting' ],
1222 1225
          disabled => $is_closed                                  ? t8('The billing period has already been locked.')
1223 1226
                    : $is_storno                                  ? t8('A canceled invoice cannot be posted.')
1224 1227
                    : ($::form->{id} && $change_never)            ? t8('Changing invoices has been disabled in the configuration.')
......
1228 1231
        action => [
1229 1232
          t8('Post Payment'),
1230 1233
          submit   => [ '#form', { action => "post_payment" } ],
1234
          checks   => [ 'kivi.validate_form' ],
1231 1235
          disabled => !$::form->{id} ? t8('This invoice has not been posted yet.') : undef,
1232 1236
        ],
1233 1237
        action => [ t8('Mark as paid'),
......
1241 1245
      combobox => [
1242 1246
        action => [ t8('Storno'),
1243 1247
          submit   => [ '#form', { action => "storno" } ],
1244
          checks   => [ 'kivi.AP.check_fields_before_posting' ],
1248
          checks   => [ 'kivi.validate_form', 'kivi.AP.check_fields_before_posting' ],
1245 1249
          confirm  => t8('Do you really want to cancel this invoice?'),
1246 1250
          disabled => !$::form->{id}         ? t8('This invoice has not been posted yet.')
1247 1251
                      : $has_storno          ? t8('This invoice has been canceled already.')
......
1268 1272
        action => [
1269 1273
          t8('Use As New'),
1270 1274
          submit   => [ '#form', { action => "use_as_new" } ],
1275
          checks   => [ 'kivi.validate_form' ],
1271 1276
          disabled => !$::form->{id} ? t8('This invoice has not been posted yet.') : undef,
1272 1277
        ],
1273 1278
      ], # end of combobox "Workflow"
......
1298 1303
      ], # end of combobox "more"
1299 1304
    );
1300 1305
  }
1306
  $::request->layout->add_javascripts('kivi.Validator.js');
1301 1307
}

Auch abrufbar als: Unified diff