Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 82d692e7

Von Sven Schöling vor etwa 7 Jahren hinzugefügt

  • ID 82d692e74a79d0a3370589e90df6eb2d0e69f18f
  • Vorgänger f260a8cc
  • Nachfolger 8b217e89

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

Unterschiede anzeigen:

bin/mozilla/ar.pl
874 874
      action => [
875 875
        $::locale->text('Search'),
876 876
        submit    => [ '#form' ],
877
        checks    => [ 'kivi.validate_form' ],
877 878
        accesskey => 'enter',
878 879
      ],
879 880
    );
880 881
  }
882
  $::request->layout->add_javascripts('kivi.Validator.js');
881 883
}
882 884

  
883 885
sub setup_ar_transactions_action_bar {
......
1257 1259
        t8('Update'),
1258 1260
        submit    => [ '#form', { action => "update" } ],
1259 1261
        id        => 'update_button',
1262
        checks    => [ 'kivi.validate_form' ],
1260 1263
        accesskey => 'enter',
1261 1264
      ],
1262 1265

  
......
1264 1267
        action => [
1265 1268
          t8('Post'),
1266 1269
          submit   => [ '#form', { action => "post" } ],
1267
          checks   => [ 'kivi.AR.check_fields_before_posting' ],
1270
          checks   => [ 'kivi.validate_form', 'kivi.AR.check_fields_before_posting' ],
1268 1271
          disabled => $is_closed                                  ? t8('The billing period has already been locked.')
1269 1272
                    : $is_storno                                  ? t8('A canceled invoice cannot be posted.')
1270 1273
                    : ($::form->{id} && $change_never)            ? t8('Changing invoices has been disabled in the configuration.')
......
1287 1290
      combobox => [
1288 1291
        action => [ t8('Storno'),
1289 1292
          submit   => [ '#form', { action => "storno" } ],
1290
          checks   => [ 'kivi.AR.check_fields_before_posting' ],
1293
          checks   => [ 'kivi.validate_form', 'kivi.AR.check_fields_before_posting' ],
1291 1294
          confirm  => t8('Do you really want to cancel this invoice?'),
1292 1295
          disabled => !$::form->{id}         ? t8('This invoice has not been posted yet.')
1293 1296
                      : $has_storno          ? t8('This invoice has been canceled already.')
......
1313 1316
        action => [
1314 1317
          t8('Use As New'),
1315 1318
          submit   => [ '#form', { action => "use_as_new" } ],
1319
          checks   => [ 'kivi.validate_form' ],
1316 1320
          disabled => !$::form->{id} ? t8('This invoice has not been posted yet.') : undef,
1317 1321
        ],
1318 1322
      ], # end of combobox "Workflow"
......
1343 1347
      ], # end of combobox "more"
1344 1348
    );
1345 1349
  }
1350
  $::request->layout->add_javascripts('kivi.Validator.js');
1346 1351
}
1347 1352

  
1348 1353
1;

Auch abrufbar als: Unified diff