Author: mrisaliti
Date: Tue Sep 23 14:09:28 2008 New Revision: 698351 URL: http://svn.apache.org/viewvc?rev=698351&view=rev Log: New Web Pos application Added: ofbiz/trunk/specialpurpose/webpos/ ofbiz/trunk/specialpurpose/webpos/build/ ofbiz/trunk/specialpurpose/webpos/build.xml (with props) ofbiz/trunk/specialpurpose/webpos/config/ ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml (with props) ofbiz/trunk/specialpurpose/webpos/data/ ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml (with props) ofbiz/trunk/specialpurpose/webpos/entitydef/ ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml (with props) ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml (with props) ofbiz/trunk/specialpurpose/webpos/script/ ofbiz/trunk/specialpurpose/webpos/script/org/ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml (with props) ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml (with props) ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PaymentEvents.xml (with props) ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PromoEvents.xml (with props) ofbiz/trunk/specialpurpose/webpos/servicedef/ ofbiz/trunk/specialpurpose/webpos/servicedef/services.xml (with props) ofbiz/trunk/specialpurpose/webpos/servicedef/services_manager.xml (with props) ofbiz/trunk/specialpurpose/webpos/servicedef/services_payment.xml (with props) ofbiz/trunk/specialpurpose/webpos/servicedef/services_promo.xml (with props) ofbiz/trunk/specialpurpose/webpos/src/ ofbiz/trunk/specialpurpose/webpos/src/org/ ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/ ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/ ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/WebPosEvents.java (with props) ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/session/ ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/session/WebPosSession.java (with props) ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/transaction/ ofbiz/trunk/specialpurpose/webpos/src/org/ofbiz/webpos/transaction/WebPosTransaction.java (with props) ofbiz/trunk/specialpurpose/webpos/webapp/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/Login.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/RequirePasswordChange.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/Login.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/buttons/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/buttons/Main.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/buttons/Payment.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/cart/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/cart/MicroCart.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/cart/ShowCart.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/manager/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/actions/manager/PaidOutAndIn.groovy (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/web.xml (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/Main.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/Manager.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/Numbers.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/Payment.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/buttons/Promo.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/cart/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/cart/MicroCart.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/cart/ShowCart.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/error/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/error/error.jsp (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/js/SearchProducts.js (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/images/webpos.css (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Footer.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Header.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Messages.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/index.jsp (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/CloseTerminal.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/ModifyPrice.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/OpenTerminal.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/PaidOutAndIn.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/manager/VoidOrder.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/PayCash.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/PayCheck.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/PayCreditCard.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/PayGiftCard.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/payment/PaySetRef.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/promo/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/promo/PromoCode.ftl (with props) ofbiz/trunk/specialpurpose/webpos/webapp/webpos/search/ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/search/SearchProducts.ftl (with props) ofbiz/trunk/specialpurpose/webpos/widget/ ofbiz/trunk/specialpurpose/webpos/widget/ButtonsScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/CommonScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/ManagerScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/PaymentScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/PromoScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/WebPosScreens.xml (with props) ofbiz/trunk/specialpurpose/webpos/widget/WebPosSetup.groovy (with props) Modified: ofbiz/trunk/specialpurpose/build.xml ofbiz/trunk/specialpurpose/component-load.xml Modified: ofbiz/trunk/specialpurpose/build.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/build.xml?rev=698351&r1=698350&r2=698351&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/build.xml (original) +++ ofbiz/trunk/specialpurpose/build.xml Tue Sep 23 14:09:28 2008 @@ -29,7 +29,8 @@ googlebase/build.xml, ebay/build.xml, projectmgr/build.xml, - ldap/build.xml"/> + ldap/build.xml, + webpos/build.xml"/> <!-- For the old OFBiz Workflow Engine add "workflow/build.xml" to the list above --> <!-- For Shark add "shark/build.xml" to the list above, in the specialpurpose-builds list (after workflow) --> Modified: ofbiz/trunk/specialpurpose/component-load.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/component-load.xml?rev=698351&r1=698350&r2=698351&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/component-load.xml (original) +++ ofbiz/trunk/specialpurpose/component-load.xml Tue Sep 23 14:09:28 2008 @@ -29,6 +29,7 @@ <load-component component-location="googlebase"/> <load-component component-location="ebay"/> <load-component component-location="mypage"/> + <load-component component-location="webpos"/> <!-- <load-component component-location="workflow"/> --> <!-- <load-component component-location="shark"/> --> </component-loader> Added: ofbiz/trunk/specialpurpose/webpos/build.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/build.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/build.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/build.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,127 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<project name="OFBiz - Web Pos Component" default="jar" basedir="."> + + <!-- ================================================================== --> + <!-- Initialization of all property settings --> + <!-- ================================================================== --> + + <target name="init"> + <property environment="env"/> + <property name="desc" value="Web Pos Component"/> + <property name="name" value="ofbiz-webpos"/> + <property name="ofbiz.home.dir" value="../.."/> + <property name="src.dir" value="src"/> + <property name="dtd.dir" value="dtd"/> + <property name="lib.dir" value="lib"/> + <property name="build.dir" value="build"/> + </target> + + <target name="classpath"> + <path id="local.class.path"> + <fileset dir="../../framework/base/lib" includes="*.jar"/> + <fileset dir="../../framework/base/lib/j2eespecs" includes="*.jar"/> + <fileset dir="../../framework/base/build/lib" includes="*.jar"/> + <fileset dir="../../framework/entity/lib" includes="*.jar"/> + <fileset dir="../../framework/entity/build/lib" includes="*.jar"/> + <fileset dir="../../framework/security/build/lib" includes="*.jar"/> + <fileset dir="../../framework/service/lib" includes="*.jar"/> + <fileset dir="../../framework/service/build/lib" includes="*.jar"/> + <fileset dir="../../framework/minilang/build/lib" includes="*.jar"/> + <fileset dir="../../framework/common/build/lib" includes="*.jar"/> + <fileset dir="../../framework/webapp/build/lib" includes="*.jar"/> + <fileset dir="../../specialpurpose/pos/build/lib" includes="*.jar"/> <!-- to be removed --> + <fileset dir="../../applications/party/build/lib" includes="*.jar"/> + <fileset dir="../../applications/product/build/lib" includes="*.jar"/> + <fileset dir="../../applications/marketing/build/lib" includes="*.jar"/> + <fileset dir="../../applications/order/build/lib" includes="*.jar"/> + <fileset dir="../../applications/accounting/build/lib" includes="*.jar"/> + <fileset dir="../../applications/securityext/build/lib" includes="*.jar"/> + </path> + </target> + + <!-- ================================================================== --> + <!-- Removes all created files and directories --> + <!-- ================================================================== --> + + <target name="clean" depends="clean-lib"> + <delete dir="${build.dir}"/> + </target> + + <target name="clean-lib" depends="init"> + <delete dir="${build.dir}/lib"/> + </target> + + <!-- ================================================================== --> + <!-- Makes sure the needed directory structure is in place --> + <!-- ================================================================== --> + + <target name="prepare" depends="clean-lib"> + <mkdir dir="${build.dir}/classes"/> + <mkdir dir="${build.dir}/lib"/> + </target> + + <target name="prepare-docs" depends="init"> + <mkdir dir="${build.dir}/javadocs"/> + </target> + + <!-- ================================================================== --> + <!-- Compilation of the source files --> + <!-- ================================================================== --> + + <target name="classes" depends="prepare,classpath"> + <javac debug="on" source="1.5" deprecation="on" destdir="${build.dir}/classes"> + <classpath> + <path refid="local.class.path"/> + </classpath> + <src path="${src.dir}"/> + </javac> + <!-- also put the DTDs in the jar file... --> + <copy todir="${build.dir}/classes"> + <!--<fileset dir="${dtd.dir}" includes="*.dtd"/>--> + <fileset dir="${src.dir}" includes="**/*.properties,**/*.xml,**/*.bsh,**/*.groovy,**/*.logic,**/*.js,**/*.jacl,**/*.py"/> + </copy> + + <!-- now add the NOTICE and LICENSE files to allow the jar file to be distributed alone --> + <copy todir="${build.dir}/classes/META-INF"> + <fileset dir="${ofbiz.home.dir}" includes="NOTICE,LICENSE"/> + </copy> + </target> + + <target name="jar" depends="classes"> + <jar jarfile="${build.dir}/lib/${name}.jar" basedir="${build.dir}/classes"/> + </target> + + <!-- ================================================================== --> + <!-- Build JavaDoc --> + <!-- ================================================================== --> + + <target name="docs" depends="prepare-docs,classpath"> + <javadoc packagenames="org.ofbiz.webpos.*" + classpathref="local.class.path" + destdir="${build.dir}/javadocs" + Windowtitle="Open for Business - ${desc}"> + <sourcepath path="${src.dir}"/> + </javadoc> + </target> + + <target name="all" depends="jar,docs"/> +</project> Propchange: ofbiz/trunk/specialpurpose/webpos/build.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/build.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/build.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/build.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,458 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +--> +<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> + <property key="WebPosAdjustments"> + <value xml:lang="en">Adjustments</value> + <value xml:lang="it">Aggiustamenti</value> + </property> + <property key="WebPosButtonOpenTerminal"> + <value xml:lang="en">OPEN TERMINAL</value> + <value xml:lang="it">APRI TERMINALE</value> + </property> + <property key="WebPosButtonCloseTerminal"> + <value xml:lang="en">CLOSE TERMINAL</value> + <value xml:lang="it">CHIUDI TERMINALE</value> + </property> + <property key="WebPosButtonLogin"> + <value xml:lang="en">LOGIN</value> + <value xml:lang="it">LOGIN</value> + </property> + <property key="WebPosButtonLogout"> + <value xml:lang="en">LOGOUT</value> + <value xml:lang="it">LOGOUT</value> + </property> + <property key="WebPosButtonMain"> + <value xml:lang="en">MAIN</value> + <value xml:lang="it">INIZIO</value> + </property> + <property key="WebPosButtonManager"> + <value xml:lang="en">MANAGER</value> + <value xml:lang="it">RESP.</value> + </property> + <property key="WebPosButtonModifyPrice"> + <value xml:lang="en">MODIFY PRICE</value> + <value xml:lang="it">MODIF. PREZZO</value> + </property> + <property key="WebPosButtonPayment"> + <value xml:lang="en">PAYMENT</value> + <value xml:lang="it">PAGAM.</value> + </property> + <property key="WebPosButtonPaidIn"> + <value xml:lang="en">PAID IN</value> + <value xml:lang="it">PAGAM. ING.</value> + </property> + <property key="WebPosButtonPaidOut"> + <value xml:lang="en">PAID OUT</value> + <value xml:lang="it">PAGAM. USC.</value> + </property> + <property key="WebPosButtonPayCash"> + <value xml:lang="en">PAY CASH</value> + <value xml:lang="it">PAGAM. CONTANTI</value> + </property> + <property key="WebPosButtonPayCheck"> + <value xml:lang="en">PAY CHECK</value> + <value xml:lang="it">PAGAM. ASSEGNO</value> + </property> + <property key="WebPosButtonPayClear"> + <value xml:lang="en">CLEAR PAYMENT</value> + <value xml:lang="it">CANC. PAGAM.</value> + </property> + <property key="WebPosButtonPayClearAll"> + <value xml:lang="en">CLEAR ALL PAYMENT</value> + <value xml:lang="it">CANC. TUTTI PAGAM.</value> + </property> + <property key="WebPosButtonPayCreditCard"> + <value xml:lang="en">PAY CREDIT CARD</value> + <value xml:lang="it">PAGAM. CARTA CREDITO</value> + </property> + <property key="WebPosButtonPayGiftCard"> + <value xml:lang="en">PAY GIFT CARD</value> + <value xml:lang="it">PAGAM. CARTA REGALO</value> + </property> + <property key="WebPosButtonPayFinish"> + <value xml:lang="en">PAY FINISH</value> + <value xml:lang="it">TERMINA PAGAM.</value> + </property> + <property key="WebPosButtonPromo"> + <value xml:lang="en">PROMO</value> + <value xml:lang="it">PROMOZ.</value> + </property> + <property key="WebPosButtonPromoCode"> + <value xml:lang="en">PROMO CODE</value> + <value xml:lang="it">COD. PROMOZ.</value> + </property> + <property key="WebPosButtonReturn"> + <value xml:lang="en">RETURN</value> + <value xml:lang="it">INVIO</value> + </property> + <property key="WebPosButtonPaySetRef"> + <value xml:lang="en">PAYMENT SET REF.</value> + <value xml:lang="it">IMPOSTA RIF. PAGAM.</value> + </property> + <property key="WebPosButtonShutdown"> + <value xml:lang="en">SHUTDOWN</value> + <value xml:lang="it">CHIUDI</value> + </property> + <property key="WebPosButtonSku"> + <value xml:lang="en">SKU</value> + <value xml:lang="it">CODICE PRODOTTO</value> + </property> + <property key="WebPosButtonVoidOrder"> + <value xml:lang="en">VOID ORDER</value> + <value xml:lang="it">RESO ORDINE</value> + </property> + <property key="WebPosCart"> + <value xml:lang="en">POS Cart</value> + <value xml:lang="it">Carrello POS</value> + </property> + <property key="WebPosCartTotal"> + <value xml:lang="en">Cart Total</value> + <value xml:lang="it">Totale carrello</value> + </property> + <property key="WebPosCompleteSale"> + <value xml:lang="en">Press Finish To Complete Sale</value> + <value xml:lang="it">Premere TERMINA per completare la vendita</value> + </property> + <property key="WebPosDrawer"> + <value xml:lang="en">Till</value> + <value xml:lang="it">Cassa</value> + </property> + <property key="WebPosEmployee"> + <value xml:lang="en">Employee</value> + <value xml:lang="it">Impiegato</value> + </property> + <property key="WebPosEmptyCart"> + <value xml:lang="en">EMPTY CART</value> + <value xml:lang="it">SVUOTA CARRELLO</value> + </property> + <property key="WebPosItemTotal"> + <value xml:lang="en">Item Total</value> + <value xml:lang="it">Totale riga</value> + </property> + <property key="WebPosManagerCloseTerminalCashAmount"> + <value xml:lang="en">Enter Cash Amount:</value> + <value xml:lang="it">Inserire Importo in Contanti:</value> + </property> + <property key="WebPosManagerCloseTerminalCheckAmount"> + <value xml:lang="en">Enter Check Amount:</value> + <value xml:lang="it">Inserire Importo in Assegni:</value> + </property> + <property key="WebPosManagerCloseTerminalCcAmount"> + <value xml:lang="en">Enter Credit Card Amount:</value> + <value xml:lang="it">Inserire Importo con Carte di Credito:</value> + </property> + <property key="WebPosManagerCloseTerminalGcAmount"> + <value xml:lang="en">Enter Gift Card Amount:</value> + <value xml:lang="it">Inserire Importo con Carte Regalo:</value> + </property> + <property key="WebPosManagerCloseTerminalOtherAmount"> + <value xml:lang="en">Enter Other Payment Amount:</value> + <value xml:lang="it">Inserire Importo con Altri Pagamenti:</value> + </property> + <property key="WebPosManagerCloseTerminalCashAmountNotValid"> + <value xml:lang="en">Enter a valid cash amount:</value> + <value xml:lang="it">Inserire un'importo in contanti valido:</value> + </property> + <property key="WebPosManagerCloseTerminalCheckAmountNotValid"> + <value xml:lang="en">Enter a valid check amount:</value> + <value xml:lang="it">Inserire un'importo in assegni valido:</value> + </property> + <property key="WebPosManagerCloseTerminalCcAmountNotValid"> + <value xml:lang="en">Enter a valid credit card amount:</value> + <value xml:lang="it">Inserire un'importo con carte di credito valido:</value> + </property> + <property key="WebPosManagerCloseTerminalGcAmounNotValidt"> + <value xml:lang="en">Enter a valid gift card amount:</value> + <value xml:lang="it">Inserire un'importo con carte regalo valido:</value> + </property> + <property key="WebPosManagerCloseTerminalOtherAmountNotValid"> + <value xml:lang="en">Enter a valid other payment amount:</value> + <value xml:lang="it">Inserire un'importo con altri pagamenti valido:</value> + </property> + <property key="WebPosManagerModifyPriceSku"> + <value xml:lang="en">Enter sku</value> + <value xml:lang="it">Inserire il codice prodotto</value> + </property> + <property key="WebPosManagerModifyPriceNewPrice"> + <value xml:lang="en">Enter new price</value> + <value xml:lang="it">Inserire il nuovo prezzo</value> + </property> + <property key="WebPosManagerModifyPriceNotValidPrice"> + <value xml:lang="en">Enter a new valid price</value> + <value xml:lang="it">Inserire un nuovo prezzo valido</value> + </property> + <property key="WebPosManagerOpenTerminalDrawingAmount"> + <value xml:lang="en">Starting Drawer Amount:</value> + <value xml:lang="it">Importo Iniziale Cassa:</value> + </property> + <property key="WebPosManagerOpenTerminalDrawingAmountNotValid"> + <value xml:lang="en">Insert a valid starting drawer amount:</value> + <value xml:lang="it">Inserire un'importo iniziale cassa valido:</value> + </property> + <property key="WebPosManagerPaidInAmount"> + <value xml:lang="en">Enter amount to paid in and create or choose a reason</value> + <value xml:lang="it">Inserire l'importo del pagamento in ingresso o scegli una motivazione</value> + </property> + <property key="WebPosManagerPaidOutAmount"> + <value xml:lang="en">Enter amount to withdraw and create or choose a reason</value> + <value xml:lang="it">Inserire l'importo del pagamento in uscita o scegli una motivazione</value> + </property> + <property key="WebPosManagerPaidOutAndIndAmountNotValid"> + <value xml:lang="en">Enter a valid amount</value> + <value xml:lang="it">Inserire un'importo valido</value> + </property> + <property key="WebPosManagerPaidOutAndIndReason"> + <value xml:lang="en">You have to create or choose a reason</value> + <value xml:lang="it">Tu devi creare o scegliere la motivazione</value> + </property> + <property key="WebPosManagerPaidOutAndInWithoutOpenedTransaction"> + <value xml:lang="en">Cannot Paid Out and In without an opened transaction</value> + <value xml:lang="it">Non è possibile pagare in ingresso o uscita senza una transazione aperta</value> + </property> + <property key="WebPosManagerModifyPriceSku"> + <value xml:lang="en">Enter sku</value> + <value xml:lang="it">Inserire il codice prodotto</value> + </property> + <property key="WebPosManagerTerminalAlreadyClosed"> + <value xml:lang="en">Terminal already closed</value> + <value xml:lang="it">Terminale giàchiuso</value> + </property> + <property key="WebPosManagerTerminalAlreadyOpened"> + <value xml:lang="en">Terminal already opened</value> + <value xml:lang="it">Terminale giàaperto</value> + </property> + <property key="WebPosManagerVoidOrder"> + <value xml:lang="en">Enter Order Number To Void:</value> + <value xml:lang="it">Inserire Numero Ordine per Reso:</value> + </property> + <property key="WebPosManagerVoidOrderNotValidDate"> + <value xml:lang="en">Order ${parameters.orderId} has a date ${orderDate} that is before ${openDate}</value> + <value xml:lang="it">L'ordine ${parameters.orderId} ha una data ${orderDate} che è prima del ${openDate}</value> + </property> + <property key="WebPosManagerVoidOrderNotValidOrderId"> + <value xml:lang="en">Order ${parameters.orderId} not found</value> + <value xml:lang="it">L'ordine ${parameters.orderId} non trovato</value> + </property> + <property key="WebPosManagerVoidOrderTerminalNotOpened"> + <value xml:lang="en">Terminal is not opened</value> + <value xml:lang="it">Il terminale non è aperto</value> + </property> + <property key="WebPosNotLoggedIn"> + <value xml:lang="en">You must be logged in</value> + <value xml:lang="it">Tu devi essere autenticato</value> + </property> + <property key="WebPosNotManagerLoggedIn"> + <value xml:lang="en">To open terminal is mandatory that a manager is logged in</value> + <value xml:lang="it">Per aprire il terminale e' obbligatorio autenticarsi con un manager</value> + </property> + <property key="WebPosPageTitleLogin"> + <value xml:lang="en">Login</value> + <value xml:lang="it">Login</value> + </property> + <property key="WebPosPageTitleMain"> + <value xml:lang="en">Web Pos</value> + <value xml:lang="it">Pos Web</value> + </property> + <property key="WebPosPageTitleCloseTerminal"> + <value xml:lang="en">Close Terminal</value> + <value xml:lang="it">Chiudi Terminale</value> + </property> + <property key="WebPosPageTitleOpenTerminal"> + <value xml:lang="en">Open Terminal</value> + <value xml:lang="it">Apri Terminale</value> + </property> + <property key="WebPosPageTitleModifyPrice"> + <value xml:lang="en">Modify Price</value> + <value xml:lang="it">Modifica Prezzo</value> + </property> + <property key="WebPosPageTitlePaidOutAndIn"> + <value xml:lang="en">Paid Out And In</value> + <value xml:lang="it">Pagamento in Uscita o in Entrata</value> + </property> + <property key="WebPosPageTitlePayCash"> + <value xml:lang="en">Pay Cash</value> + <value xml:lang="it">Pagamento in Contanti</value> + </property> + <property key="WebPosPageTitlePayCheck"> + <value xml:lang="en">Pay Check</value> + <value xml:lang="it">Pagamento con Assegno</value> + </property> + <property key="WebPosPageTitlePayGiftCard"> + <value xml:lang="en">Pay Gift Card</value> + <value xml:lang="it">Pagamento con Carta Regalo</value> + </property> + <property key="WebPosPageTitlePayCreditCard"> + <value xml:lang="en">Pay Credit Card</value> + <value xml:lang="it">Pagamento con Carta di Credito</value> + </property> + <property key="WebPosPageTitlePaySetRef"> + <value xml:lang="en">Pay Set Reference</value> + <value xml:lang="it">Imposta Riferimento Pagamento</value> + </property> + <property key="WebPosPageTitlePromoCode"> + <value xml:lang="en">Promo Code</value> + <value xml:lang="it">Codice Promozione</value> + </property> + <property key="WebPosPageTitleVoidOrder"> + <value xml:lang="en">Void Order</value> + <value xml:lang="it">Reso Ordine</value> + </property> + <property key="WebPosPayCash"> + <value xml:lang="en">Cash amount</value> + <value xml:lang="it">Importo in Contanti</value> + </property> + <property key="WebPosPayCashNotValidAmount"> + <value xml:lang="en">Insert a valid cash amount</value> + <value xml:lang="it">Inserire un'importo in contanti valido</value> + </property> + <property key="WebPosPayCheck"> + <value xml:lang="en">Check amount</value> + <value xml:lang="it">Importo con Assegno</value> + </property> + <property key="WebPosPayCheckNotValidAmount"> + <value xml:lang="en">Insert a valid check amount</value> + <value xml:lang="it">Inserire un'importo con assegni valido</value> + </property> + <property key="WebPosPayCheckRefNum"> + <value xml:lang="en">Check ref. num .</value> + <value xml:lang="it">Rif. Num. Assegno</value> + </property> + <property key="WebPosPayGiftCard"> + <value xml:lang="en">Gift card amount</value> + <value xml:lang="it">Importo con carta regalo</value> + </property> + <property key="WebPosPayGiftCardNotValidAmount"> + <value xml:lang="en">Insert a valid gift card amount</value> + <value xml:lang="it">Inserire un'importo con carta regalo valido</value> + </property> + <property key="WebPosPayGiftCardRefNum"> + <value xml:lang="en">Gift card ref. num .</value> + <value xml:lang="it">Rif. Num. Carta Regalo</value> + </property> + <property key="WebPosPayCreditCard"> + <value xml:lang="en">Credit card amount</value> + <value xml:lang="it">Importo con carta di credito</value> + </property> + <property key="WebPosPayCreditCardNum"> + <value xml:lang="en">Credit card number</value> + <value xml:lang="it">Numero di carta di credito</value> + </property> + <property key="WebPosPayCreditCardExp"> + <value xml:lang="en">Credit card expiring</value> + <value xml:lang="it">Scadenza carta di credito</value> + </property> + <property key="WebPosPayCreditCardFirstName"> + <value xml:lang="en">First Name</value> + <value xml:lang="it">Nome</value> + </property> + <property key="WebPosPayCreditCardLastName"> + <value xml:lang="en">Last Name</value> + <value xml:lang="it">Cognome</value> + </property> + <property key="WebPosPayCreditCardNotValidAmount"> + <value xml:lang="en">Insert a valid credit card amount</value> + <value xml:lang="it">Inserire un'importo con carta di credito valido</value> + </property> + <property key="WebPosPayCreditCardRefNum"> + <value xml:lang="en">Credit card ref. num .</value> + <value xml:lang="it">Rif. Num. Carta di Credito</value> + </property> + <property key="WebPosPayCreditCardSecurityCode"> + <value xml:lang="en">Credit card security code</value> + <value xml:lang="it">Codice di sicurezza della carta di credito</value> + </property> + <property key="WebPosPaymentCheckInternal"> + <value xml:lang="en">Payment Check Internal not yet supported</value> + <value xml:lang="it">Pagemento Assegno Interno non ancora supportato</value> + </property> + <property key="WebPosPaymentCheckMissingRefNum"> + <value xml:lang="en">You must specify the reference number of the payment check</value> + <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento assegno</value> + </property> + <property key="WebPosPaymentCredictCardInvalid"> + <value xml:lang="en">You must specify a valid credit card number</value> + <value xml:lang="it">Tu devi specificare un numero di carta di credito valida</value> + </property> + <property key="WebPosPaymentCredictCardInvalidExpiringDate"> + <value xml:lang="en">You must specify a not expired credit card</value> + <value xml:lang="it">Tu devi specificare una carta di credito non scaduta</value> + </property> + <property key="WebPosPaymentCredictCardInvalidSecurityCode"> + <value xml:lang="en">You must specify a valid security code</value> + <value xml:lang="it">Tu devi specificare un pin valido</value> + </property> + <property key="WebPosPaymentCredictCardMissingRefNum"> + <value xml:lang="en">You must specify the reference number of the payment credit card</value> + <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento carta di credito</value> + </property> + <property key="WebPosPaymentGiftCardInternal"> + <value xml:lang="en">Payment Gift Card Internal not yet supported</value> + <value xml:lang="it">Pagemento Carta Regalo Interna non ancora supportato</value> + </property> + <property key="WebPosPaymentGiftCardMissingRefNum"> + <value xml:lang="en">You must specify the reference number of the payment gift card</value> + <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento carta regalo</value> + </property> + <property key="WebPosPaymentSetRef"> + <value xml:lang="en">Set payment reference</value> + <value xml:lang="it">Imposta riferimento pagamento</value> + </property> + <property key="WebPosPromoCode"> + <value xml:lang="en">Enter Promo Code:</value> + <value xml:lang="it">Inserire Codice Promozione:</value> + </property> + <property key="WebPosPromoCodeTerminalNotOpened"> + <value xml:lang="en">Terminal must be opened for promo</value> + <value xml:lang="it">Terminale deve essere aperto per utilizzare le promozioni</value> + </property> + <property key="WebPosRecalculateCart"> + <value xml:lang="en">RECALCULATE CART</value> + <value xml:lang="it">RICALCOLA CARRELLO</value> + </property> + <property key="WebPosRemoveSelected"> + <value xml:lang="en">REMOVE SELECTED</value> + <value xml:lang="it">RIMUOVI SELEZIONI</value> + </property> + <property key="WebPosSearchBy"> + <value xml:lang="en">Search By</value> + <value xml:lang="it">Ricerca per</value> + </property> + <property key="WebPosTransactionDate"> + <value xml:lang="en">Date</value> + <value xml:lang="it">Data</value> + </property> + <property key="WebPosTransactionDateFormat"> + <value xml:lang="en">EEE MMM dd</value> + <value xml:lang="it">EEE MMM dd</value> + </property> + <property key="WebPosTransactionId"> + <value xml:lang="en">Transaction Id</value> + <value xml:lang="it">Transazione</value> + </property> + <property key="WebPosTransactionTotalDue"> + <value xml:lang="en">Total Due</value> + <value xml:lang="it">Totale Dovuto</value> + </property> + <property key="WebPosUnitPrice"> + <value xml:lang="en">Unit Price</value> + <value xml:lang="it">Prezzo unitario</value> + </property> + +</resource> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/config/WebPosUiLabels.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<entity-engine-xml> + <WebSite webSiteId="WebStorePos" siteName="Web POS Site" productStoreId="9100"/> + + <EnumerationType description="Pos Paid Reason In" enumTypeId="POS_PAID_REASON_IN" hasTable="N" parentTypeId=""/> + <Enumeration description="Banking during the day" enumCode="BANKING_IN_REASON" enumId="BANKING_IN_REASON" sequenceId="01" enumTypeId="POS_PAID_REASON_IN"/> + <Enumeration description="Change added to Till's float" enumCode="CHANGE_IN_REASON" enumId="CHANGE_IN_REASON" sequenceId="02" enumTypeId="POS_PAID_REASON_IN"/> + <Enumeration description="Petty Cash Paid into Till" enumCode="CASH_IN_REASON" enumId="CASH_IN_REASON" sequenceId="03" enumTypeId="POS_PAID_REASON_IN"/> + + <EnumerationType description="Pos Paid Reason Out" enumTypeId="POS_PAID_REASON_OUT" hasTable="N" parentTypeId=""/> + <Enumeration description="Banking during the day" enumCode="BANKING_OUT_REASON" enumId="BANKING_OUT_REASON" sequenceId="01" enumTypeId="POS_PAID_REASON_OUT"/> + <Enumeration description="Petty Cash out" enumCode="CASH_OUT_REASON" enumId="CASH_OUT_REASON" sequenceId="03" enumTypeId="POS_PAID_REASON_OUT"/> + + <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="PERSONAL_CHECK" paymentServiceTypeEnumId="PRDS_PAY_EXTERNAL" paymentService=""/> +</entity-engine-xml> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/data/DemoPosData.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,100 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<entitymodel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/entitymodel.xsd"> + <!-- ========================================================= --> + <!-- ======================== Defaults ======================= --> + <!-- ========================================================= --> + <title>Entity of an Open For Business Project Component</title> + <description>None</description> + <copyright>Copyright 2001-2006 The Apache Software Foundation</copyright> + <author>None</author> + <version>1.0</version> + + <entity entity-name="PosTerminal" + package-name="org.ofbiz.pos.terminal" + title="Pos Terminal"> + <field name="posTerminalId" type="id-ne"></field> + <field name="facilityId" type="id"></field> + <field name="pushEntitySyncId" type="id"></field> + <prim-key field="posTerminalId"/> + </entity> + <entity entity-name="PosTerminalLog" + package-name="org.ofbiz.pos.terminal" + title="Pos Terminal Log"> + <field name="posTerminalLogId" type="id-ne"></field> + <field name="posTerminalId" type="id-ne"></field> + <field name="transactionId" type="id"></field> + <field name="itemCount" type="numeric"></field> + <field name="orderId" type="id"></field> + <field name="returnId" type="id"></field> + <field name="userLoginId" type="id-vlong"/> + <field name="statusId" type="id"></field> + <field name="logStartDateTime" type="date-time"/> + <field name="logEndDateTime" type="date-time"/> + <prim-key field="posTerminalLogId"/> + <relation type="one" fk-name="POS_LOG_POS" rel-entity-name="PosTerminal"> + <key-map field-name="posTerminalId"/> + </relation> + <relation type="one" fk-name="POS_LOG_ORDER" rel-entity-name="OrderHeader"> + <key-map field-name="orderId"/> + </relation> + <relation type="one" fk-name="POS_LOG_RETURN" rel-entity-name="ReturnHeader"> + <key-map field-name="returnId"/> + </relation> + <relation type="one" fk-name="POS_LOG_STTS" rel-entity-name="StatusItem"> + <key-map field-name="statusId"/> + </relation> + </entity> + <entity entity-name="PosTerminalState" + package-name="org.ofbiz.pos.terminal" + title="Pos Terminal State"> + <field name="posTerminalId" type="id-ne"></field> + <field name="openedDate" type="date-time"></field> + <field name="closedDate" type="date-time"></field> + <field name="startingTxId" type="id-long"></field> + <field name="endingTxId" type="id-long"></field> + <field name="openedByUserLoginId" type="id-vlong"></field> + <field name="closedByUserLoginId" type="id-vlong"></field> + <field name="startingDrawerAmount" type="currency-amount"></field> + <field name="actualEndingCash" type="currency-amount"></field> + <field name="actualEndingCheck" type="currency-amount"></field> + <field name="actualEndingCc" type="currency-amount"></field> + <field name="actualEndingGc" type="currency-amount"></field> + <field name="actualEndingOther" type="currency-amount"></field> + <prim-key field="posTerminalId"/> + <prim-key field="openedDate"/> + <relation type="one" fk-name="POS_STATE_POS" rel-entity-name="PosTerminal"> + <key-map field-name="posTerminalId"/> + </relation> + </entity> + <entity entity-name="PosTerminalInternTx" + package-name="org.ofbiz.pos.terminal" + title="Pos Terminal Internal Transaction"> + <field name="posTerminalLogId" type="id-ne"></field> + <field name="paidAmount" type="currency-amount"></field> + <field name="reasonComment" type="comment"/> + <prim-key field="posTerminalLogId"/> + <relation type="one" fk-name="POS_TRA_POS" rel-entity-name="PosTerminalLog"> + <key-map field-name="posTerminalLogId"/> + </relation> + </entity> +</entitymodel> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/entitydef/entitymodel.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<ofbiz-component name="webpos" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd"> + <resource-loader name="main" type="component"/> + <classpath type="dir" location="script"/> + <classpath type="dir" location="config"/> + <classpath type="jar" location="build/lib/*"/> + + <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoPosData.xml"/> + + <service-resource type="model" loader="main" location="servicedef/services.xml"/> + <service-resource type="model" loader="main" location="servicedef/services_manager.xml"/> + <service-resource type="model" loader="main" location="servicedef/services_payment.xml"/> + <service-resource type="model" loader="main" location="servicedef/services_promo.xml"/> + + <webapp name="webpos" + title="Web Pos" + server="default-server" + location="webapp/webpos" + mount-point="/webpos" + app-bar-display="true"/> +</ofbiz-component> Propchange: ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/ofbiz-component.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,74 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> + <simple-method method-name="FindProducts" short-description="Find products by name/description" login-required="false"> + <!-- Search by product name --> + <if-compare field="parameters.searchBy" operator="equals" value="productName"> + <entity-condition entity-name="Product" list-name="products"> + <select-field field-name="productId"/> + <select-field field-name="productName"/> + <order-by field-name="productName"/> + </entity-condition> + <iterate list-name="products" entry-name="product"> + <set field="productName" type="String" value="${product.productName} (${product.productId})"/> + <field-to-list field-name="productName" list-name="productsList"/> + <set field="productId" type="String" value="${product.productId}"/> + <field-to-list field-name="productId" list-name="productsId"/> + </iterate> + <field-to-result field-name="productsList" result-name="productsList"/> + <field-to-result field-name="productsId" result-name="productsId"/> + <else> + <!-- Search by product description --> + <if-compare field="parameters.searchBy" operator="equals" value="productDescription"> + <entity-condition entity-name="Product" list-name="products"> + <select-field field-name="productId"/> + <select-field field-name="description"/> + <order-by field-name="description"/> + </entity-condition> + <iterate list-name="products" entry-name="product"> + <set field="description" type="String" value="${product.description} (${product.productId})"/> + <field-to-list field-name="description" list-name="productsList"/> + <set field="productId" type="String" value="${product.productId}"/> + <field-to-list field-name="productId" list-name="productsId"/> + </iterate> + <field-to-result field-name="productsList" result-name="productsList"/> + <field-to-result field-name="productsId" result-name="productsId"/> + </if-compare> + </else> + </if-compare> + </simple-method> + + <simple-method method-name="FindProductsByIdentification" short-description="Find products by good identification" login-required="false"> + <!-- Search by good identification --> + <entity-condition entity-name="GoodIdentificationAndProduct" list-name="products"> + <select-field field-name="productId"/> + <select-field field-name="idValue"/> + <order-by field-name="idValue"/> + </entity-condition> + <iterate list-name="products" entry-name="product"> + <set field="idValue" type="String" value="${product.idValue} ${product.productName} (${product.productId})"/> + <field-to-list field-name="idValue" list-name="productsList"/> + <set field="productId" type="String" value="${product.productId}"/> + <field-to-list field-name="productId" list-name="productsId"/> + </iterate> + <field-to-result field-name="productsList" result-name="productsList"/> + <field-to-result field-name="productsId" result-name="productsId"/> + </simple-method> +</simple-methods> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/WebPosServices.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml?rev=698351&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml (added) +++ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml Tue Sep 23 14:09:28 2008 @@ -0,0 +1,376 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/simple-methods.xsd"> + <simple-method method-name="openTerminal" short-description="Open Terminal" login-required="true"> + <if-not-empty field="parameters.confirm"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="isManagerLoggedIn" ret-field-name="mgrLoggedIn"/> + <if-compare field="mgrLoggedIn" operator="equals" value="true" type="String"> + <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field-name="webPosTransaction"/> + <check-errors/> + <call-object-method obj-field-name="webPosTransaction" method-name="isOpen" ret-field-name="isOpen"/> + <if-compare field="isOpen" operator="equals" value="false"> + <set field="startingDrawerAmount" from-field="parameters.startingDrawerAmount" type="String"/> + <set field="allowNegative" value="false" type="Boolean"/> + <set field="allowPositive" value="true" type="Boolean"/> + <set field="minDecimal" value="0" type="Integer"/> + <set field="maxDecimal" value="3" type="Integer"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="startingDrawerAmount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="true"> + <make-value value-name="terminalState" entity-name="PosTerminalState"/> + <call-object-method obj-field-name="webPosSession" method-name="getId" ret-field-name="terminalState.posTerminalId"/> + <call-class-method class-name="org.ofbiz.base.util.UtilDateTime" method-name="nowTimestamp" ret-field-name="terminalState.openedDate"/> + <call-object-method obj-field-name="webPosSession" method-name="getUserLoginId" ret-field-name="terminalState.openedByUserLoginId"/> + <call-object-method obj-field-name="webPosTransaction" method-name="getTransactionId" ret-field-name="terminalState.startingTxId"/> + <set from-field="parameters.startingDrawerAmount" field="terminalState.startingDrawerAmount"/> + <create-value value-name="terminalState"/> + <check-errors/> + <log level="info" message="Created PosTerminalState ${terminalState.startingTxId}"/> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerOpenTerminalDrawingAmountNotValid"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerTerminalAlreadyOpened"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotManagerLoggedIn"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + </if-not-empty> + </simple-method> + + <simple-method method-name="closeTerminal" short-description="Close Terminal" login-required="true"> + <if-not-empty field="parameters.confirm"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="isManagerLoggedIn" ret-field-name="mgrLoggedIn"/> + <if-compare field="mgrLoggedIn" operator="equals" value="true"> + <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field-name="webPosTransaction"/> + <check-errors/> + <call-object-method obj-field-name="webPosTransaction" method-name="getTerminalState" ret-field-name="terminalState"/> + <if-not-empty field="terminalState"> + <set field="amount" from-field="parameters.endingDrawerCashAmount" type="String"/> + <set field="allowNegative" value="false" type="Boolean"/> + <set field="allowPositive" value="true" type="Boolean"/> + <set field="minDecimal" value="0" type="Integer"/> + <set field="maxDecimal" value="3" type="Integer"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="false"> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCashAmountNotValid"/></add-error> + <check-errors/> + </if-compare> + <set field="amount" from-field="parameters.endingDrawerCheckAmount" type="String"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="false"> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCheckAmountNotValid"/></add-error> + <check-errors/> + </if-compare> + <set field="amount" from-field="parameters.endingDrawerCcAmount" type="String"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="false"> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCcAmountNotValid"/></add-error> + <check-errors/> + </if-compare> + <set field="amount" from-field="parameters.endingDrawerGcAmount" type="String"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="false"> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalGcAmounNotValidt"/></add-error> + <check-errors/> + </if-compare> + <set field="amount" from-field="parameters.endingDrawerOtherAmount" type="String"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="false"> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalOtherAmountNotValid"/></add-error> + <check-errors/> + </if-compare> + <call-object-method obj-field-name="webPosSession" method-name="getUserLoginId" ret-field-name="terminalState.closedByUserLoginId"/> + <set from-field="parameters.endingDrawerCashAmount" field="terminalState.actualEndingCash"/> + <set from-field="parameters.endingDrawerCheckAmount" field="terminalState.actualEndingCheck"/> + <set from-field="parameters.endingDrawerCcAmount" field="terminalState.actualEndingCc"/> + <set from-field="parameters.endingDrawerGcAmount" field="terminalState.actualEndingGc"/> + <set from-field="parameters.endingDrawerOtherAmount" field="terminalState.actualEndingOther"/> + <call-object-method obj-field-name="webPosTransaction" method-name="getTransactionId" ret-field-name="terminalState.endingTxId"/> + <store-value value-name="terminalState"/> + <check-errors/> + <log level="info" message="Close PosTerminalState ${terminalState.endingTxId}"/> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerTerminalAlreadyClosed"/></add-error> + <check-errors/> + </else> + </if-not-empty> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotManagerLoggedIn"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + <!-- // TODO: missing to call the printTotals and SyncCallbackAdaptor and SecurityEvents.logout(pos) --> + </if-not-empty> + </simple-method> + + <simple-method method-name="voidOrder" short-description="Void Order" login-required="true"> + <if-not-empty field="parameters.confirm"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="isManagerLoggedIn" ret-field-name="mgrLoggedIn"/> + <if-compare field="mgrLoggedIn" operator="equals" value="true"> + <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field-name="webPosTransaction"/> + <check-errors/> + <call-object-method obj-field-name="webPosTransaction" method-name="getTerminalState" ret-field-name="terminalState"/> + <if-not-empty field="terminalState"> + <set field="fieldName" value="openedDate" type="String"/> + <call-object-method obj-field-name="terminalState" method-name="getTimestamp" ret-field-name="openDate"> + <field field-name="fieldName" type="String"/> + </call-object-method> + <entity-one entity-name="OrderHeader" value-name="orderHeader"> + <field-map field-name="orderId" env-name="parameters.orderId"/> + </entity-one> + <if-not-empty field="orderHeader"> + <set field="fieldName" value="orderDate" type="String"/> + <call-object-method obj-field-name="orderHeader" method-name="getTimestamp" ret-field-name="orderDate"> + <field field-name="fieldName" type="String"/> + </call-object-method> + <call-object-method obj-field-name="orderDate" method-name="after" ret-field-name="isAfter"> + <field field-name="openDate" type="Timestamp"/> + </call-object-method> + <if-compare field="isAfter" operator="equals" value="true"> + <call-object-method obj-field-name="webPosSession" method-name="getDispatcher" ret-field-name="dispatcher"/> + <set field="returnOrder.orderId" from-field="parameters.orderId"/> + <set field="returnOrder.returnHeaderTypeId" value="CUSTOMER_RETURN"/> + <call-object-method obj-field-name="webPosSession" method-name="getUserLogin" ret-field-name="returnOrder.userLogin"/> + <set field="serviceName" value="quickReturnOrder"/> + <call-object-method obj-field-name="dispatcher" method-name="runSync" ret-field-name="returnResp"> + <field field-name="serviceName" type="String"/> + <field field-name="returnOrder" type="java.util.Map"/> + </call-object-method> + <check-errors/> + <log level="info" message="Void order ${returnResp}"/> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerVoidOrderNotValidDate"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerVoidOrderNotValidOrderId"/></add-error> + <check-errors/> + </else> + </if-not-empty> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerVoidOrderTerminalNotOpened"/></add-error> + <check-errors/> + </else> + </if-not-empty> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotManagerLoggedIn"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + <!-- // TODO: print void receipt --> + </if-not-empty> + </simple-method> + + <simple-method method-name="shutdown" short-description="Shutdown" login-required="true"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="isManagerLoggedIn" ret-field-name="mgrLoggedIn"/> + <if-compare field="mgrLoggedIn" operator="equals" value="true" type="String"> + <call-object-method obj-field-name="webPosSession" method-name="logout"/> + <check-errors/> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotManagerLoggedIn"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + </simple-method> + + <simple-method method-name="paidOutAndIn" short-description="Paid Out and In" login-required="true"> + <if-not-empty field="parameters.confirm"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="isManagerLoggedIn" ret-field-name="mgrLoggedIn"/> + <if-compare field="mgrLoggedIn" operator="equals" value="true"> + <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field-name="webPosTransaction"/> + <check-errors/> + <call-object-method obj-field-name="webPosTransaction" method-name="isOpen" ret-field-name="isOpen"/> + <check-errors/> + <if-compare field="isOpen" operator="equals" value="true"> + <set field="amount" from-field="parameters.amountInOut" type="String"/> + <set field="allowNegative" value="false" type="Boolean"/> + <set field="allowPositive" value="true" type="Boolean"/> + <set field="minDecimal" value="0" type="Integer"/> + <set field="maxDecimal" value="3" type="Integer"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="true"> + <make-value value-name="internTx" entity-name="PosTerminalInternTx"/> + <call-object-method obj-field-name="webPosTransaction" method-name="getTerminalLogId" ret-field-name="internTx.posTerminalLogId"/> + <set field="internTx.paidAmount" from-field="parameters.amountInOut"/> + <entity-one entity-name="Enumeration" value-name="enum"> + <field-map field-name="enumId" env-name="parameters.reasonInOut"/> + </entity-one> + <set field="internTx.reasonComment" from-field="enum.description"/> + <!-- // TODO : store the parameter reasonInOut into the enum paid reason id --> + <create-value value-name="internTx"/> + <set from-field="parameters.type" field="paidInOut"/> + <call-object-method obj-field-name="webPosTransaction" method-name="paidInOut"> + <field field-name="paidInOut" type="String"/> + </call-object-method> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerPaidOutAndIndAmountNotValid"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerPaidOutAndInWithoutOpenedTransaction"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotManagerLoggedIn"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + </if-not-empty> + </simple-method> + + <simple-method method-name="modifyPrice" short-description="Modify Price" login-required="true"> + <if-not-empty field="parameters.confirm"> + <call-class-method class-name="org.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field-name="webPosSession"> + <field field-name="request" type="javax.servlet.http.HttpServletRequest"/> + </call-class-method> + <if-not-empty field="webPosSession"> + <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field-name="webPosTransaction"/> + <check-errors/> + <set field="amount" from-field="parameters.price" type="String"/> + <set field="allowNegative" value="false" type="Boolean"/> + <set field="allowPositive" value="true" type="Boolean"/> + <set field="minDecimal" value="0" type="Integer"/> + <set field="maxDecimal" value="3" type="Integer"/> + <call-class-method class-name="org.ofbiz.base.util.UtilValidate" method-name="isDouble" ret-field-name="isDouble"> + <field field-name="amount" type="String"/> + <field field-name="allowNegative" type="boolean"/> + <field field-name="allowPositive" type="boolean"/> + <field field-name="minDecimal" type="int"/> + <field field-name="maxDecimal" type="int"/> + </call-class-method> + <if-compare field="isDouble" operator="equals" value="true"> + <set from-field="parameters.sku" field="sku" type="String"/> + <set from-field="parameters.price" field="price" type="Double"/> + <call-object-method obj-field-name="webPosTransaction" method-name="modifyPrice"> + <field field-name="sku" type="String"/> + <field field-name="price" type="double"/> + </call-object-method> + <check-errors/> + <call-object-method obj-field-name="webPosTransaction" method-name="calcTax"/> + <check-errors/> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerModifyPriceNotValidPrice"/></add-error> + <check-errors/> + </else> + </if-compare> + <else> + <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error> + <check-errors/> + </else> + </if-not-empty> + </if-not-empty> + </simple-method> +</simple-methods> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml ------------------------------------------------------------------------------ svn:executable = * Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/ManagerEvents.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |