Revision b3dcf24a
Von Kivitendo Admin vor mehr als 9 Jahren hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
72 | 72 |
return shift->customer_id ? 'sales_delivery_order' : 'purchase_delivery_order'; |
73 | 73 |
} |
74 | 74 |
|
75 |
sub displayable_type { |
|
76 |
my $type = shift->type; |
|
77 |
|
|
78 |
return $::locale->text('Sales Delivery Order') if $type eq 'sales_delivery_order'; |
|
79 |
return $::locale->text('Purchase Delivery Order') if $type eq 'purchase_delivery_order'; |
|
80 |
|
|
81 |
die 'invalid type'; |
|
82 |
} |
|
83 |
|
|
84 |
|
|
75 | 85 |
sub displayable_state { |
76 | 86 |
my ($self) = @_; |
77 | 87 |
|
Auch abrufbar als: Unified diff
Methode displayable_type auch für Lieferscheine