Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 2a10bda6

Von G. Richardson vor fast 14 Jahren hinzugefügt

  • ID 2a10bda67f4badddcf7932021ac4f5397e71f8df
  • Vorgänger 825a2789
  • Nachfolger 5fd2cf41

Bugfix 1626: changing charttype from account to heading

Empty certain values in chart before saving to database when converting an
account from chart to heading, so that for example link is empty.

Added a TODO: make sure that accounts that have been booked can't be converted
to a heading

Unterschiede anzeigen:

SL/AM.pm
sub save_account {
$main::lxdebug->enter_sub();
# TODO: it should be forbidden to change an account to a heading if there
# have been bookings to this account in the past
my ($self, $myconfig, $form) = @_;
# connect to database, turn off AutoCommit
......
my @values;
if ($form->{id}) {
# if charttype is heading make sure certain values are empty
# specifically, if charttype is changed from an existing account, empty the
# fields unnecessary for headings, so that e.g. heading doesn't appear in
# drop-down menues due to still having a valid "link" entry
if ( $form->{charttype} eq 'H' ) {
$form->{link} = '';
$form->{pos_bwa} = '';
$form->{pos_bilanz} = '';
$form->{pos_eur} = '';
$form->{new_chart_id} = '';
$form->{valid_from} = '';
};
$query = qq|UPDATE chart SET
accno = ?,
description = ?,
......
$form->{id},
);
}
do_query($form, $dbh, $query, @values);
doc/changelog
Liste gefixter Bugs aus dem Bugtracker:
- Bugfix 1613: Status teilweise
- Bugfix 1642: Lieferantenrabatt wird korrekt gespeichert, aber nicht mehr angezeigt
- Bugfix 1642: Lieferantenrabatt wird korrekt gespeichert, aber nicht mehr angezeigt
- Bugfix 1626: Beim Festlegen der Standardkonten kann beim Warenbestand eine Überschrift ausgewählt werden.
2011-02-02 - Release 2.6.2

Auch abrufbar als: Unified diff