Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9fae84d1

Von Jan Büren vor fast 2 Jahren hinzugefügt

  • ID 9fae84d1564b84411089e3d5922662de2ce2ab32
  • Vorgänger dd47071f
  • Nachfolger 74b68fd8

check_exchangerate: Datum kann DateTime sein (periodic_invoices) und scheint ...

... auch eine gültige SQL-Abfrage zu erzeugen.

Unterschiede anzeigen:

SL/Form.pm
1499 1499
                 { isa  => 'Form'},
1500 1500
                 { type => HASHREF, callbacks => { has_yy_in_dateformat => sub { $_[0]->{dateformat} =~ m/yy/ } } },
1501 1501
                 { type => SCALAR, callbacks  => { is_fx_currency       => sub { shift ne $_[1]->[0]->{defaultcurrency} } } }, # should be ISO three letter codes for currency identification (ISO 4217)
1502
                 { type => SCALAR, callbacks  => { is_valid_kivi_date   => sub { shift =~ m/\d+\d+\d+/ } } }, # we have three numers
1502
                 { type => SCALAR | HASHREF, callbacks  => { is_valid_kivi_date   => sub { shift =~ m/\d+\d+\d+/ } } }, # we have three numbers. Either DateTime or form scalar
1503 1503
                 { type => SCALAR, callbacks  => { is_buy_or_sell_rate  => sub { shift =~ m/^buy|sell$/ } } },
1504 1504
                 { type => SCALAR, callbacks  => { is_current_form_id   => sub { $_[0] == $_[1]->[0]->{id} } },              optional => 1 },
1505 1505
                 { type => SCALAR, callbacks  => { is_valid_fx_table    => sub { shift =~ m/(ar|ap)/  } }, optional => 1 }

Auch abrufbar als: Unified diff