allow_new_purchase_invoice => { type => 'boolean', default => 'true', not_null => 1 },
allow_sales_invoice_from_sales_order => { type => 'boolean', default => 'true', not_null => 1 },
allow_sales_invoice_from_sales_quotation => { type => 'boolean', default => 'true', not_null => 1 },
- ap_add_doc => { type => 'boolean', default => 'true', not_null => 1 },
+ ap_add_doc => { type => 'boolean', default => 'false', not_null => 1 },
ap_changeable => { type => 'integer', default => 2, not_null => 1 },
ap_chart_id => { type => 'integer' },
ap_show_mark_as_paid => { type => 'boolean', default => 'true' },
- ar_add_doc => { type => 'boolean', default => 'true', not_null => 1 },
+ ar_add_doc => { type => 'boolean', default => 'false', not_null => 1 },
ar_changeable => { type => 'integer', default => 2, not_null => 1 },
ar_chart_id => { type => 'integer' },
ar_paid_accno_id => { type => 'integer' },
feature_ustva => { type => 'boolean', default => 'true', not_null => 1 },
fxgain_accno_id => { type => 'integer' },
fxloss_accno_id => { type => 'integer' },
- gl_add_doc => { type => 'boolean', default => 'true', not_null => 1 },
+ gl_add_doc => { type => 'boolean', default => 'false', not_null => 1 },
gl_changeable => { type => 'integer', default => 2, not_null => 1 },
global_bcc => { type => 'text', default => '' },
id => { type => 'serial', not_null => 1 },
inventory_system => { type => 'text' },
invnumber => { type => 'text' },
invoice_mail_settings => { type => 'enum', check_in => [ 'cp', 'invoice_mail', 'invoice_mail_cc_cp' ], db_type => 'invoice_mail_settings', default => 'cp' },
- ir_add_doc => { type => 'boolean', default => 'true', not_null => 1 },
+ ir_add_doc => { type => 'boolean', default => 'false', not_null => 1 },
ir_changeable => { type => 'integer', default => 2, not_null => 1 },
ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
is_changeable => { type => 'integer', default => 2, not_null => 1 },
--- /dev/null
+-- @tag: defaults_posting_records_default_false
+-- @description: Einstellung, ob Belege (PDF) zu einer Buchung hinzugefügt werden sollen
+-- @depends: release_3_5_6_1 defaults_posting_records_add
+
+ALTER TABLE defaults ALTER COLUMN ir_add_doc SET DEFAULT false;
+ALTER TABLE defaults ALTER COLUMN ar_add_doc SET DEFAULT false;
+ALTER TABLE defaults ALTER COLUMN ap_add_doc SET DEFAULT false;
+ALTER TABLE defaults ALTER COLUMN gl_add_doc SET DEFAULT false;
+
+UPDATE defaults set ir_add_doc='false';
+UPDATE defaults set ar_add_doc='false';
+UPDATE defaults set ap_add_doc='false';
+UPDATE defaults set gl_add_doc='false';