Revision e21e2190
Von Sven Schöling vor etwa 4 Jahren hinzugefügt
SL/DB/MetaSetup/RecordTemplate.pm | ||
---|---|---|
23 | 23 |
notes => { type => 'text' }, |
24 | 24 |
ob_transaction => { type => 'boolean', default => 'false', not_null => 1 }, |
25 | 25 |
ordnumber => { type => 'text' }, |
26 |
payment_id => { type => 'integer' }, |
|
26 | 27 |
project_id => { type => 'integer' }, |
27 | 28 |
reference => { type => 'text' }, |
28 | 29 |
show_details => { type => 'boolean', default => 'false', not_null => 1 }, |
... | ... | |
62 | 63 |
key_columns => { employee_id => 'id' }, |
63 | 64 |
}, |
64 | 65 |
|
66 |
payment => { |
|
67 |
class => 'SL::DB::PaymentTerm', |
|
68 |
key_columns => { payment_id => 'id' }, |
|
69 |
}, |
|
70 |
|
|
65 | 71 |
project => { |
66 | 72 |
class => 'SL::DB::Project', |
67 | 73 |
key_columns => { project_id => 'id' }, |
bin/mozilla/ap.pl | ||
---|---|---|
130 | 130 |
$::form->{currency} = $template->currency->name; |
131 | 131 |
$::form->{direct_debit} = $template->direct_debit; |
132 | 132 |
$::form->{globalproject_id} = $template->project_id; |
133 |
$::form->{payment_id} = $template->payment_id; |
|
133 | 134 |
$::form->{AP_chart_id} = $template->ar_ap_chart_id; |
134 | 135 |
$::form->{transdate} = $today->to_kivitendo; |
135 | 136 |
$::form->{duedate} = $today->to_kivitendo; |
... | ... | |
213 | 214 |
vendor_id => $::form->{vendor_id} || undef, |
214 | 215 |
department_id => $::form->{department_id} || undef, |
215 | 216 |
project_id => $::form->{globalproject_id} || undef, |
217 |
payment_id => $::form->{payment_id} || undef, |
|
216 | 218 |
taxincluded => $::form->{taxincluded} ? 1 : 0, |
217 | 219 |
direct_debit => $::form->{direct_debit} ? 1 : 0, |
218 | 220 |
ordnumber => $::form->{ordnumber}, |
sql/Pg-upgrade2/record_template_payment_id.sql | ||
---|---|---|
1 |
-- @tag: record_template_payment_id |
|
2 |
-- @description: Zahlungsbedingungen in Vorlagen in der Finanzbuchhaltung |
|
3 |
-- @depends: release_3_5_6_1 |
|
4 |
|
|
5 |
ALTER TABLE record_templates ADD COLUMN payment_id INTEGER REFERENCES payment_terms(id); |
Auch abrufbar als: Unified diff
Kreditorenbuchungen: Zahlungsbedingungen in Belegvorlagen