Revision 0af1d584
Von Tamino Steinert vor mehr als 1 Jahr hinzugefügt
SL/IS.pm | ||
---|---|---|
2848 | 2848 |
return $result; |
2849 | 2849 |
} |
2850 | 2850 |
|
2851 |
sub has_hard_links { |
|
2852 |
$main::lxdebug->enter_sub(); |
|
2853 |
my ($self, $myconfig, $form, $table) = @_; |
|
2854 |
$main::lxdebug->leave_sub() and return 0 unless ($form->{id}); |
|
2855 |
my $result = 0; |
|
2856 |
if ($table eq 'ap') { |
|
2857 |
require SL::DB::PurchaseInvoice; |
|
2858 |
my $record = SL::DB::PurchaseInvoice->new(id => $form->{id})->load; |
|
2859 |
$result = SL::DB::Helper::HardRecordLinks->get_count($record); |
|
2860 |
} |
|
2861 |
$main::lxdebug->leave_sub(); |
|
2862 |
|
|
2863 |
return $result; |
|
2864 |
} |
|
2865 |
|
|
2851 | 2866 |
sub is_storno { |
2852 | 2867 |
$main::lxdebug->enter_sub(); |
2853 | 2868 |
|
Auch abrufbar als: Unified diff
Deaktiviere Löschen-Button bei festen Verknüpfungen (order, ap)