[OFBiz] SVN: r6457 - in trunk/specialized/opentravelsystem: . script/org/ofbiz/opentravelsystem webapp/hotelbackend webapp/hotelbackend/html webapp/hotelbackend/html/images

hansbak@svn.ofbiz.org hansbak at svn.ofbiz.org
Sun Jan 1 21:40:44 CST 2006


Author: hansbak
Date: 2006-01-01 21:40:20 -0600 (Sun, 01 Jan 2006)
New Revision: 6457

Added:
   trunk/specialized/opentravelsystem/script/org/ofbiz/opentravelsystem/PaymentServices.xml
   trunk/specialized/opentravelsystem/webapp/hotelbackend/html/
   trunk/specialized/opentravelsystem/webapp/hotelbackend/html/images/
   trunk/specialized/opentravelsystem/webapp/hotelbackend/html/images/system.jpg
Modified:
   trunk/specialized/opentravelsystem/README.odt
Log:
OTS: forgot some files to add

Modified: trunk/specialized/opentravelsystem/README.odt
===================================================================
(Binary files differ)

Added: trunk/specialized/opentravelsystem/script/org/ofbiz/opentravelsystem/PaymentServices.xml
===================================================================
--- trunk/specialized/opentravelsystem/script/org/ofbiz/opentravelsystem/PaymentServices.xml	2006-01-02 02:43:20 UTC (rev 6456)
+++ trunk/specialized/opentravelsystem/script/org/ofbiz/opentravelsystem/PaymentServices.xml	2006-01-02 03:40:20 UTC (rev 6457)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!--
+ * Copyright (c) 2001-2005 The Open For Business Project and repective authors.
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ *  copy of this software and associated documentation files (the "Software"),
+ *  to deal in the Software without restriction, including without limitation
+ *  the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ *  and/or sell copies of the Software, and to permit persons to whom the
+ *  Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included
+ *  in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
+ *  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+ *  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ *  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
+ *  OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
+ *  THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * @author <a href="mailto:support at opentravelsystem.org">Hans Bakker</a>
+ * @version 1.0
+ -->
+
+<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+        xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd">
+
+    <!-- ================================================================ -->
+    <!-- Opentravelsystem Party Services -->
+    <!-- ================================================================ -->
+    
+    <simple-method method-name="createPayment" short-description="--Add a payment with the invoice prefix--">
+        <check-permission permission="OPENTRAVELSYSTEM" action="_RW">
+            <alt-permission permission="${parameters.userLogin.partyId}" action="_RW"/>
+            <fail-message message="Security Error: to update you need RW access to &quot;${parameters.partyId}&quot; in the &quot;OPENTRAVELSYSTEM&quot;"/>
+        </check-permission>        
+        <check-errors/>
+        
+        <!-- create id using the invoice prefix -->
+        <entity-one entity-name="PartyAcctgPreference" value-name="partyAcctgPreference" auto-field-map="false">
+            <field-map field-name="partyId" env-name="parameters.userLogin.partyId"/>
+        </entity-one>
+        <set-service-fields service-name="createPaymentOfbiz" map-name="parameters" to-map-name="createPayment"/>
+        <sequenced-id-to-env sequence-name="${partyAcctgPreference.invoiceIdPrefix}Payment" env-name="nextPaymentId"/>
+        <set field="createPayment.paymentId" value="${partyAcctgPreference.invoiceIdPrefix}${nextPaymentId}"/>
+        <call-service service-name="createPaymentOfbiz" in-map-name="createPayment">
+            <result-to-result result-name="paymentId" service-result-name="paymentId"/>
+        </call-service>
+        
+    </simple-method>
+    
+</simple-methods>
\ No newline at end of file

Added: trunk/specialized/opentravelsystem/webapp/hotelbackend/html/images/system.jpg
===================================================================
(Binary files differ)


Property changes on: trunk/specialized/opentravelsystem/webapp/hotelbackend/html/images/system.jpg
___________________________________________________________________
Name: svn:executable
   + *
Name: svn:mime-type
   + application/octet-stream



More information about the Svn mailing list