From: Moritz Bunkus Date: Thu, 1 Mar 2007 13:19:44 +0000 (+0000) Subject: Diese Datei wird gar nicht benutzt. Gutschriften werden über is.pl abgewickelt. X-Git-Tag: release-2.4.3^2~641 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=9fd46de37d7906b7c104c17112b34bae7d534d67;p=kivitendo-erp.git Diese Datei wird gar nicht benutzt. Gutschriften werden über is.pl abgewickelt. --- diff --git a/bin/mozilla/cn.pl b/bin/mozilla/cn.pl deleted file mode 100644 index 69eede0e3..000000000 --- a/bin/mozilla/cn.pl +++ /dev/null @@ -1,1218 +0,0 @@ -#===================================================================== -# LX-Office ERP -# Copyright (C) 2004 -# Based on SQL-Ledger Version 2.1.9 -# Web http://www.lx-office.org -# -#===================================================================== -# SQL-Ledger Accounting -# Copyright (c) 1998-2002 -# -# Author: Dieter Simader -# Email: dsimader@sql-ledger.org -# Web: http://www.sql-ledger.org -# -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -#====================================================================== -# -# Inventory invoicing module -# -#====================================================================== - -use SL::IS; -use SL::PE; -use Data::Dumper; - -require "$form->{path}/io.pl"; -require "$form->{path}/arap.pl"; - -1; - -# end of main - -sub add { - $lxdebug->enter_sub(); - - $form->{title} = $locale->text('Add Credit Note'); - - $form->{callback} = - "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&path=$form->{path}&password=$form->{password}" - unless $form->{callback}; - - $form{jsscript} = "date"; - - - &credit_note_links; - &prepare_credit_note; - $form->{format} = "pdf"; - - &display_form; - - $lxdebug->leave_sub(); -} - -sub edit { - $lxdebug->enter_sub(); - - $form->{title} = $locale->text('Edit Credit Note'); - - - if ($form->{print_and_post}) { - $form->{action} = "print"; - $form->{resubmit} = 1; - } - &credit_note_links; - &prepare_credit_note; - &display_form; - - $lxdebug->leave_sub(); -} - -sub credit_note_links { - $lxdebug->enter_sub(); - - $form->{vc} = 'customer'; - - # create links - $form->{webdav} = $webdav; - $form->{lizenzen} = $lizenzen; - - $form->create_links("AR", \%myconfig, "customer"); - - if ($form->{all_customer}) { - unless ($form->{customer_id}) { - $form->{customer_id} = $form->{all_customer}->[0]->{id}; - } - } - - if ($form->{payment_id}) { - $payment_id = $form->{payment_id}; - } - if ($form->{language_id}) { - $language_id = $form->{language_id}; - } - - $cp_id = $form->{cp_id}; - IS->get_customer(\%myconfig, \%$form); - - IS->retrieve_invoice(\%myconfig, \%$form); - $form->{cp_id} = $cp_id; - - if ($payment_id) { - $form->{payment_id} = $payment_id; - } - if ($language_id) { - $form->{language_id} = $language_id; - } - - # currencies - @curr = split /:/, $form->{currencies}; - chomp $curr[0]; - $form->{defaultcurrency} = $curr[0]; - - map { $form->{selectcurrency} .= "|; - foreach $item (@{ $form->{payment_terms} }) { - if ($form->{payment_id} eq $item->{id}) { - $payment .= qq||; - } else { - $payment .= qq||; - } - } - - # set option selected - foreach $item (qw(AR customer currency department employee contact)) { - $form->{"select$item"} =~ s/ selected//; - $form->{"select$item"} =~ - s/option>\Q$form->{$item}\E/option selected>$form->{$item}/; - } - - #build contacts - if ($form->{all_contacts}) { - - $form->{selectcontact} = ""; - foreach $item (@{ $form->{all_contacts} }) { - if ($form->{cp_id} == $item->{cp_id}) { - $form->{selectcontact} .= - "|; - foreach $item (@{ $form->{LIZENZEN}{ $form->{"id_$i"} } }) { - $form->{"lizenzen_$i"} .= - qq||; - } - $form->{"lizenzen_$i"} .= - qq||; - } - } - - # get pricegroups for parts - IS->get_pricegroups_for_parts(\%myconfig, \%$form); - - # build up html code for prices_$i - &set_pricegroup($i); - } - - &display_form; - - } else { - - # ok, so this is a new part - # ask if it is a part or service item - - if ( $form->{"partsgroup_$i"} - && ($form->{"partsnumber_$i"} eq "") - && ($form->{"description_$i"} eq "")) { - $form->{rowcount}--; - $form->{"discount_$i"} = ""; - &display_form; - } else { - - $form->{"id_$i"} = 0; - $form->{"unit_$i"} = $locale->text('ea'); - - &new_item; - - } - } - } - $lxdebug->leave_sub(); -} - -sub post { - $lxdebug->enter_sub(); - $form->isblank("invdate", $locale->text('Invoice Date missing!')); - $form->isblank("customer", $locale->text('Customer missing!')); - - # if oldcustomer ne customer redo form - if (&check_name(customer)) { - &update; - exit; - } - if ($form->{second_run}) { - $form->{print_and_post} = 0; - } - - &validate_items; - - $closedto = $form->datetonum($form->{closedto}, \%myconfig); - $invdate = $form->datetonum($form->{invdate}, \%myconfig); - - $form->error($locale->text('Cannot post invoice for a closed period!')) - if ($invdate <= $closedto); - - $form->isblank("exchangerate", $locale->text('Exchangerate missing!')) - if ($form->{currency} ne $form->{defaultcurrency}); - - for $i (1 .. $form->{paidaccounts}) { - if ($form->{"paid_$i"}) { - $datepaid = $form->datetonum($form->{"datepaid_$i"}, \%myconfig); - - $form->isblank("datepaid_$i", $locale->text('Payment date missing!')); - - $form->error($locale->text('Cannot post payment for a closed period!')) - if ($datepaid <= $closedto); - - if ($form->{currency} ne $form->{defaultcurrency}) { - $form->{"exchangerate_$i"} = $form->{exchangerate} - if ($invdate == $datepaid); - $form->isblank("exchangerate_$i", - $locale->text('Exchangerate for payment missing!')); - } - } - } - - ($form->{AR}) = split /--/, $form->{AR}; - ($form->{AR_paid}) = split /--/, $form->{AR_paid}; - - $form->{label} = $locale->text('Invoice'); - - $form->{id} = 0 if $form->{postasnew}; - - # get new invnumber in sequence if no invnumber is given or if posasnew was requested - if (!$form->{invnumber} || $form->{postasnew}) { - $form->{invnumber} = $form->update_defaults(\%myconfig, "invnumber"); - } - if ($print_post) { - if (!(IS->post_invoice(\%myconfig, \%$form))) { - $form->error($locale->text('Cannot post invoice!')); - } - } else { - $form->redirect( - $form->{label} . " $form->{invnumber} " . $locale->text('posted!')) - if (IS->post_invoice(\%myconfig, \%$form)); - $form->error($locale->text('Cannot post invoice!')); - } - - $lxdebug->leave_sub(); -} - -sub print_and_post { - $lxdebug->enter_sub(); - - $old_form = new Form; - $print_post = 1; - $form->{print_and_post} = 1; - &post(); - - &edit(); - $lxdebug->leave_sub(); - -} - -sub preview { - $lxdebug->enter_sub(); - - $form->{preview} = 1; - $old_form = new Form; - for (keys %$form) { $old_form->{$_} = $form->{$_} } - $old_form->{rowcount}++; - - &print_form($old_form); - $lxdebug->leave_sub(); - -} - -sub delete { - $lxdebug->enter_sub(); - if ($form->{second_run}) { - $form->{print_and_post} = 0; - } - $form->header; - - print qq| - - -
{script}> -|; - - # delete action variable - map { delete $form->{$_} } qw(action header); - - foreach $key (keys %$form) { - $form->{$key} =~ s/\"/"/g; - print qq|\n|; - } - - print qq| -

| . $locale->text('Confirm!') . qq|

- -

| - . $locale->text('Are you sure you want to delete Invoice Number') - . qq| $form->{invnumber} -

- -

- -

-|; - - $lxdebug->leave_sub(); -} - -sub yes { - $lxdebug->enter_sub(); - - $form->redirect($locale->text('Invoice deleted!')) - if (IS->delete_invoice(\%myconfig, \%$form, $spool)); - $form->error($locale->text('Cannot delete invoice!')); - - $lxdebug->leave_sub(); -} diff --git a/cn.pl b/cn.pl deleted file mode 120000 index 385000d1b..000000000 --- a/cn.pl +++ /dev/null @@ -1 +0,0 @@ -am.pl \ No newline at end of file diff --git a/locale/de/cn b/locale/de/cn deleted file mode 100644 index 1dcff6315..000000000 --- a/locale/de/cn +++ /dev/null @@ -1,315 +0,0 @@ -$self->{texts} = { - ' Date missing!' => ' Datum fehlt!', - '*/' => '*/', - 'ADDED' => 'Hinzugefügt', - 'Account' => 'Konto', - 'Add Credit Note' => 'Gutschrift erfassen', - 'Add Purchase Order' => 'Lieferantenauftrag erfassen', - 'Add Quotation' => 'Angebot erfassen', - 'Add Request for Quotation' => 'Anfrage erfassen', - 'Add Sales Order' => 'Auftrag erfassen', - 'Address' => 'Adresse', - 'Amount' => 'Betrag', - 'Apr' => 'Apr', - 'April' => 'April', - 'Are you sure you want to delete Invoice Number' => 'Soll die Rechnung mit folgender Nummer wirklich gelöscht werden:', - 'Attachment' => 'als Anhang', - 'Attachment name' => 'Name des Anhangs', - 'Aug' => 'Aug', - 'August' => 'August', - 'Bcc' => 'Bcc', - 'Billing Address' => 'Rechnungsadresse', - 'Bin' => 'Lagerplatz', - 'Bin List' => 'Lagerliste', - 'Business' => 'Firma', - 'Cannot delete invoice!' => 'Rechnung kann nicht gelöscht werden!', - 'Cannot post invoice for a closed period!' => 'Das Rechnungsdatum fällt in einen abgeschlossen Zeitraum!', - 'Cannot post invoice!' => 'Rechnung kann nicht gebucht werden!', - 'Cannot post payment for a closed period!' => 'Es können keine Zahlungen für abgeschlossene Bücher gebucht werden!', - 'Cc' => 'Cc', - 'Choose Customer' => 'Endkunde wählen:', - 'Choose Vendor' => 'Händler wählen', - 'City' => 'Stadt', - 'Company Name' => 'Firmenname', - 'Confirm!' => 'Bestätigen Sie!', - 'Confirmation' => 'Auftragsbestätigung', - 'Contact' => 'Kontakt', - 'Contact Person' => 'Ansprechpartner', - 'Continue' => 'Weiter', - 'Copies' => 'Kopien', - 'Country' => 'Land', - 'Credit Limit' => 'Kreditlimit', - 'Credit Note' => 'Gutschrift', - 'Credit Note Date' => 'Gutschriftdatum', - 'Credit Note Number' => 'Gutschriftnummer', - 'Currency' => 'Währung', - 'Customer' => 'Kunde', - 'Customer Number' => 'Kundennummer', - 'Customer Order Number' => 'Bestellnummer des Kunden', - 'Customer missing!' => 'Kundenname fehlt!', - 'Customer not on file!' => 'Kunde ist nicht in der Datenbank!', - 'DELETED' => 'Gelöscht', - 'DUNNING STARTED' => 'DUNNING STARTED', - 'Date' => 'Datum', - 'Dec' => 'Dez', - 'December' => 'Dezember', - 'Delete' => 'Löschen', - 'Delivery Date' => 'Lieferdatum', - 'Department' => 'Abteilung', - 'Description' => 'Beschreibung', - 'Discount' => 'Rabatt', - 'Due Date' => 'Fälligkeitsdatum', - 'E-mail' => 'eMail', - 'E-mail address missing!' => 'E-Mail-Adresse fehlt!', - 'E-mailed' => 'eMail gesendet.', - 'ELSE' => 'Zusatz', - 'Edit Credit Note' => 'Gutschrift bearbeiten', - 'Enter longdescription' => 'Langtext eingeben', - 'Exch' => 'Wechselkurs.', - 'Exchangerate' => 'Wechselkurs', - 'Exchangerate for payment missing!' => 'Es fehlt der Wechselkurs für die Bezahlung!', - 'Exchangerate missing!' => 'Es fehlt der Wechselkurs!', - 'Extended' => 'Gesamt', - 'Fax' => 'Fax', - 'Feb' => 'Feb', - 'February' => 'Februar', - 'Group' => 'Warengruppe', - 'Group Items' => 'Waren gruppieren', - 'History' => 'Historie', - 'In-line' => 'im Text', - 'Incoming Payments' => 'Zahlungseingänge', - 'Internal Notes' => 'interne Bemerkungen', - 'Invoice' => 'Rechnung', - 'Invoice Date missing!' => 'Rechnungsdatum fehlt!', - 'Invoice Number missing!' => 'Rechnungsnummer fehlt!', - 'Invoice deleted!' => 'Rechnung gelöscht!', - 'Item not on file!' => 'Dieser Artikel ist nicht in der Datenbank!', - 'Jan' => 'Jan', - 'January' => 'Januar', - 'Jul' => 'Jul', - 'July' => 'Juli', - 'Jun' => 'Jun', - 'June' => 'Juni', - 'L' => 'L', - 'License' => 'Lizenz', - 'MAILED' => 'Gesendet', - 'Mar' => 'März', - 'March' => 'März', - 'May' => 'Mai', - 'May ' => 'Mai', - 'Memo' => 'Memo', - 'Message' => 'Nachricht', - 'Name' => 'Name', - 'No Customer was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Endkunde gefunden', - 'No Vendor was found matching the search parameters.' => 'Zu dem Suchbegriff wurde kein Händler gefunden', - 'No employee was found matching the search parameters.' => 'Es wurde kein Angestellter gefunden, auf den die Suchparameter zutreffen.', - 'No part was found matching the search parameters.' => 'Es wurde kein Artikel gefunden, auf den die Suchparameter zutreffen.', - 'No project was found matching the search parameters.' => 'Es wurde kein Projekt gefunden, auf das die Suchparameter zutreffen.', - 'No.' => 'Position', - 'Notes' => 'Bemerkungen', - 'Nov' => 'Nov', - 'November' => 'November', - 'Number' => 'Nummer', - 'Number missing in Row' => 'Nummer fehlt in Zeile', - 'Oct' => 'Okt', - 'October' => 'Oktober', - 'OpenDocument/OASIS' => 'OpenDocument/OASIS', - 'Order' => 'Auftrag', - 'Order Date missing!' => 'Auftragsdatum fehlt!', - 'Order Number' => 'Auftragsnummer', - 'Order Number missing!' => 'Auftragsnummer fehlt!', - 'PAYMENT POSTED' => 'Rechung gebucht', - 'PDF' => 'PDF', - 'PDF (OpenDocument/OASIS)' => 'PDF (OpenDocument/OASIS)', - 'POSTED' => 'Gebucht', - 'POSTED AS NEW' => 'Als neu gebucht', - 'PRINTED' => 'Gedruckt', - 'Packing List' => 'Lieferschein', - 'Packing List Date missing!' => 'Datum für Verpackungsliste fehlt!', - 'Packing List Number missing!' => 'Verpackungslistennummer fehlt!', - 'Part' => 'Ware', - 'Part Description' => 'Artikelbeschreibung', - 'Part Number' => 'Artikelnummer', - 'Part description' => 'Artikelbeschreibung', - 'Payment Terms' => 'Zahlungskonditionen', - 'Payment date missing!' => 'Tag der Zahlung fehlt!', - 'Phone' => 'Telefon', - 'Pick List' => 'Sammelliste', - 'Please enter values' => 'Bitte Werte eingeben', - 'Post' => 'Buchen', - 'Post as new' => 'Neu buchen', - 'Postscript' => 'Postscript', - 'Preview' => 'Druckvorschau', - 'Price' => 'Preis', - 'Pricegroup' => 'Preisgruppe', - 'Print' => 'Drucken', - 'Print and Post' => 'Drucken und Buchen', - 'Printed' => 'gedruckt.', - 'Printer' => 'Drucker', - 'Proforma Invoice' => 'Proformarechnung', - 'Project' => 'Projekt', - 'Project Number' => 'Projektnummer', - 'Project description' => 'Projektbeschreibung', - 'Project not on file!' => 'Dieses Projekt ist nicht in der Datenbank!', - 'Purchase Order' => 'Lieferantenauftrag', - 'Qty' => 'Menge', - 'Queue' => 'Warteschlange', - 'Queued' => 'In Warteschlange eingereiht.', - 'Quotation' => 'Angebot', - 'Quotation Date missing!' => 'Angebotsdatum fehlt!', - 'Quotation Number' => 'Angebotsnummer', - 'Quotation Number missing!' => 'Angebotsnummer fehlt!', - 'RFQ' => 'Anfrage', - 'Record in' => 'Buchen auf', - 'Remaining' => 'Rest', - 'Remove Draft' => 'Entwurf löschen', - 'Reqdate' => 'Lieferdatum', - 'Required by' => 'Lieferdatum', - 'SAVED' => 'Gespeichert', - 'SAVED FOR DUNNING' => 'Gespeichert', - 'SCREENED' => 'Angezeigt', - 'Sales Order' => 'Kundenauftrag', - 'Salesperson' => 'Verkäufer', - 'Screen' => 'Bildschirm', - 'Select a Customer' => 'Endkunde auswählen', - 'Select a part' => 'Artikel auswählen', - 'Select a project' => 'Projekt auswählen', - 'Select an employee' => 'Angestellten auswählen', - 'Select from one of the items below' => 'Wählen Sie einen der untenstehenden Einträge', - 'Select from one of the names below' => 'Wählen Sie einen der untenstehenden Namen', - 'Select from one of the projects below' => 'Wählen Sie eines der untenstehenden Projekte', - 'Select postscript or PDF!' => 'Postscript oder PDF auswählen!', - 'Sep' => 'Sep', - 'September' => 'September', - 'Serial No.' => 'Seriennummer', - 'Service' => 'Dienstleistung', - 'Ship' => 'Lagerausgang', - 'Ship rcvd' => 'Lagereingang', - 'Ship to' => 'Lieferadresse', - 'Ship via' => 'Transportmittel', - 'Shipping Address' => 'Lieferadresse', - 'Shipping Point' => 'Versandort', - 'Show details' => 'Details anzeigen', - 'Source' => 'Beleg', - 'Storno Invoice' => 'Stornorechnung', - 'Storno Packing List' => 'Stornolieferschein', - 'Street' => 'Straße', - 'Subject' => 'Betreff', - 'Subtotal' => 'Zwischensumme', - 'Tax Included' => 'Steuer im Preis inbegriffen', - 'To' => 'An', - 'Total' => 'Summe', - 'Trade Discount' => 'Rabatt', - 'Unit' => 'Einheit', - 'Update' => 'Erneuern', - 'Value' => 'Wert', - 'Variable' => 'Variable', - 'Vendor Number' => 'Lieferantennummer', - 'Vendor not on file!' => 'Lieferant ist nicht in der Datenbank!', - 'What type of item is this?' => 'Was ist dieser Artikel?', - 'Yes' => 'Ja', - 'Zipcode' => 'PLZ', - 'bin_list' => 'Lagerliste', - 'button' => '?', - 'ea' => 'St.', - 'emailed to' => 'gemailt an', - 'invoice' => 'Rechnung', - 'none (pricegroup)' => 'keine', - 'packing_list' => 'Versandliste', - 'pick_list' => 'Entnahmeliste', - 'posted!' => 'gebucht', - 'proforma' => 'Proforma', - 'purchase_order' => 'Auftrag', - 'request_quotation' => 'Angebotsanforderung', - 'sales_order' => 'Kundenauftrag', - 'sales_quotation' => 'Verkaufsangebot', - 'sent' => 'gesendet', - 'sent to printer' => 'an Drucker geschickt', -}; - -$self->{subs} = { - 'E' => 'E', - 'H' => 'H', - 'NTI' => 'NTI', - 'Q' => 'Q', - 'add' => 'add', - 'add_transaction' => 'add_transaction', - 'ap_transaction' => 'ap_transaction', - 'ar_transaction' => 'ar_transaction', - 'build_std_url' => 'build_std_url', - 'calculate_qty' => 'calculate_qty', - 'check_form' => 'check_form', - 'check_name' => 'check_name', - 'check_project' => 'check_project', - 'continue' => 'continue', - 'credit_note_links' => 'credit_note_links', - 'customer_details' => 'customer_details', - 'delete' => 'delete', - 'delivery_customer_selection' => 'delivery_customer_selection', - 'display_form' => 'display_form', - 'display_row' => 'display_row', - 'e_mail' => 'e_mail', - 'edit' => 'edit', - 'employee_selection_internal' => 'employee_selection_internal', - 'form_footer' => 'form_footer', - 'form_header' => 'form_header', - 'format_dates' => 'format_dates', - 'gl_transaction' => 'gl_transaction', - 'invoicetotal' => 'invoicetotal', - 'item_selected' => 'item_selected', - 'name_selected' => 'name_selected', - 'new_item' => 'new_item', - 'new_license' => 'new_license', - 'order' => 'order', - 'part_selection_internal' => 'part_selection_internal', - 'post' => 'post', - 'post_as_new' => 'post_as_new', - 'prepare_credit_note' => 'prepare_credit_note', - 'preview' => 'preview', - 'print' => 'print', - 'print_and_post' => 'print_and_post', - 'print_form' => 'print_form', - 'print_options' => 'print_options', - 'project_selected' => 'project_selected', - 'project_selection_internal' => 'project_selection_internal', - 'quotation' => 'quotation', - 'reformat_numbers' => 'reformat_numbers', - 'relink_accounts' => 'relink_accounts', - 'request_for_quotation' => 'request_for_quotation', - 'restore_form' => 'restore_form', - 'sales_invoice' => 'sales_invoice', - 'save_form' => 'save_form', - 'select_employee' => 'select_employee', - 'select_employee_internal' => 'select_employee_internal', - 'select_item' => 'select_item', - 'select_name' => 'select_name', - 'select_part' => 'select_part', - 'select_part_internal' => 'select_part_internal', - 'select_project' => 'select_project', - 'send_email' => 'send_email', - 'set_duedate' => 'set_duedate', - 'set_longdescription' => 'set_longdescription', - 'set_pricegroup' => 'set_pricegroup', - 'ship_to' => 'ship_to', - 'show_history' => 'show_history', - 'update' => 'update', - 'validate_items' => 'validate_items', - 'vendor_details' => 'vendor_details', - 'vendor_invoice' => 'vendor_invoice', - 'vendor_selection' => 'vendor_selection', - 'yes' => 'yes', - 'weiter' => 'continue', - 'löschen' => 'delete', - 'email' => 'e_mail', - 'auftrag' => 'order', - 'buchen' => 'post', - 'neu_buchen' => 'post_as_new', - 'druckvorschau' => 'preview', - 'drucken' => 'print', - 'drucken_und_buchen' => 'print_and_post', - 'lieferadresse' => 'ship_to', - 'erneuern' => 'update', - 'ja' => 'yes', -}; - -1;