package SL::DB::DeliveryOrder::TypeData;
use strict;
+use Carp;
use Exporter qw(import);
use Scalar::Util qw(weaken);
use SL::Locale::String qw(t8);
saved => t8('Delivery Order has been saved'),
add => t8("Add Sales Delivery Order"),
edit => t8("Edit Sales Delivery Order"),
+ attachment => t8("sales_delivery_order_list"),
},
show_menu => {
save_and_quotation => 0,
saved => t8('Delivery Order has been saved'),
add => t8("Add Purchase Delivery Order"),
edit => t8("Edit Purchase Delivery Order"),
+ attachment => t8("purchase_delivery_order_list"),
},
show_menu => {
save_and_quotation => 0,
saved => t8('Delivery Order has been saved'),
add => t8("Add Supplier Delivery Order"),
edit => t8("Edit Supplier Delivery Order"),
+ attachment => t8("supplier_delivery_order_list"),
},
show_menu => {
save_and_quotation => 0,
saved => t8('Delivery Order has been saved'),
add => t8("Add RMA Delivery Order"),
edit => t8("Edit RMA Delivery Order"),
+ attachment => t8("rma_delivery_order_list"),
},
show_menu => {
save_and_quotation => 0,
}
sub validate_type {
- my ($self, $type) = @_;
+ my ($type) = @_;
- return $valid_types{$type} // die "invalid type";
+ return $valid_types{$type} // confess "invalid type '$type'";
}
sub get {
sub get3 {
my ($type, $topic, $key) = @_;
- my $ret = $type_data{$type}{$topic}{$key} // die "unknown property '$key' in topic '$topic'";
+ my $ret = $type_data{$type}{$topic}{$key} // die "unknown property '$key' in topic '$topic' for type '$type'";
ref $ret eq 'CODE'
? $ret->()
'return_material' => 'Materialrückgabe',
'revert deleted' => 'löschen rückgängig',
'rfq_list' => 'anfragenliste',
+ 'rma_delivery_order_list' => 'lieferscheinliste_rma',
'running' => 'läuft',
'sales tax identification number' => 'USt-IdNr.',
'sales_delivery_order_list' => 'lieferscheinliste_verkauf',
'stocktaking' => 'Inventur',
'succeeded' => 'erfolgreich',
'sum' => 'Summe',
+ 'supplier_delivery_order_list' => 'lieferscheinliste_beistell',
'tax_chartaccno' => 'Automatikkonto',
'tax_percent' => 'Prozentsatz',
'tax_rate' => 'Prozent',