Hintergrund:
Beleg und Memo werden auch bei den Vorlagen zeilenweise mitgespeichert,
wenn diese aber nicht visuell beim Laden der Vorlage zu Verfügung stehen,
vergißt der Anwender die Werte zu ändern. -> Details anzeigen mitübergeben
ordnumber => { type => 'text' },
project_id => { type => 'integer' },
reference => { type => 'text' },
ordnumber => { type => 'text' },
project_id => { type => 'integer' },
reference => { type => 'text' },
+ show_details => { type => 'boolean', default => 'false', not_null => 1 },
taxincluded => { type => 'boolean', default => 'false', not_null => 1 },
template_name => { type => 'text', not_null => 1 },
template_type => { type => 'enum', check_in => [ 'ar_transaction', 'ap_transaction', 'gl_transaction' ], db_type => 'record_template_type', not_null => 1 },
taxincluded => { type => 'boolean', default => 'false', not_null => 1 },
template_name => { type => 'text', not_null => 1 },
template_type => { type => 'enum', check_in => [ 'ar_transaction', 'ap_transaction', 'gl_transaction' ], db_type => 'record_template_type', not_null => 1 },
$::form->{duedate} = $today->to_kivitendo;
$::form->{rowcount} = @{ $template->items };
$::form->{paidaccounts} = 1;
$::form->{duedate} = $today->to_kivitendo;
$::form->{rowcount} = @{ $template->items };
$::form->{paidaccounts} = 1;
- $::form->{$_} = $template->$_ for qw(department_id taxincluded ob_transaction cb_transaction reference description);
+ $::form->{$_} = $template->$_ for qw(department_id taxincluded ob_transaction cb_transaction reference description show_details);
$::form->{$_} = $dummy_form->{$_} for qw(closedto revtrans previous_id previous_gldate);
my $row = 0;
$::form->{$_} = $dummy_form->{$_} for qw(closedto revtrans previous_id previous_gldate);
my $row = 0;
cb_transaction => $::form->{cb_transaction} ? 1 : 0,
reference => $::form->{reference},
description => $::form->{description},
cb_transaction => $::form->{cb_transaction} ? 1 : 0,
reference => $::form->{reference},
description => $::form->{description},
+ show_details => $::form->{show_details},
--- /dev/null
+-- @tag: alter_record_template_tables
+-- @description: Haken Details anzeigen in Dialog-Vorlage ergänzen
+-- @depends: release_3_5_0 create_record_template_tables
+
+ALTER TABLE record_templates ADD column show_details BOOLEAN NOT NULL DEFAULT FALSE;
+