return shift->customer_id ? 'sales_delivery_order' : 'purchase_delivery_order';
}
+sub displayable_type {
+ my $type = shift->type;
+
+ return $::locale->text('Sales Delivery Order') if $type eq 'sales_delivery_order';
+ return $::locale->text('Purchase Delivery Order') if $type eq 'purchase_delivery_order';
+
+ die 'invalid type';
+}
+
+
sub displayable_state {
my ($self) = @_;
'Proposal' => 'Vorschlag',
'Proposals' => 'Vorschläge',
'Prozentual/Absolut' => 'Prozentual/Absolut',
+ 'Purchase Delivery Order' => 'Einkaufslieferschein',
'Purchase Delivery Orders' => 'Einkaufslieferscheine',
'Purchase Delivery Orders deleteable' => 'Einkaufslieferscheine löschbar',
'Purchase Invoice' => 'Einkaufsrechnung',
'Saldo neu' => 'Saldo neu',
'Saldo per' => 'Saldo per',
'Sale Prices' => 'Verkaufspreise',
+ 'Sales Delivery Order' => 'Verkaufslieferschein',
'Sales Delivery Orders' => 'Verkaufslieferscheine',
'Sales Delivery Orders deleteable' => 'Verkaufslieferscheine löschbar',
'Sales Invoice' => 'Rechnung',