Revision 001155e4
Von Sven Schöling vor fast 10 Jahren hinzugefügt
SL/DB/Invoice.pm | ||
---|---|---|
318 | 318 |
return $self->closed ? $::locale->text('closed') : $::locale->text('open'); |
319 | 319 |
} |
320 | 320 |
|
321 |
sub displayable_type { |
|
322 |
my ($self) = @_; |
|
323 |
|
|
324 |
return t8('AR Transaction') if $self->invoice_type eq 'ar_transaction'; |
|
325 |
return t8('Credit Note') if $self->invoice_type eq 'credit_note'; |
|
326 |
return t8('Invoice') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'invoice_storno'; |
|
327 |
return t8('Credit Note') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'credit_note_storno'; |
|
328 |
return t8('Invoice'); |
|
329 |
} |
|
330 |
|
|
321 | 331 |
sub abbreviation { |
322 | 332 |
my $self = shift; |
323 | 333 |
|
SL/IS.pm | ||
---|---|---|
1174 | 1174 |
|
1175 | 1175 |
Common::webdav_folder($form); |
1176 | 1176 |
|
1177 |
if ($form->{convert_from_ar_ids}) { |
|
1178 |
RecordLinks->create_links('dbh' => $dbh, |
|
1179 |
'mode' => 'ids', |
|
1180 |
'from_table' => 'ar', |
|
1181 |
'from_ids' => $form->{convert_from_ar_ids}, |
|
1182 |
'to_table' => 'ar', |
|
1183 |
'to_id' => $form->{id}, |
|
1184 |
); |
|
1185 |
delete $form->{convert_from_ar_ids}; |
|
1186 |
} |
|
1187 |
|
|
1177 | 1188 |
# Link this record to the records it was created from. |
1178 | 1189 |
RecordLinks->create_links('dbh' => $dbh, |
1179 | 1190 |
'mode' => 'ids', |
SL/Presenter/Record.pm | ||
---|---|---|
340 | 340 |
type => 'sales_invoice', |
341 | 341 |
columns => [ |
342 | 342 |
[ $::locale->text('Invoice Date'), 'transdate' ], |
343 |
[ $::locale->text('Type'), sub { $_[0]->displayable_type } ], |
|
343 | 344 |
[ $::locale->text('Invoice Number'), sub { $self->sales_invoice($_[0], display => 'table-cell') } ], |
344 | 345 |
[ $::locale->text('Quotation Number'), 'quonumber' ], |
345 | 346 |
[ $::locale->text('Order Number'), 'ordnumber' ], |
... | ... | |
382 | 383 |
type => 'ar_transaction', |
383 | 384 |
columns => [ |
384 | 385 |
[ $::locale->text('Invoice Date'), 'transdate' ], |
386 |
[ $::locale->text('Type'), sub { $_[0]->displayable_type } ], |
|
385 | 387 |
[ $::locale->text('Invoice Number'), sub { $self->ar_transaction($_[0], display => 'table-cell') } ], |
386 | 388 |
[ $::locale->text('Customer'), 'customer' ], |
387 | 389 |
[ $::locale->text('Net amount'), 'netamount' ], |
bin/mozilla/is.pl | ||
---|---|---|
390 | 390 |
max_dunning_level dunning_amount |
391 | 391 |
shiptoname shiptostreet shiptozipcode shiptocity shiptocountry shiptocontact shiptophone shiptofax |
392 | 392 |
shiptoemail shiptodepartment_1 shiptodepartment_2 shiptocp_gender message email subject cc bcc taxaccounts cursor_fokus |
393 |
convert_from_do_ids convert_from_oe_ids |
|
393 |
convert_from_do_ids convert_from_oe_ids convert_from_ar_ids
|
|
394 | 394 |
show_details |
395 | 395 |
), @custom_hiddens, |
396 | 396 |
map { $_.'_rate', $_.'_description', $_.'_taxnumber' } split / /, $form->{taxaccounts}]; |
... | ... | |
959 | 959 |
$form->{duedate} = |
960 | 960 |
$form->current_date(\%myconfig, $form->{invdate}, $form->{terms} * 1); |
961 | 961 |
|
962 |
$form->{convert_from_ar_ids} = $form->{id}; |
|
962 | 963 |
$form->{id} = ''; |
963 | 964 |
$form->{rowcount}--; |
964 | 965 |
|
Auch abrufbar als: Unified diff
RecordLinks: credit_notes verlinken, und Typ von Rechnungen anzeigen