Modified: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PaymentEvents.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PaymentEvents.xml?rev=731797&r1=731796&r2=731797&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PaymentEvents.xml (original) +++ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PaymentEvents.xml Mon Jan 5 16:58:33 2009 @@ -26,7 +26,7 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="amount" from-field="parameters.amount" type="String"/> <set field="allowNegative" value="false" type="Boolean"/> @@ -42,19 +42,19 @@ </call-class-method> <if-compare field="isDouble" operator="equals" value="true"> <set field="paymentType" value="CASH"/> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> <set from-field="parameters.amount" field="amounStr"/> - <call-object-method obj-field-name="webPosTransaction" method-name="processAmount" ret-field="amount"> + <call-object-method obj-field="webPosTransaction" method-name="processAmount" ret-field="amount"> <field field="amounStr" type="String"/> </call-object-method> <check-errors/> <log level="info" message="Processing [Cash] Amount : ${amount}"/> <set field="refNum" value=""/> <set field="authCode" value=""/> - <call-object-method obj-field-name="webPosTransaction" method-name="addPayment"> + <call-object-method obj-field="webPosTransaction" method-name="addPayment"> <field field="paymentType" type="String"/> <field field="amount" type="double"/> <field field="refNum" type="String"/> @@ -82,7 +82,7 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="amount" from-field="parameters.amount" type="String"/> <set field="allowNegative" value="false" type="Boolean"/> @@ -98,7 +98,7 @@ </call-class-method> <if-compare field="isDouble" operator="equals" value="true"> <set field="paymentType" value="PERSONAL_CHECK"/> - <call-object-method obj-field-name="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> + <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -106,11 +106,11 @@ <call-class-method class-name="org.ofbiz.webpos.transaction.WebPosTransaction" method-name="getExternalPaymentCode" ret-field="externalPaymentCode"/> <!-- No Payment --> <if-compare-field field="paymentCheck" operator="equals" to-field="noPaymentCode"> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> - <call-object-method obj-field-name="webPosTransaction" method-name="processNoPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processNoPayment"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -119,7 +119,7 @@ <if-compare-field field="paymentCheck" operator="equals" to-field="externalPaymentCode"> <if-not-empty field="parameters.refNum"> <set field="refNum" from-field="parameters.refNum"/> - <call-object-method obj-field-name="webPosTransaction" method-name="processExternalPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processExternalPayment"> <field field="paymentType" type="String"/> <field field="amount" type="String"/> <field field="refNum" type="String"/> @@ -159,7 +159,7 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="amount" from-field="parameters.amount" type="String"/> <set field="allowNegative" value="false" type="Boolean"/> @@ -175,7 +175,7 @@ </call-class-method> <if-compare field="isDouble" operator="equals" value="true"> <set field="paymentType" value="GIFT_CARD"/> - <call-object-method obj-field-name="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> + <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -183,7 +183,7 @@ <call-class-method class-name="org.ofbiz.webpos.transaction.WebPosTransaction" method-name="getExternalPaymentCode" ret-field="externalPaymentCode"/> <!-- No Payment --> <if-compare-field field="paymentCheck" operator="equals" to-field="noPaymentCode"> - <call-object-method obj-field-name="webPosTransaction" method-name="processNoPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processNoPayment"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -192,7 +192,7 @@ <if-compare-field field="paymentCheck" operator="equals" to-field="externalPaymentCode"> <if-not-empty field="parameters.refNum"> <set field="refNum" from-field="parameters.refNum"/> - <call-object-method obj-field-name="webPosTransaction" method-name="processExternalPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processExternalPayment"> <field field="paymentType" type="String"/> <field field="amount" type="String"/> <field field="refNum" type="String"/> @@ -232,7 +232,7 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="amount" from-field="parameters.amount" type="String"/> <set field="allowNegative" value="false" type="Boolean"/> @@ -248,7 +248,7 @@ </call-class-method> <if-compare field="isDouble" operator="equals" value="true"> <set field="paymentType" value="CREDIT_CARD"/> - <call-object-method obj-field-name="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> + <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -256,7 +256,7 @@ <call-class-method class-name="org.ofbiz.webpos.transaction.WebPosTransaction" method-name="getExternalPaymentCode" ret-field="externalPaymentCode"/> <!-- No Payment --> <if-compare-field field="paymentCheck" operator="equals" to-field="noPaymentCode"> - <call-object-method obj-field-name="webPosTransaction" method-name="processNoPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processNoPayment"> <field field="paymentType" type="String"/> </call-object-method> <check-errors/> @@ -265,7 +265,7 @@ <if-compare-field field="paymentCheck" operator="equals" to-field="externalPaymentCode"> <if-not-empty field="parameters.refNum"> <set field="refNum" from-field="parameters.refNum"/> - <call-object-method obj-field-name="webPosTransaction" method-name="processExternalPayment"> + <call-object-method obj-field="webPosTransaction" method-name="processExternalPayment"> <field field="paymentType" type="String"/> <field field="amount" type="String"/> <field field="refNum" type="String"/> @@ -292,7 +292,7 @@ <if-not-empty field="parameters.expMonth"> <set field="cardExp" from-field="parameters.expMonth"/> <string-append string="${parameters.expYear}" field="cardExp"/> - <call-object-method obj-field-name="cardExp" method-name="length" ret-field="length"/> + <call-object-method obj-field="cardExp" method-name="length" ret-field="length"/> <if-compare field="length" operator="not-equals" value="6"> <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCredictCardInvalidExpiringDate"/></add-error> <check-errors/> @@ -305,21 +305,21 @@ <!-- test security code - allow blank for illegible cards --> <if-not-empty field="parameters.securityCode"> <set field="securityCode" from-field="parameters.securityCode"/> - <call-object-method obj-field-name="securityCode" method-name="length" ret-field="length"/> + <call-object-method obj-field="securityCode" method-name="length" ret-field="length"/> <if-compare field="length" operator="greater" value="4"> <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCredictCardInvalidSecurityCode"/></add-error> <check-errors/> </if-compare> </if-not-empty> <set field="amountStr" from-field="parameters.amount"/> - <call-object-method obj-field-name="webPosTransaction" method-name="processAmount" ret-field="amount"> + <call-object-method obj-field="webPosTransaction" method-name="processAmount" ret-field="amount"> <field field="amountStr" type="String"/> </call-object-method> <check-errors/> <log level="info" message="Processing Credit Card Amount : ${amount}"/> <set from-field="parameters.firstName" field="firstName"/> <set from-field="parameters.lastName" field="lastName"/> - <call-object-method obj-field-name="webPosTransaction" method-name="makeCreditCardVo" ret-field="paymentId"> + <call-object-method obj-field="webPosTransaction" method-name="makeCreditCardVo" ret-field="paymentId"> <field field="cardNum" type="String"/> <field field="cardExp" type="String"/> <field field="firstName" type="String"/> @@ -327,7 +327,7 @@ </call-object-method> <check-errors/> <if-not-empty field="paymentId"> - <call-object-method obj-field-name="webPosTransaction" method-name="addPayment"> + <call-object-method obj-field="webPosTransaction" method-name="addPayment"> <field field="paymentId" type="String"/> <field field="amount" type="double"/> </call-object-method> @@ -335,7 +335,7 @@ <if-not-empty field="parameters.track2"> <set field="refNum" value=""/> <set field="securityCode" value="parameters.track2"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentTrack2"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentTrack2"> <field field="paymentId" type="String"/> <field field="refNum" type="String"/> <field field="securityCode" type="String"/> @@ -344,7 +344,7 @@ <if-not-empty field="parameters.securityCode"> <set field="refNum" value=""/> <set field="securityCode" value="parameters.securityCode"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentSecurityCode"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentSecurityCode"> <field field="paymentId" type="String"/> <field field="refNum" type="String"/> <field field="securityCode" type="String"/> @@ -353,7 +353,7 @@ <if-not-empty field="parameters.postalCode"> <set field="refNum" value=""/> <set field="securityCode" value="parameters.postalCode"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentPostalCode"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentPostalCode"> <field field="paymentId" type="String"/> <field field="refNum" type="String"/> <field field="securityCode" type="String"/> @@ -391,9 +391,9 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> - <call-object-method obj-field-name="webPosTransaction" method-name="processSale" ret-field="changeDue"/> + <call-object-method obj-field="webPosTransaction" method-name="processSale" ret-field="changeDue"/> <check-errors/> <log level="info" message="Processe sale for a change due amount of ${changeDue}"/> <else> @@ -411,17 +411,17 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="payment" value="0" type="Integer"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <while> <condition> <if-compare-field field="payment" to-field="numPayments" operator="less"/> </condition> <then> - <call-object-method obj-field-name="webPosTransaction" method-name="getPaymentMethodTypeId" ret-field="paymentMethodTypeId"> + <call-object-method obj-field="webPosTransaction" method-name="getPaymentMethodTypeId" ret-field="paymentMethodTypeId"> <field field="payment" type="int"/> </call-object-method> <check-errors/> @@ -431,7 +431,7 @@ <if-not-empty field="parameters.refNumCheck"> <set field="idx" from-field="payment"/> <set field="refNum" from-field="parameters.refNumCheck"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentRefNum"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentRefNum"> <field field="idx" type="int"/> <field field="refNum" type="String"/> <field field="authCode" type="String"/> @@ -450,7 +450,7 @@ <if-not-empty field="parameters.refNumGift"> <set field="idx" from-field="payment"/> <set field="refNum" from-field="parameters.refNumGift"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentRefNum"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentRefNum"> <field field="idx" type="int"/> <field field="refNum" type="String"/> <field field="authCode" type="String"/> @@ -469,7 +469,7 @@ <if-not-empty field="parameters.refNumCredit"> <set field="idx" from-field="payment"/> <set field="refNum" from-field="parameters.refNumCredit"/> - <call-object-method obj-field-name="webPosTransaction" method-name="setPaymentRefNum"> + <call-object-method obj-field="webPosTransaction" method-name="setPaymentRefNum"> <field field="idx" type="int"/> <field field="refNum" type="String"/> <field field="authCode" type="String"/> @@ -506,17 +506,17 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> <set field="payment" value="0" type="Integer"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <while> <condition> <if-compare-field field="payment" to-field="numPayments" operator="less"/> </condition> <then> - <call-object-method obj-field-name="webPosTransaction" method-name="getPaymentMethodTypeId" ret-field="paymentMethodTypeId"> + <call-object-method obj-field="webPosTransaction" method-name="getPaymentMethodTypeId" ret-field="paymentMethodTypeId"> <field field="payment" type="int"/> </call-object-method> <check-errors/> @@ -524,12 +524,12 @@ <if-not-empty field="parameters.clearCash"> <if-compare field="parameters.clearCash" value="Y" operator="equals"> <if-compare field="paymentMethodTypeId" value="CASH" operator="equals"> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="payment" type="int"/> </call-object-method> <check-errors/> <log level="info" message="Cleared CASH payment ${payment}"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <set field="payment" value="-1" type="Integer"/> </if-compare> @@ -538,12 +538,12 @@ <if-not-empty field="parameters.clearCheck"> <if-compare field="parameters.clearCheck" value="Y" operator="equals"> <if-compare field="paymentMethodTypeId" value="PERSONAL_CHECK" operator="equals"> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="payment" type="int"/> </call-object-method> <check-errors/> <log level="info" message="Cleared CHECK payment ${payment}"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <set field="payment" value="-1" type="Integer"/> </if-compare> @@ -552,12 +552,12 @@ <if-not-empty field="parameters.clearGift"> <if-compare field="parameters.clearGift" value="Y" operator="equals"> <if-compare field="paymentMethodTypeId" value="GIFT_CARD" operator="equals"> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="payment" type="int"/> </call-object-method> <check-errors/> <log level="info" message="Cleared GIFT CARD payment ${payment}"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <set field="payment" value="-1" type="Integer"/> </if-compare> @@ -566,12 +566,12 @@ <if-not-empty field="parameters.clearCredit"> <if-compare field="parameters.clearCredit" value="Y" operator="equals"> <if-compare field="paymentMethodTypeId" value="CREDIT_CARD" operator="equals"> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayment"> + <call-object-method obj-field="webPosTransaction" method-name="clearPayment"> <field field="payment" type="int"/> </call-object-method> <check-errors/> <log level="info" message="Cleared CREDIT CARD payment ${payment}"/> - <call-object-method obj-field-name="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/> <check-errors/> <set field="payment" value="-1" type="Integer"/> </if-compare> @@ -600,9 +600,9 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> - <call-object-method obj-field-name="webPosTransaction" method-name="clearPayments"/> + <call-object-method obj-field="webPosTransaction" method-name="clearPayments"/> <check-errors/> <log level="info" message="Cleared All Payments"/> <else> Modified: ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PromoEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PromoEvents.xml?rev=731797&r1=731796&r2=731797&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PromoEvents.xml (original) +++ ofbiz/trunk/specialpurpose/webpos/script/org/ofbiz/webpos/event/PromoEvents.xml Mon Jan 5 16:58:33 2009 @@ -26,12 +26,12 @@ <field field="posTerminalId" type="String"/> </call-class-method> <if-not-empty field="webPosSession"> - <call-object-method obj-field-name="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> + <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/> <check-errors/> - <call-object-method obj-field-name="webPosTransaction" method-name="isOpen" ret-field="isOpen"/> + <call-object-method obj-field="webPosTransaction" method-name="isOpen" ret-field="isOpen"/> <if-compare field="isOpen" operator="equals" value="true" type="String"> <set field="promoCode" from-field="parameters.promoCode"/> - <call-object-method obj-field-name="webPosTransaction" method-name="addProductPromoCode" ret-field="result"> + <call-object-method obj-field="webPosTransaction" method-name="addProductPromoCode" ret-field="result"> <field field="promoCode" type="String"/> </call-object-method> <check-errors/> |
Free forum by Nabble | Edit this page |