class => 'SL::DB::InvoiceItem',
column_map => { id => 'trans_id' },
manager_args => {
- with_objects => [ 'part' ]
+ with_objects => [ 'parts' ]
}
},
- payment_term => {
- type => 'one to one',
- class => 'SL::DB::PaymentTerm',
- column_map => { payment_id => 'id' },
- },
- contact => {
- type => 'one to one',
- class => 'SL::DB::Contact',
- column_map => { cp_id => 'cp_id' },
- },
- shipto => {
- type => 'one to one',
- class => 'SL::DB::Shipto',
- column_map => { shipto_id => 'shipto_id' },
- },
- department => {
- type => 'one to one',
- class => 'SL::DB::Department',
- column_map => { department_id => 'id' },
- },
- language => {
- type => 'one to one',
- class => 'SL::DB::Language',
- column_map => { language_id => 'id' },
- },
- employee => {
- type => 'one to one',
- class => 'SL::DB::Employee',
- column_map => { employee_id => 'id' },
- },
);
__PACKAGE__->meta->initialize;
# methods
-sub items { goto &invoiceitems; }
+sub items { goto &invoiceitems; }
+sub payment_term { goto &payment; }
# it is assumed, that ordnumbers are unique here.
sub first_order_by_ordnumber {
=item 6. Items in C<invoice> are updated according to their allocation
status (regarding for costs of goold sold). Will only be done if
-Lx-Office is not configured to use Einnahmenüberschussrechnungen
-(see config/lx_office.conf, section "system", variable "eur").
+kivitendo is not configured to use Einnahmenüberschussrechnungen.
=item 7. The invoice and its items are saved.