my $dbh = $form->dbconnect($myconfig);
my %arap = (invoice => 'ar',
- packing_list => 'ar',
sales_order => 'oe',
purchase_order => 'oe',
sales_quotation => 'oe',
}
}
- if ($form->{type} =~ /(invoice|sales_order|sales_quotation|packing_list|puchase_order|request_quotation)$/) {
+ if ($form->{type} =~ /(invoice|sales_order|sales_quotation|puchase_order|request_quotation)$/) {
if ($form->{transdatefrom}) {
$query .= " AND a.transdate >= ?";
push(@values, $form->{transdatefrom});
bin_list => $main::locale->text('Bin List'),
credit_note => $main::locale->text('Credit Note'),
invoice => $main::locale->text('Invoice'),
- packing_list => $main::locale->text('Packing List'),
pick_list => $main::locale->text('Pick List'),
proforma => $main::locale->text('Proforma Invoice'),
purchase_order => $main::locale->text('Purchase Order'),
sales_order => $main::locale->text('Confirmation'),
sales_quotation => $main::locale->text('Quotation'),
storno_invoice => $main::locale->text('Storno Invoice'),
- storno_packing_list => $main::locale->text('Storno Packing List'),
sales_delivery_order => $main::locale->text('Delivery Order'),
purchase_delivery_order => $main::locale->text('Delivery Order'),
dunning => $main::locale->text('Dunning'),
# $main::locale->text('invoice')
# $main::locale->text('proforma')
# $main::locale->text('sales_order')
-# $main::locale->text('packing_list')
# $main::locale->text('pick_list')
# $main::locale->text('purchase_order')
# $main::locale->text('bin_list')
my %formname_setup =
(
-# "balance_sheet" => { "translation" => $locale->text('Balance Sheet'), "html" => 1 },
- "bin_list" => $locale->text('Bin List'),
- "bwa" => { "translation" => $locale->text('BWA'), "html" => 1 },
- "check" => { "translation" => $locale->text('Check'), "html" => 1 },
- "credit_note" => $locale->text('Credit Note'),
- "income_statement" => { "translation" => $locale->text('Income Statement'), "html" => 1 },
- "invoice" => $locale->text('Invoice'),
- "packing_list" => $locale->text('Packing List'),
- "pick_list" => $locale->text('Pick List'),
- "proforma" => $locale->text('Proforma Invoice'),
- "purchase_order" => $locale->text('Purchase Order'),
- "receipt" => { "translation" => $locale->text('Receipt'), "tex" => 1 },
- "request_quotation" => $locale->text('RFQ'),
- "sales_order" => $locale->text('Confirmation'),
- "sales_quotation" => $locale->text('Quotation'),
- "statement" => $locale->text('Statement'),
- "storno_invoice" => $locale->text('Storno Invoice'),
- "storno_packing_list" => $locale->text('Storno Packing List'),
- "ustva-2004" => { "translation" => $locale->text("USTVA 2004"), "tex" => 1 },
- "ustva-2005" => { "translation" => $locale->text("USTVA 2005"), "tex" => 1 },
- "ustva-2006" => { "translation" => $locale->text("USTVA 2006"), "tex" => 1 },
- "ustva-2007" => { "translation" => $locale->text("USTVA 2007"), "tex" => 1 },
- "ustva" => $locale->text("USTVA"),
+ # balance_sheet => { translation => $locale->text('Balance Sheet'), html => 1 },
+ bin_list => $locale->text('Bin List'),
+ bwa => { translation => $locale->text('BWA'), html => 1 },
+ check => { translation => $locale->text('Check'), html => 1 },
+ credit_note => $locale->text('Credit Note'),
+ income_statement => { translation => $locale->text('Income Statement'), html => 1 },
+ invoice => $locale->text('Invoice'),
+ pick_list => $locale->text('Pick List'),
+ proforma => $locale->text('Proforma Invoice'),
+ purchase_delivery_order => { translation => $::locale->text('Purchase delivery order'), tex => 1 },
+ purchase_order => $locale->text('Purchase Order'),
+ receipt => { translation => $locale->text('Receipt'), tex => 1 },
+ request_quotation => $locale->text('RFQ'),
+ sales_delivery_order => { translation => $::locale->text('Sales delivery order'), tex => 1 },
+ sales_order => $locale->text('Confirmation'),
+ sales_quotation => $locale->text('Quotation'),
+ statement => $locale->text('Statement'),
+ storno_invoice => $locale->text('Storno Invoice'),
+ "ustva-2004" => { translation => $locale->text("USTVA 2004"), tex => 1 },
+ "ustva-2005" => { translation => $locale->text("USTVA 2005"), tex => 1 },
+ "ustva-2006" => { translation => $locale->text("USTVA 2006"), tex => 1 },
+ "ustva-2007" => { translation => $locale->text("USTVA 2007"), tex => 1 },
+ ustva => $locale->text("USTVA"),
);
my (@values, $file, $setup);
if ($form->{type} && $access_map{$form->{type}}) {
$main::auth->assert($access_map{$form->{type}});
- } elsif ($form->{type} eq 'packing_list') {
- $main::lxdebug->message(0, "1");
- if (!$main::auth->assert('sales_order_edit', 1)) {
- $main::lxdebug->message(0, "2");
- $main::auth->assert('invoice_edit') ;
- }
- $main::lxdebug->message(0, "3");
-
} else {
$main::auth->assert('DOES_NOT_EXIST');
}
assert_bp_access();
# $locale->text('Sales Invoices')
- # $locale->text('Packing Lists')
# $locale->text('Sales Orders')
# $locale->text('Purchase Orders')
# $locale->text('Quotations')
my %label = (
invoice =>
{ title => 'Sales Invoices', name => 'Customer', l_invnumber => 'Y' },
- packing_list =>
- { title => 'Packing Lists', name => 'Customer', l_invnumber => 'Y' },
sales_order =>
{ title => 'Sales Orders', name => 'Customer', l_ordnumber => 'Y' },
purchase_order =>
</tr>
|;
- $label{packing_list}{invnumber} = $label{invoice}{invnumber};
- $label{packing_list}{ordnumber} = $label{invoice}{ordnumber};
$label{sales_order}{ordnumber} = $label{invoice}{ordnumber};
$label{purchase_order}{ordnumber} = $label{invoice}{ordnumber};
$label{request_quotation}{quonumber} = $label{sales_quotation}{quonumber};
my $name = ucfirst $form->{vc};
my @columns = qw(transdate);
- if ($form->{type} =~ /(invoice|packing_list|check|receipt)/) {
- push @columns, "invnumber";
- }
if ($form->{type} =~ /_order$/) {
push @columns, "ordnumber";
}
) : undef,
($form->{type} eq 'invoice' && $form->{storno}) ? (
opthash("storno_invoice", $form->{PD}{storno_invoice}, $locale->text('Storno Invoice')),
- opthash("storno_packing_list", $form->{PD}{storno_packing_list}, $locale->text('Storno Packing List'))
) : undef,
($form->{type} =~ /_delivery_order$/) ? (
opthash($form->{type}, $form->{PD}{$form->{type}}, $locale->text('Delivery Order')),
if ($form->{formname} eq "invoice") {
$form->{label} = $locale->text('Invoice');
}
- if ($form->{formname} eq "packing_list") {
-
- # this is from an invoice
- $form->{label} = $locale->text('Packing List');
- }
if ($form->{formname} eq 'sales_order') {
$inv = "ord";
$due = "req";
$order = 1;
}
- if ($form->{formname} eq 'packing_list' && $form->{type} ne 'invoice') {
-
- # we use the same packing list as from an invoice
- $inv = "ord";
- $due = "req";
- $form->{invdate} = $form->{"${inv}date"} = $form->{transdate};
- $form->{label} = $locale->text('Packing List');
- $order = 1;
- # set invnumber for template packing_list
- $form->{invnumber} = $form->{ordnumber};
- }
if ($form->{formname} eq 'purchase_order') {
$inv = "ord";
$due = "req";
# $locale->text('Invoice Number missing!')
# $locale->text('Invoice Date missing!')
- # $locale->text('Packing List Number missing!')
- # $locale->text('Packing List Date missing!')
# $locale->text('Order Number missing!')
# $locale->text('Order Date missing!')
# $locale->text('Quotation Number missing!')
'POSTED' => 'Gebucht',
'POSTED AS NEW' => 'Als neu gebucht',
'PRINTED' => 'Gedruckt',
- 'Packing List' => 'Packliste',
- 'Packing List Date missing!' => 'Datum für Packliste fehlt!',
- 'Packing List Number missing!' => 'Packlistennummer fehlt!',
'Packing Lists' => 'Lieferschein',
'Page #1/#2' => 'Seite #1/#2',
'Paid' => 'bezahlt',
'Storno' => 'Storno',
'Storno (one letter abbreviation)' => 'S',
'Storno Invoice' => 'Stornorechnung',
- 'Storno Packing List' => 'Stornolieferschein',
'Street' => 'Straße',
'Stylesheet' => 'Stilvorlage',
'Subject' => 'Betreff',
'open' => 'Offen',
'order' => 'Reihenfolge',
'our vendor number at customer' => 'Unsere Lieferanten-Nr. beim Kunden',
- 'packing_list' => 'Versandliste',
'part_list' => 'warenliste',
- 'pick_list' => 'Entnahmeliste',
+ 'pick_list' => 'Sammelliste',
'plural first char' => 'P',
'pos_bilanz' => 'Bilanz',
'pos_bwa' => 'BWA',