Index: openacs-4/packages/invoices/invoices.info =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/invoices.info,v diff -u -r1.29 -r1.30 --- openacs-4/packages/invoices/invoices.info 4 Aug 2006 15:43:42 -0000 1.29 +++ openacs-4/packages/invoices/invoices.info 10 Aug 2006 07:34:59 -0000 1.30 @@ -7,15 +7,15 @@ f t - + Timo Hentschel Invoices package that will collect costs to invoice items in invoices and store data about received payment. 2005-11-15 Cognovis Collect costs to invoice items and invoices, store payment information. 0 - + Index: openacs-4/packages/invoices/catalog/invoices.de_DE.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/catalog/invoices.de_DE.ISO-8859-1.xml,v diff -u -r1.41 -r1.42 --- openacs-4/packages/invoices/catalog/invoices.de_DE.ISO-8859-1.xml 4 Aug 2006 15:38:49 -0000 1.41 +++ openacs-4/packages/invoices/catalog/invoices.de_DE.ISO-8859-1.xml 10 Aug 2006 07:34:59 -0000 1.42 @@ -1,5 +1,5 @@ - + Auftragsbest�tigungen Akzeptiert am @@ -144,6 +144,7 @@ <html><body><h3>Stornorechnung</h3>%data.contact_salutation%,<p>anbei finden Sie die Stornorechnung %data.invoice_nr%.<p>Mit freundlichen Gr&uuml;&szlig;en<br>WIENERS + WIENERS GmbH<br></html></body> Stornorechnung # %invoice_nr% Storno durch + Storniert Storno f�r beendet am Kundenkontakt @@ -154,13 +155,15 @@ erstellt am Datum an dem die Rechnung angelegt wurde erstellt von + Ersteller der Rechnung Gutschrift Gutschrift erstellen <html><body><h3>Gutschrift</h3>%data.contact_salutation%,<p>anbei finden Sie die Rechnungsgutschrift %data.invoice_nr%.<p>Mit freundlichen Gr&uuml;&szlig;en<br>WIENERS + WIENERS GmbH<br></html></body> Gutschrift # %invoice_nr% Neue Gutschrift Neue Gutschrift erstellen W�hrung + W�hrung der Rechnung Rechnung l�schen Beschreibung Beschreibung auf der Rechnung @@ -254,7 +257,7 @@ Auftragsdatum Datum der Annahme <html><body>%data.contact_salutation%, <p>vielen Dank f�r Ihren Auftrag!<p> -Die Details entnehmen Sie bitte der angeh�ngten PDF-Datei.<p>Mit freundlichen Gr&uuml;&szlig;en<p>%am_name;noquote%<br>Kundenberatung<br/> +Die Details entnehmen Sie bitte der angeh�ngten PDF-Datei.<p>Viele Gr&uuml;&szlig;e<p>%am_name;noquote%<br>Kundenberatung<br/> Durchwahl: %am_directphoneno%<br><b>WIENERS+WIENERS GmbH</b></body></html> Auftragsbest�tigung # %offer_nr% Vielen Dank f�r die Annahme unseres Angebots. Wir werden Sie so schnell wie m�glich diesbez�glich kontaktieren. @@ -286,14 +289,15 @@ Beschreibung der Kostenaufstellung Projektaufstellung �ndern Sie d�rfen keine akzeptierte oder berechnete Kostenaufstellung �ndern. - <html><body>%data.contact_salutation%,<p>anbei erhalten Sie das gew�nschte Angebot als PDF-Datei.<p>Wenn Sie das Angebot akzeptieren und den Auftrag erteilen m�chten, klicken Sie bitte <a href="%accept_link%">hier</a>.<p>Mit freundlichen Gr&uuml;&szlig;en<p>%am_name;noquote%<br>Kundenberatung<br/> + <html><body>%data.contact_salutation%,<p>anbei erhalten Sie das gew�nschte Angebot als PDF-Datei.<p>Wenn Sie das Angebot akzeptieren und den Auftrag erteilen m�chten, klicken Sie bitte <a href="%accept_link;noquote%">hier</a>.<p>Sollte der Link nicht funktionieren, klicken Sie auf folgende URL:<br>%accept_link;noquote%<p>Oder kopieren Sie diese URL in Ihren Browser.<p>Viele Gr&uuml;&szlig;e<p>%am_name;noquote%<br>Kundenberatung<br/> Durchwahl: %am_directphoneno%<br><b>WIENERS+WIENERS GmbH</b></body></html> Angebot # %offer_nr% Datei anh�ngen Dateien l�schen Zum L�schen von Dateien die entsprechende Checkbox markieren. Dateien zur internen Verwendung - diese werden nicht mit dem Angebot verschickt! Dateien + Angebotsdatei ansehen Lieferdatum Abgabetermin, zu dem das Projekt an den Kunden ausgeliefert werden muss Timing Uhrzeit @@ -412,6 +416,8 @@ Rechnungs Report Letztes Jahr Anwendungen verlinken + In der URL ist leider die Angebotsnummer nicht enthalten. M�glicherweise hat Ihr E-Mail-Programm beim Anklicken des Links nicht die gesamte URL �bergeben - einige E-Mail-Programme umbrechen die URLs, dann geht beim Klick auf den Link die zweite Zeile verloren. In diesem Fall bitte den zweiten Teil der URL einfach kopieren und im Browser an den ersten Teil anh�ngen. Vielen Dank! + Leider konnten wir keine Organisation als Rechnungsempf�nger finden. Bitte stellen Sie sicher, das der Rechnungsempf�nger als Angestellter einer Firma im System hinterlegt ist (�ber eine employment_relationship) Leider k�nnen wir die von Ihnen angeforderte Rechnungsnummer nicht in unserem System finden. Bitte �berpr�fen Sie ob die Nummer richtig ist. Verbunden Die Stapelverarbeitung der Rechungen ist abschlossen. <p> %failed_projects_html% @@ -425,6 +431,7 @@ Neu Neue Kunden Nein + Keine Organisation f�r die Rechnung gefunden. Unbekannte Rechnungsnummer Keine Anzahl Stunden Index: openacs-4/packages/invoices/catalog/invoices.en_US.ISO-8859-1.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/catalog/invoices.en_US.ISO-8859-1.xml,v diff -u -r1.43 -r1.44 --- openacs-4/packages/invoices/catalog/invoices.en_US.ISO-8859-1.xml 4 Aug 2006 15:38:49 -0000 1.43 +++ openacs-4/packages/invoices/catalog/invoices.en_US.ISO-8859-1.xml 10 Aug 2006 07:34:59 -0000 1.44 @@ -1,5 +1,5 @@ - + Order confirmation Accepted on @@ -144,6 +144,7 @@ <html><body><h3>Cancellation</h3>%data.contact_salutation%,<p>see attached invoice cancellation %data.invoice_nr%.<p>Best wishes,<br>WIENERS + WIENERS GmbH<br></html></body> Cancellation # %invoice_nr% Canceled by + Cancelled Cancelled invoice Finished on Invoice Contact @@ -154,13 +155,15 @@ Created on Date the invoice was created Created by + Creation user of the invoice Credit Add invoice credit <html><body><h3>Credit</h3>%data.contact_salutation%,<p>see attached invoice credit %data.invoice_nr%.<p>Best wishes,<br>WIENERS + WIENERS GmbH<br></html></body> Credit # %invoice_nr% New Credit Create New Credit Currency + Currency of the invoice Delete Invoice Description Description on the invoice @@ -284,13 +287,14 @@ Description of the cost sheet Edit Cost Sheet You are not allowed to edit an accepted or invoiced cost sheet - <html><body>%data.contact_salutation%,<p>Please find attached the requested quote as a PDF file. If you would like to accept the quote and place the assignment with us, please click <a href="%accept_link;noquote%">here</a>.<p>Yours sincerely,<p>%am_name;noquote%<br>Customer services<br>%am_directphoneno_int;noquote%</html></body> + <html><body>%data.contact_salutation%,<p>Please find attached the requested quote as a PDF file. If you would like to accept the quote and place the assignment with us, please click <a href="%accept_link;noquote%">here</a>.<p>If the link doesn't work, try clicking on the following URL:<br>%accept_link;noquote%<p>Alternatively, copy the URL onto your browser.<p>Yours sincerely,<p>%am_name;noquote%<br>Customer services<br>%am_directphoneno_int;noquote%</html></body> Offer # %offer_nr% File upload Delete Files Zum L�schen von Dateien die entsprechende Checkbox markieren. File Help Files + offer file view Finish on Deadline until which the project has to be delivered to the client Finish time @@ -409,6 +413,8 @@ Invoice Reports Last Years Link package instances + Sorry, the offer_id cannot be found on the URL. It is possible that when you left clicked, your email program did not transfer the whole URL - some email programs break up the URLs, which means the second part is lost when you left click. If this is the case, please just copy the second part of the URL and attach it to the first part in the browser. Thank you! + Sadly we were not able to find an organization where to send the invoice to. Please make sure that the invoice recipient is working at an organization and has an employment_relationship. We are sorry but the invoice number you are searching for does not exist in our system. Mapped The mass generation of invoices is finished.<p> %failed_projects_html% @@ -422,6 +428,7 @@ New New Clients No + No organization for invoice found No such invoice number None Number of units Index: openacs-4/packages/invoices/www/invoice-ae.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/invoices/www/invoice-ae.tcl,v diff -u -r1.35 -r1.36 --- openacs-4/packages/invoices/www/invoice-ae.tcl 4 Aug 2006 15:36:38 -0000 1.35 +++ openacs-4/packages/invoices/www/invoice-ae.tcl 10 Aug 2006 07:34:59 -0000 1.36 @@ -526,11 +526,15 @@ # Get the VAT percent from the recieving company if {[person::person_p -party_id $recipient_id]} { - set rec_organization_id [contact::util::get_employee_organization -employee_id $recipient_id] + set contacts_package_id [lindex [application_link::get_linked -from_package_id $package_id -to_package_key contacts] 0] + set rec_organization_id [contact::util::get_employee_organization -employee_id $recipient_id -package_id $contacts_package_id] } else { set rec_organization_id $recipient_id } + if {$rec_organization_id eq ""} { + ad_return_error "[_ invoices.no_organization_for_invoice]" "[_ invoices.lt_no_org_for_invoice]" + } set rec_orga_rev_id [content::item::get_best_revision -item_id $rec_organization_id] set vat_percent [ams::value -object_id $rec_orga_rev_id -attribute_name vat_percent]