Revision 36e45d3d
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/Controller/Order.pm | ||
---|---|---|
41 | 41 |
use SL::Helper::UserPreferences::PositionsScrollbar; |
42 | 42 |
use SL::Helper::UserPreferences::UpdatePositions; |
43 | 43 |
|
44 |
use SL::DB::Helper::HardRecordLinks; |
|
45 |
|
|
46 | 44 |
use SL::Controller::Helper::GetModels; |
47 | 45 |
|
48 | 46 |
use List::Util qw(first sum0); |
... | ... | |
2418 | 2416 |
$has_final_invoice = any {'SL::DB::Invoice' eq ref $_ && "final_invoice" eq $_->type} @$lr; |
2419 | 2417 |
} |
2420 | 2418 |
|
2421 |
my $has_hard_links = SL::DB::Helper::HardRecordLinks->get_count($self->order);
|
|
2419 |
my $has_hard_links = $self->order->hard_linked;
|
|
2422 | 2420 |
|
2423 | 2421 |
my $right_for = { map { $_ => $_.'_edit' } @{$self->valid_types} }; |
2424 | 2422 |
$right_for->{ sales_order_intake_type() } = 'sales_order_edit'; |
Auch abrufbar als: Unified diff
SL::DB::Helper::HardLinkedRecords: Nutzung wie LinkedRecords