You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ar...@apache.org on 2026/06/26 08:52:06 UTC
(ofbiz-plugins) branch trunk updated: Removed the WebPOS plugin. The current WebPOS implementation appears to be based on an architectural approach that is no longer aligned with modern POS development practices (#304)
This is an automated email from the ASF dual-hosted git repository.
arunpati pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git
The following commit(s) were added to refs/heads/trunk by this push:
new d2c887bec Removed the WebPOS plugin. The current WebPOS implementation appears to be based on an architectural approach that is no longer aligned with modern POS development practices (#304)
d2c887bec is described below
commit d2c887beca87a4c8ea8eaea6ffb5193a413b45fd
Author: Arun Patidar <ar...@hotwax.co>
AuthorDate: Fri Jun 26 14:22:02 2026 +0530
Removed the WebPOS plugin. The current WebPOS implementation appears to be based on an architectural approach that is no longer aligned with modern POS development practices (#304)
Removed: The current WebPOS implementation appears to be based on an
architectural approach that is no longer aligned with modern POS
development practices.Instead of continuing to maintain WebPOS, the
community could focus on strengthening API capabilities and integration
patterns, enabling developers to build modern POS applications using the
frontend technology of their choice.
(OFBIZ-13445)
Co-authored-by: arunpatidar <ar...@apache.org>
---
webpos/config/WebPosUiLabels.xml | 1129 --------------------
webpos/data/DemoPosData.xml | 73 --
webpos/data/DemoRetail.xml | 115 --
webpos/data/PosSecurityData.xml | 43 -
webpos/data/PosSyncSettings.xml | 153 ---
webpos/data/PosTypeData.xml | 31 -
webpos/data/WebPosSecurityGroupDemoData.xml | 24 -
webpos/data/WebPosSecurityPermissionSeedData.xml | 27 -
webpos/entitydef/entitymodel.xml | 113 --
webpos/minilang/CartEvents.xml | 459 --------
webpos/minilang/CustomerEvents.xml | 37 -
webpos/minilang/ManagerEvents.xml | 388 -------
webpos/minilang/PaymentEvents.xml | 596 -----------
webpos/minilang/PromoEvents.xml | 50 -
webpos/ofbiz-component.xml | 57 -
webpos/servicedef/services.xml | 35 -
webpos/servicedef/services_cart.xml | 93 --
webpos/servicedef/services_customer.xml | 40 -
webpos/servicedef/services_manager.xml | 68 --
webpos/servicedef/services_payment.xml | 81 --
webpos/servicedef/services_promo.xml | 30 -
webpos/servicedef/services_search.xml | 46 -
.../groovy/org/apache/ofbiz/webpos/Login.groovy | 47 -
.../org/apache/ofbiz/webpos/WebPosMenus.groovy | 35 -
.../org/apache/ofbiz/webpos/WebPosSetup.groovy | 41 -
.../org/apache/ofbiz/webpos/cart/ShowCart.groovy | 77 --
.../apache/ofbiz/webpos/catalog/Category.groovy | 63 --
.../ofbiz/webpos/catalog/SideDeepCategory.groovy | 39 -
.../ofbiz/webpos/customer/EditAddress.groovy | 55 -
.../ofbiz/webpos/manager/PaidOutAndIn.groovy | 22 -
.../ofbiz/webpos/search/CustomerAddress.groovy | 51 -
.../ofbiz/webpos/search/SearchSalesReps.groovy | 26 -
.../java/org/apache/ofbiz/webpos/WebPosEvents.java | 250 -----
.../apache/ofbiz/webpos/search/WebPosSearch.java | 184 ----
.../apache/ofbiz/webpos/session/WebPosSession.java | 381 -------
.../webpos/transaction/WebPosTransaction.java | 519 ---------
webpos/template/ForgotPassword.ftl | 47 -
webpos/template/GetSecurityQuestion.ftl | 56 -
webpos/template/Login.ftl | 82 --
webpos/template/RequirePasswordChange.ftl | 63 --
webpos/template/cart/ChooseVariant.ftl | 77 --
webpos/template/cart/ShowCart.ftl | 150 ---
webpos/template/cart/ShowCartItemSelected.ftl | 75 --
webpos/template/catalog/CategoryDetail.ftl | 68 --
webpos/template/catalog/SideDeepCategory.ftl | 82 --
webpos/template/customer/EditAddress.ftl | 98 --
webpos/template/includes/Header.ftl | 56 -
webpos/template/includes/Messages.ftl | 66 --
webpos/template/manager/CloseTerminal.ftl | 57 -
webpos/template/manager/OpenTerminal.ftl | 41 -
webpos/template/manager/PaidOutAndIn.ftl | 68 --
webpos/template/manager/VoidOrder.ftl | 41 -
webpos/template/payment/PayCash.ftl | 54 -
webpos/template/payment/PayCheck.ftl | 56 -
webpos/template/payment/PayCreditCard.ftl | 151 ---
webpos/template/payment/PayGiftCard.ftl | 56 -
webpos/template/promo/PromoCode.ftl | 41 -
webpos/template/search/CustomerAddress.ftl | 121 ---
webpos/template/search/SearchParties.ftl | 34 -
webpos/template/search/SearchPartiesResults.ftl | 87 --
webpos/template/search/SearchProducts.ftl | 39 -
webpos/template/search/SearchProductsResults.ftl | 68 --
webpos/template/search/SearchSalesReps.ftl | 60 --
webpos/template/shortcuts/Shortcuts.ftl | 97 --
webpos/webapp/webpos/WEB-INF/controller.xml | 535 ----------
webpos/webapp/webpos/WEB-INF/web.xml | 124 ---
webpos/webapp/webpos/images/js/CategoryDetail.js | 34 -
webpos/webapp/webpos/images/js/ChooseVariant.js | 295 -----
webpos/webapp/webpos/images/js/CloseTerminal.js | 137 ---
webpos/webapp/webpos/images/js/Common.js | 221 ----
webpos/webapp/webpos/images/js/EditAddress.js | 102 --
webpos/webapp/webpos/images/js/OpenTerminal.js | 83 --
webpos/webapp/webpos/images/js/PaidOutAndIn.js | 110 --
webpos/webapp/webpos/images/js/PayCash.js | 117 --
webpos/webapp/webpos/images/js/PayCheck.js | 130 ---
webpos/webapp/webpos/images/js/PayCreditCard.js | 241 -----
webpos/webapp/webpos/images/js/PayFinish.js | 50 -
webpos/webapp/webpos/images/js/PayGiftCard.js | 130 ---
webpos/webapp/webpos/images/js/PromoCode.js | 83 --
webpos/webapp/webpos/images/js/SearchParties.js | 229 ----
.../webpos/images/js/SearchPartiesResults.js | 198 ----
webpos/webapp/webpos/images/js/SearchProducts.js | 75 --
.../webpos/images/js/SearchProductsResults.js | 130 ---
webpos/webapp/webpos/images/js/SearchSalesReps.js | 81 --
webpos/webapp/webpos/images/js/Shortcuts.js | 55 -
webpos/webapp/webpos/images/js/ShowCart.js | 66 --
.../webpos/images/js/ShowCartItemSelected.js | 176 ---
webpos/webapp/webpos/images/js/SideDeepCategory.js | 22 -
webpos/webapp/webpos/images/js/VoidOrder.js | 83 --
webpos/webapp/webpos/images/js/WebPosHotkeys.js | 8 -
.../webpos/images/js/jquery.hotkeys-0.7.9.min.js | 19 -
webpos/webapp/webpos/images/webpos.css | 434 --------
webpos/webapp/webpos/index.jsp | 19 -
webpos/widget/CartScreens.xml | 98 --
webpos/widget/CatalogScreens.xml | 76 --
webpos/widget/CommonScreens.xml | 300 ------
webpos/widget/CustomerScreens.xml | 53 -
webpos/widget/ManagerScreens.xml | 80 --
webpos/widget/PaymentScreens.xml | 75 --
webpos/widget/PromoScreens.xml | 37 -
webpos/widget/SearchScreens.xml | 121 ---
webpos/widget/ShortcutsScreens.xml | 54 -
webpos/widget/WebPosMenus.xml | 62 --
webpos/widget/WebPosScreens.xml | 79 --
104 files changed, 12491 deletions(-)
diff --git a/webpos/config/WebPosUiLabels.xml b/webpos/config/WebPosUiLabels.xml
deleted file mode 100644
index 79695e22e..000000000
--- a/webpos/config/WebPosUiLabels.xml
+++ /dev/null
@@ -1,1129 +0,0 @@
-<?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" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/ofbiz-properties.xsd">
- <property key="WebPosAdjustments">
- <value xml:lang="en">Adjustments</value>
- <value xml:lang="fr">Ajustements</value>
- <value xml:lang="it">Aggiustamenti</value>
- <value xml:lang="ja">調整</value>
- <value xml:lang="zh">调整</value>
- <value xml:lang="zh-TW">調整</value>
- </property>
- <property key="WebPosBillingAddress">
- <value xml:lang="en">Billing Address</value>
- <value xml:lang="it">Indirizzo di fatturazione</value>
- <value xml:lang="ja">請求先住所</value>
- <value xml:lang="zh">寄账单地址</value>
- <value xml:lang="zh-TW">寄帳單位址</value>
- </property>
- <property key="WebPosBillingOrShippingLocationMissing">
- <value xml:lang="en">Billing or Shipping Location Missing</value>
- <value xml:lang="it">Indirizzo di fatturazione o spedizione mancante</value>
- <value xml:lang="ja">請求先または発送先の場所が正しくありません</value>
- <value xml:lang="zh">缺少寄账单或送货地址</value>
- <value xml:lang="zh-TW">缺少寄帳單或送貨位址</value>
- </property>
- <property key="WebPosCart">
- <value xml:lang="en">Cart</value>
- <value xml:lang="fr">Panier du Point de vente</value>
- <value xml:lang="it">Carrello</value>
- <value xml:lang="ja">POSかご</value>
- <value xml:lang="zh">收银机购物车</value>
- <value xml:lang="zh-TW">收銀機購物車</value>
- </property>
- <property key="WebPosCartItemSelected">
- <value xml:lang="en">Cart Item Selected</value>
- <value xml:lang="it">Riga carello selezionata</value>
- <value xml:lang="ja">選択された買い物かごのアイテム</value>
- <value xml:lang="zh">所选的购物车明细</value>
- <value xml:lang="zh-TW">所選的購物車細項</value>
- </property>
- <property key="WebPosChooseTerminal">
- <value xml:lang="en">Choose Terminal</value>
- <value xml:lang="fr">Choisir la caisse</value>
- <value xml:lang="it">Scegli terminale</value>
- <value xml:lang="ja">端末の選択</value>
- <value xml:lang="zh">选择终端</value>
- <value xml:lang="zh-TW">選擇終端</value>
- </property>
- <property key="WebPosCompanyName">
- <value xml:lang="en">OFBiz: Web Pos Manager</value>
- <value xml:lang="it">OFBiz: Gestione Pos Web</value>
- <value xml:lang="ja">OFBiz: Web POS 管理</value>
- <value xml:lang="zh">OFBiz:网页POS管理程序</value>
- <value xml:lang="zh-TW">OFBiz:網頁POS管理程式</value>
- </property>
- <property key="WebPosCompanySubtitle">
- <value xml:lang="en">Part of the Apache OFBiz Family of Open Source Software</value>
- <value xml:lang="it">Parte della famiglia Apache OFBiz di Open Source Software</value>
- <value xml:lang="ja">Part of the Apache OFBiz Family of Open Source Software</value>
- <value xml:lang="zh">开源软件OFBiz的组成部分</value>
- <value xml:lang="zh-TW">開源軟體OFBiz的組成部分</value>
- </property>
- <property key="WebPosCompleteSale">
- <value xml:lang="en">Press Finish To Complete Sale</value>
- <value xml:lang="fr">Choisir Finaliser pour terminer la vente</value>
- <value xml:lang="it">Premere TERMINA per completare la vendita</value>
- <value xml:lang="ja">完了を押して販売を完了</value>
- <value xml:lang="zh">按结束完成销售</value>
- <value xml:lang="zh-TW">按結束完成銷售</value>
- </property>
- <property key="WebPosDrawer">
- <value xml:lang="en">Till</value>
- <value xml:lang="fr">Caisse</value>
- <value xml:lang="it">Cassa</value>
- <value xml:lang="ja">レジスタ</value>
- <value xml:lang="zh">备用金</value>
- <value xml:lang="zh-TW">備用金</value>
- </property>
- <property key="WebPosEditAddress">
- <value xml:lang="en">Edit address</value>
- <value xml:lang="it">Aggiorna indirizzo</value>
- <value xml:lang="ja">住所の編集</value>
- <value xml:lang="zh">编辑地址</value>
- <value xml:lang="zh-TW">編輯位址</value>
- </property>
- <property key="WebPosEmployee">
- <value xml:lang="en">Employee</value>
- <value xml:lang="fr">Employé</value>
- <value xml:lang="it">Impiegato</value>
- <value xml:lang="ja">従業員</value>
- <value xml:lang="zh">雇员</value>
- <value xml:lang="zh-TW">員工</value>
- </property>
- <property key="WebPosItemTotal">
- <value xml:lang="en">Item Total</value>
- <value xml:lang="fr">Total ligne</value>
- <value xml:lang="it">Totale riga</value>
- <value xml:lang="ja">アイテム合計</value>
- <value xml:lang="zh">明细合计</value>
- <value xml:lang="zh-TW">細項合計</value>
- </property>
- <property key="WebPosManagerCloseTerminal">
- <value xml:lang="en">Close Terminal</value>
- <value xml:lang="fr">FERMER CAISSE</value>
- <value xml:lang="it">Chiudi terminale</value>
- <value xml:lang="ja">端末をクローズ</value>
- <value xml:lang="zh">关闭终端</value>
- <value xml:lang="zh-TW">關閉終端</value>
- </property>
- <property key="WebPosManagerCloseTerminalCashAmount">
- <value xml:lang="en">Enter Cash Amount</value>
- <value xml:lang="fr">Saisir le montant en espèces</value>
- <value xml:lang="it">Inserire importo in contanti</value>
- <value xml:lang="ja">現金金額を入力:</value>
- <value xml:lang="zh">输入现金金额:</value>
- <value xml:lang="zh-TW">輸入現金金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalCashAmountNotValid">
- <value xml:lang="en">Enter a valid cash amount</value>
- <value xml:lang="fr">Saisir un montant valide pour les espèces</value>
- <value xml:lang="it">Inserire un'importo in contanti valido</value>
- <value xml:lang="ja">有効な現金金額を入力:</value>
- <value xml:lang="zh">输入一个有效的现金金额:</value>
- <value xml:lang="zh-TW">輸入一個有效的現金金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalCcAmount">
- <value xml:lang="en">Enter Credit Card Amount</value>
- <value xml:lang="fr">Saisir le montant en carte bancaire</value>
- <value xml:lang="it">Inserire importo con carte di credito</value>
- <value xml:lang="ja">クレジットカード金額を入力:</value>
- <value xml:lang="zh">输入信用卡金额:</value>
- <value xml:lang="zh-TW">輸入信用卡金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalCcAmountNotValid">
- <value xml:lang="en">Enter a valid credit card amount</value>
- <value xml:lang="fr">Saisir un montant valide pour les cartes bancaires</value>
- <value xml:lang="it">Inserire un'importo con carte di credito valido</value>
- <value xml:lang="ja">有効なクレジットカード金額を入力:</value>
- <value xml:lang="zh">输入一个有效的信用卡金额:</value>
- <value xml:lang="zh-TW">輸入一個有效的信用卡金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalCheckAmount">
- <value xml:lang="en">Enter Check Amount</value>
- <value xml:lang="fr">Saisir le montant en chèque</value>
- <value xml:lang="it">Inserire importo in assegni</value>
- <value xml:lang="ja">小切手金額を入力:</value>
- <value xml:lang="zh">输入支票金额:</value>
- <value xml:lang="zh-TW">輸入支票金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalCheckAmountNotValid">
- <value xml:lang="en">Enter a valid check amount</value>
- <value xml:lang="fr">Saisir un montant valide pour les chèques</value>
- <value xml:lang="it">Inserire un'importo in assegni valido</value>
- <value xml:lang="ja">有効な小切手金額を入力:</value>
- <value xml:lang="zh">输入一个有效的支票金额:</value>
- <value xml:lang="zh-TW">輸入一個有效的支票金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalGcAmounNotValidt">
- <value xml:lang="en">Enter a valid gift card amount</value>
- <value xml:lang="fr">Saisir un montant valide pour les bons d'achat</value>
- <value xml:lang="it">Inserire un'importo con carte regalo valido</value>
- <value xml:lang="ja">有効なギフトカード金額を入力:</value>
- <value xml:lang="zh">输入一个有效的礼品卡金额:</value>
- <value xml:lang="zh-TW">輸入一個有效的禮物卡金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalGcAmount">
- <value xml:lang="en">Enter Gift Card Amount</value>
- <value xml:lang="fr">Saisir le montant en bon d'achat</value>
- <value xml:lang="it">Inserire importo con carte regalo</value>
- <value xml:lang="ja">ギフトカード金額を入力:</value>
- <value xml:lang="zh">输入礼品卡金额:</value>
- <value xml:lang="zh-TW">輸入禮物卡金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalOtherAmount">
- <value xml:lang="en">Enter Other Payment Amount</value>
- <value xml:lang="fr">Saisir le montant avec un autre moyen de paiement</value>
- <value xml:lang="it">Inserire importo con altri pagamenti</value>
- <value xml:lang="ja">その他支払金額を入力:</value>
- <value xml:lang="zh">输入其它支付金额:</value>
- <value xml:lang="zh-TW">輸入其它支付金額:</value>
- </property>
- <property key="WebPosManagerCloseTerminalOtherAmountNotValid">
- <value xml:lang="en">Enter a valid other payment amount</value>
- <value xml:lang="fr">Saisir un montant valide pour les autres moyens de paiements</value>
- <value xml:lang="it">Inserire un'importo con altri pagamenti valido</value>
- <value xml:lang="ja">有効なその他支払金額を入力:</value>
- <value xml:lang="zh">输入一个有效的其它支付金额:</value>
- <value xml:lang="zh-TW">輸入一個有效的其它支付金額:</value>
- </property>
- <property key="WebPosManagerModifyPriceNewPrice">
- <value xml:lang="en">New price</value>
- <value xml:lang="fr">Saisir le nouveau prix</value>
- <value xml:lang="it">Nuovo prezzo</value>
- <value xml:lang="ja">新しい価格を入力</value>
- <value xml:lang="zh">输入新价格</value>
- <value xml:lang="zh-TW">輸入新價格</value>
- </property>
- <property key="WebPosManagerModifyPriceNotValidPrice">
- <value xml:lang="en">Enter a new valid price</value>
- <value xml:lang="fr">Saisir un nouveau prix valide</value>
- <value xml:lang="it">Inserire un nuovo prezzo valido</value>
- <value xml:lang="ja">有効な新しい価格を入力</value>
- <value xml:lang="zh">输入一个新的有效价格</value>
- <value xml:lang="zh-TW">輸入一個新的有效價格</value>
- </property>
- <property key="WebPosManagerOpenTerminal">
- <value xml:lang="en">Open Terminal</value>
- <value xml:lang="fr">OUVRIR CAISSE</value>
- <value xml:lang="it">Apri terminale</value>
- <value xml:lang="ja">端末をオープンする</value>
- <value xml:lang="zh">打开终端</value>
- <value xml:lang="zh-TW">打開終端</value>
- </property>
- <property key="WebPosManagerOpenTerminalDrawingAmount">
- <value xml:lang="en">Starting Drawer Amount</value>
- <value xml:lang="fr">Apport dans la caisse</value>
- <value xml:lang="it">Importo iniziale cassa</value>
- <value xml:lang="ja">当初レジスタ金額を入力</value>
- <value xml:lang="zh">起始钱箱金额:</value>
- <value xml:lang="zh-TW">起始錢箱金額:</value>
- </property>
- <property key="WebPosManagerOpenTerminalDrawingAmountNotValid">
- <value xml:lang="en">Insert a valid starting drawer amount</value>
- <value xml:lang="fr">Saisir un montant d'apport valide</value>
- <value xml:lang="it">Inserire un'importo iniziale cassa valido</value>
- <value xml:lang="ja">有効な当初レジスタ金額を入力</value>
- <value xml:lang="zh">插入一个有效的起始钱箱金额:</value>
- <value xml:lang="zh-TW">插入一個有效的起始錢箱金額:</value>
- </property>
- <property key="WebPosManagerPaidIn">
- <value xml:lang="en">Paid In</value>
- <value xml:lang="fr">APPORT</value>
- <value xml:lang="it">Pagamento in entrata</value>
- <value xml:lang="ja">入金済</value>
- <value xml:lang="zh">收款</value>
- <value xml:lang="zh-TW">收款</value>
- </property>
- <property key="WebPosManagerPaidInAmount">
- <value xml:lang="en">Enter amount to paid in</value>
- <value xml:lang="fr">Saisir un apport valide</value>
- <value xml:lang="it">Inserire l'importo del pagamento in ingresso</value>
- <value xml:lang="ja">入金金額を入力</value>
- <value xml:lang="zh">输入收取的金额</value>
- <value xml:lang="zh-TW">輸入收取的金額</value>
- </property>
- <property key="WebPosManagerPaidOut">
- <value xml:lang="en">Paid Out</value>
- <value xml:lang="fr">RETRAIT</value>
- <value xml:lang="it">Pagamento in uscita</value>
- <value xml:lang="ja">支払済</value>
- <value xml:lang="zh">找零</value>
- <value xml:lang="zh-TW">找零</value>
- </property>
- <property key="WebPosManagerPaidOutAmount">
- <value xml:lang="en">Enter amount to withdraw</value>
- <value xml:lang="fr">Saisir un montant à retirer</value>
- <value xml:lang="it">Inserire l'importo del pagamento in uscita</value>
- <value xml:lang="ja">レジスタに入れた金額を入力</value>
- <value xml:lang="zh">输入撤销的金额</value>
- <value xml:lang="zh-TW">輸入撤銷的金額</value>
- </property>
- <property key="WebPosManagerPaidOutAndInWithoutOpenedTransaction">
- <value xml:lang="en">Cannot Paid Out and In without an opened transaction</value>
- <value xml:lang="fr">Il n'est pas possible d'ajouter ou retirer sans une transaction ouverte</value>
- <value xml:lang="it">Non è possibile pagare in ingresso o uscita senza una transazione aperta</value>
- <value xml:lang="ja">実行中のトランザクションがないため支払および入金できません</value>
- <value xml:lang="zh">没有一个开放的交易,不能收钱和找零</value>
- <value xml:lang="zh-TW">沒有一個開放的交易,不能收錢和找零</value>
- </property>
- <property key="WebPosManagerPaidOutAndIndAmountNotValid">
- <value xml:lang="en">Enter a valid amount</value>
- <value xml:lang="fr">Saisir un montant valide</value>
- <value xml:lang="it">Inserire un'importo valido</value>
- <value xml:lang="ja">有効な金額を入力</value>
- <value xml:lang="zh">输入一个有效的金额</value>
- <value xml:lang="zh-TW">輸入一個有效的金額</value>
- </property>
- <property key="WebPosManagerPaidOutAndIndReason">
- <value xml:lang="en">You have to choose a reason</value>
- <value xml:lang="fr">Vous devez choisir une raison</value>
- <value xml:lang="it">Tu devi scegliere la motivazione</value>
- <value xml:lang="ja">理由を選択してください</value>
- <value xml:lang="zh">你必须选择一个原因</value>
- <value xml:lang="zh-TW">你必須選擇一個原因</value>
- </property>
- <property key="WebPosManagerPaidOutAndIndReasonComment">
- <value xml:lang="en">You can insert a comment</value>
- <value xml:lang="fr">Vous pouvez ajouter un commentaire</value>
- <value xml:lang="it">Tu puoi inserire un commento</value>
- <value xml:lang="ja">コメントを入力することができます</value>
- <value xml:lang="zh">你能插入一个评论</value>
- <value xml:lang="zh-TW">你能插入一個評論</value>
- </property>
- <property key="WebPosManagerPromoCode">
- <value xml:lang="en">Promo</value>
- <value xml:lang="fr">PROMOTION</value>
- <value xml:lang="it">Promozione</value>
- <value xml:lang="ja">プロモーション</value>
- <value xml:lang="zh">促销</value>
- <value xml:lang="zh-TW">促銷</value>
- </property>
- <property key="WebPosManagerShutdown">
- <value xml:lang="en">Shutdown</value>
- <value xml:lang="fr">ETEINDRE</value>
- <value xml:lang="it">Chiudi</value>
- <value xml:lang="ja">シャットダウン</value>
- <value xml:lang="zh">关机</value>
- <value xml:lang="zh-TW">關機</value>
- </property>
- <property key="WebPosManagerTerminalAlreadyClosed">
- <value xml:lang="en">Terminal already closed</value>
- <value xml:lang="fr">Caisse déjà fermée</value>
- <value xml:lang="it">Terminale già chiuso</value>
- <value xml:lang="ja">端末はすでにクローズされています</value>
- <value xml:lang="zh">终端已关闭</value>
- <value xml:lang="zh-TW">終端已關閉</value>
- </property>
- <property key="WebPosManagerTerminalAlreadyOpened">
- <value xml:lang="en">Terminal already opened</value>
- <value xml:lang="fr">Caisse déjà ouverte</value>
- <value xml:lang="it">Terminale già aperto</value>
- <value xml:lang="ja">端末はすでにオープンされています</value>
- <value xml:lang="zh">终端已打开</value>
- <value xml:lang="zh-TW">終端已打開</value>
- </property>
- <property key="WebPosManagerVoidOrder">
- <value xml:lang="en">Void Order</value>
- <value xml:lang="fr">ANNULER COMMANDE</value>
- <value xml:lang="it">Reso ordine</value>
- <value xml:lang="ja">無効にする注文Noを入力:</value>
- <value xml:lang="zh">空订单</value>
- <value xml:lang="zh-TW">空訂單</value>
- </property>
- <property key="WebPosManagerVoidOrderNotValidDate">
- <value xml:lang="en">Order ${parameters.orderId} has a date ${orderDate} that is before ${openDate}</value>
- <value xml:lang="fr">La commande ${parameters.orderId} a une date ${orderDate} inférieure à ${openDate}</value>
- <value xml:lang="it">L'ordine ${parameters.orderId} ha una data ${orderDate} che è prima del ${openDate}</value>
- <value xml:lang="ja">注文 ${parameters.orderId} の日付 ${orderDate} は ${openDate} より前です</value>
- <value xml:lang="zh">订单${parameters.orderId}有一个日期${orderDate}早于${openDate}</value>
- <value xml:lang="zh-TW">訂單${parameters.orderId}有一個日期${orderDate}早于${openDate}</value>
- </property>
- <property key="WebPosManagerVoidOrderNotValidOrderId">
- <value xml:lang="en">Order ${parameters.orderId} not found</value>
- <value xml:lang="fr">Commande ${parameters.orderId} non trouvée</value>
- <value xml:lang="it">L'ordine ${parameters.orderId} non esiste</value>
- <value xml:lang="ja">注文 ${parameters.orderId} が見つかりません</value>
- <value xml:lang="zh">没有找到订单${parameters.orderId}</value>
- <value xml:lang="zh-TW">沒有找到訂單${parameters.orderId}</value>
- </property>
- <property key="WebPosManagerVoidOrderNumber">
- <value xml:lang="en">Enter Order Number To Void</value>
- <value xml:lang="fr">Saisr le n° de commande à annuler</value>
- <value xml:lang="it">Inserire numero ordine per reso</value>
- <value xml:lang="ja">無効にする注文Noを入力</value>
- <value xml:lang="zh">输入订单编号无效:</value>
- <value xml:lang="zh-TW">輸入要作廢的訂單識別:</value>
- </property>
- <property key="WebPosManagerVoidOrderTerminalNotOpened">
- <value xml:lang="en">Terminal is not opened</value>
- <value xml:lang="fr">La caisse est fermée</value>
- <value xml:lang="it">Il terminale non è aperto</value>
- <value xml:lang="ja">端末がオープンされていません</value>
- <value xml:lang="zh">终端没有打开</value>
- <value xml:lang="zh-TW">終端沒有打開</value>
- </property>
- <property key="WebPosMenuMain">
- <value xml:lang="en">Main</value>
- <value xml:lang="fr">VENTE</value>
- <value xml:lang="it">Principale</value>
- <value xml:lang="ja">メイン</value>
- <value xml:lang="zh">首页</value>
- <value xml:lang="zh-TW">首頁</value>
- </property>
- <property key="WebPosMenuManager">
- <value xml:lang="en">Manager</value>
- <value xml:lang="fr">RESP.</value>
- <value xml:lang="it">Responsabile</value>
- <value xml:lang="ja">管理者</value>
- <value xml:lang="zh">经理</value>
- <value xml:lang="zh-TW">經理</value>
- </property>
- <property key="WebPosNoPartyInformation">
- <value xml:lang="en">No Party Information</value>
- <value xml:lang="it">Nessuna informazione soggetto</value>
- <value xml:lang="ja">取引先情報がありません</value>
- <value xml:lang="zh">没有会员信息</value>
- <value xml:lang="zh-TW">沒有團體資訊</value>
- </property>
- <property key="WebPosNotEnoughFunds">
- <value xml:lang="en">You did not provide enough funds to complete this sale</value>
- <value xml:lang="it">Tu non hai fornito abbastanza fondi per completare questa vendita</value>
- <value xml:lang="ja">この売上を完了する十分な資金がありません</value>
- <value xml:lang="zh">你没有提供足够的金额来完成这个销售</value>
- <value xml:lang="zh-TW">你沒有提供足夠的金額來完成這個銷售</value>
- </property>
- <property key="WebPosNotLoggedIn">
- <value xml:lang="en">You must be logged in</value>
- <value xml:lang="fr">Vous devez être connecté</value>
- <value xml:lang="it">Tu devi essere autenticato</value>
- <value xml:lang="ja">ログインする必要があります</value>
- <value xml:lang="zh">你必须登录</value>
- <value xml:lang="zh-TW">你必須登入</value>
- </property>
- <property key="WebPosNotManagerLoggedIn">
- <value xml:lang="en">To open terminal is mandatory that a manager is logged in</value>
- <value xml:lang="fr">Pour ouvrir la caisse, il est obligatoire qu'un reponsable se connecte</value>
- <value xml:lang="it">Per aprire il terminale e' obbligatorio autenticarsi con un manager</value>
- <value xml:lang="ja">管理者がログインして端末をオープンする必要があります</value>
- <value xml:lang="zh">要打开终端,必须经理登录</value>
- <value xml:lang="zh-TW">要打開終端,必須經理登入</value>
- </property>
- <property key="WebPosPageTitleCloseTerminal">
- <value xml:lang="en">Close Terminal</value>
- <value xml:lang="fr">Fermer la caisse</value>
- <value xml:lang="it">Chiudi Terminale</value>
- <value xml:lang="ja">端末をクローズする</value>
- <value xml:lang="zh">关闭终端</value>
- <value xml:lang="zh-TW">關閉終端</value>
- </property>
- <property key="WebPosPageTitleManager">
- <value xml:lang="en">Manager</value>
- <value xml:lang="it">Responsabile</value>
- <value xml:lang="ja">管理者</value>
- <value xml:lang="zh">管理程序</value>
- <value xml:lang="zh-TW">管理程式</value>
- </property>
- <property key="WebPosPageTitleModifyPrice">
- <value xml:lang="en">Modify Price</value>
- <value xml:lang="fr">Modifier un prix</value>
- <value xml:lang="it">Modifica Prezzo</value>
- <value xml:lang="ja">価格を変更</value>
- <value xml:lang="zh">修改价格</value>
- <value xml:lang="zh-TW">修改價格</value>
- </property>
- <property key="WebPosPageTitleOpenTerminal">
- <value xml:lang="en">Open Terminal</value>
- <value xml:lang="fr">Ouvrir la caisse</value>
- <value xml:lang="it">Apri Terminale</value>
- <value xml:lang="ja">端末をオープンする</value>
- <value xml:lang="zh">打开终端</value>
- <value xml:lang="zh-TW">打開終端</value>
- </property>
- <property key="WebPosPageTitlePaidOutAndIn">
- <value xml:lang="en">Paid Out And In</value>
- <value xml:lang="fr">Mouvements de caisse</value>
- <value xml:lang="it">Pagamento in Uscita o in Entrata</value>
- <value xml:lang="ja">支払および入金</value>
- <value xml:lang="zh">收钱和找零</value>
- <value xml:lang="zh-TW">收錢和找零</value>
- </property>
- <property key="WebPosPageTitlePayCash">
- <value xml:lang="en">Pay Cash</value>
- <value xml:lang="fr">Payer en espèces</value>
- <value xml:lang="it">Pagamento in Contanti</value>
- <value xml:lang="ja">現金支払</value>
- <value xml:lang="zh">现金支付</value>
- <value xml:lang="zh-TW">現金支付</value>
- </property>
- <property key="WebPosPageTitlePayCheck">
- <value xml:lang="de">Lohnzahlung</value>
- <value xml:lang="en">Pay Check</value>
- <value xml:lang="fr">Payer en chèque</value>
- <value xml:lang="it">Pagamento con Assegno</value>
- <value xml:lang="ja">小切手支払</value>
- <value xml:lang="zh">支票支付</value>
- <value xml:lang="zh-TW">支票支付</value>
- </property>
- <property key="WebPosPageTitlePayCreditCard">
- <value xml:lang="en">Pay Credit Card</value>
- <value xml:lang="fr">Payer en carte bancaire</value>
- <value xml:lang="it">Pagamento con Carta di Credito</value>
- <value xml:lang="ja">クレジットカード支払</value>
- <value xml:lang="zh">信用卡支付</value>
- <value xml:lang="zh-TW">信用卡支付</value>
- </property>
- <property key="WebPosPageTitlePayGiftCard">
- <value xml:lang="en">Pay Gift Card</value>
- <value xml:lang="fr">Payer en bon d'achat</value>
- <value xml:lang="it">Pagamento con Carta Regalo</value>
- <value xml:lang="ja">ギフトカード支払</value>
- <value xml:lang="zh">礼品卡支付</value>
- <value xml:lang="zh-TW">禮物卡支付</value>
- </property>
- <property key="WebPosPageTitlePayment">
- <value xml:lang="en">Payment</value>
- <value xml:lang="it">Pagamenti</value>
- <value xml:lang="ja">支払</value>
- <value xml:lang="zh">支付</value>
- <value xml:lang="zh-TW">支付</value>
- </property>
- <property key="WebPosPageTitlePromoCode">
- <value xml:lang="en">Promo Code</value>
- <value xml:lang="fr">Code promotion</value>
- <value xml:lang="it">Codice promozione</value>
- <value xml:lang="ja">プロモーションコード</value>
- <value xml:lang="zh">促销代码</value>
- <value xml:lang="zh-TW">促銷代碼</value>
- </property>
- <property key="WebPosPageTitleVoidOrder">
- <value xml:lang="en">Void Order</value>
- <value xml:lang="fr">Annuler une commande</value>
- <value xml:lang="it">Reso Ordine</value>
- <value xml:lang="ja">無効注文</value>
- <value xml:lang="zh">空订单</value>
- <value xml:lang="zh-TW">空訂單</value>
- </property>
- <property key="WebPosPayCash">
- <value xml:lang="en">Cash amount</value>
- <value xml:lang="fr">Montant espèces</value>
- <value xml:lang="it">Importo in contanti</value>
- <value xml:lang="ja">現金金額</value>
- <value xml:lang="zh">现金金额</value>
- <value xml:lang="zh-TW">現金金額</value>
- </property>
- <property key="WebPosPayCashGreaterThanTotalDue">
- <value xml:lang="en">Amount in cash is greater than total due</value>
- <value xml:lang="it">L'importo in contanti è maggiore dell'importo dovuto</value>
- <value xml:lang="ja">現金金額が合計額より多い</value>
- <value xml:lang="zh">现金金额大于应付合计</value>
- <value xml:lang="zh-TW">現金金額大於應付合計</value>
- </property>
- <property key="WebPosPayCashNotValidAmount">
- <value xml:lang="en">Insert a valid cash amount</value>
- <value xml:lang="fr">Saisir un montant en espèces valide</value>
- <value xml:lang="it">Inserire un'importo in contanti valido</value>
- <value xml:lang="ja">有効な現金金額を入力</value>
- <value xml:lang="zh">插入一个有效的现金金额</value>
- <value xml:lang="zh-TW">插入一個有效的現金金額</value>
- </property>
- <property key="WebPosPayCashTotal">
- <value xml:lang="en">Total already in cash</value>
- <value xml:lang="it">Importo già in contanti</value>
- <value xml:lang="ja">全額現金で支払</value>
- <value xml:lang="zh">合计已经付现金</value>
- <value xml:lang="zh-TW">合計已經付現金</value>
- </property>
- <property key="WebPosPayCheck">
- <value xml:lang="en">Check amount</value>
- <value xml:lang="fr">Valeur chèque</value>
- <value xml:lang="it">Importo con assegno</value>
- <value xml:lang="ja">小切手金額</value>
- <value xml:lang="zh">支票金额</value>
- <value xml:lang="zh-TW">支票金額</value>
- </property>
- <property key="WebPosPayCheckGreaterThanTotalDue">
- <value xml:lang="en">Amount with check is greater than total due</value>
- <value xml:lang="it">L'importo con assegni è maggiore dell'importo dovuto</value>
- <value xml:lang="ja">小切手金額が合計額より多い</value>
- <value xml:lang="zh">支票金额大于应付合计</value>
- <value xml:lang="zh-TW">支票金額大於應付合計</value>
- </property>
- <property key="WebPosPayCheckNotValidAmount">
- <value xml:lang="en">Insert a valid check amount</value>
- <value xml:lang="fr">Saisir une valeur de chèque valide</value>
- <value xml:lang="it">Inserire un'importo con assegni valido</value>
- <value xml:lang="ja">有効な小切手金額</value>
- <value xml:lang="zh">插入一个有效的支票金额</value>
- <value xml:lang="zh-TW">插入一個有效的支票金額</value>
- </property>
- <property key="WebPosPayCheckRefNum">
- <value xml:lang="en">Check ref. num .</value>
- <value xml:lang="fr">Réf. du chèque</value>
- <value xml:lang="it">Rif. Num.</value>
- <value xml:lang="ja">小切手照会番号</value>
- <value xml:lang="zh">支票引用号</value>
- <value xml:lang="zh-TW">支票參考號</value>
- </property>
- <property key="WebPosPayCheckTotal">
- <value xml:lang="en">Already pay with check</value>
- <value xml:lang="it">Già pagato con assegni</value>
- <value xml:lang="ja">小切手で支払</value>
- <value xml:lang="zh">已经用支票支付</value>
- <value xml:lang="zh-TW">已經用支票支付</value>
- </property>
- <property key="WebPosPayCreditCard">
- <value xml:lang="en">Credit card amount</value>
- <value xml:lang="fr">Montant carte bancaire</value>
- <value xml:lang="it">Importo con carta credito</value>
- <value xml:lang="ja">クレジットカード金額</value>
- <value xml:lang="zh">信用卡金额</value>
- <value xml:lang="zh-TW">信用卡金額</value>
- </property>
- <property key="WebPosPayCreditCardExp">
- <value xml:lang="en">Credit card expiring</value>
- <value xml:lang="fr">Date d'expiration de la carte bancaire</value>
- <value xml:lang="it">Scadenza carta di credito</value>
- <value xml:lang="ja">クレジットカード有効期限</value>
- <value xml:lang="zh">信用卡过期</value>
- <value xml:lang="zh-TW">信用卡過期</value>
- </property>
- <property key="WebPosPayCreditCardFirstName">
- <value xml:lang="en">First Name</value>
- <value xml:lang="fr">Prénom</value>
- <value xml:lang="it">Nome</value>
- <value xml:lang="ja">名(FN)</value>
- <value xml:lang="zh">名</value>
- <value xml:lang="zh-TW">名</value>
- </property>
- <property key="WebPosPayCreditCardFirstNameEmpty">
- <value xml:lang="en">First Name is empty</value>
- <value xml:lang="it">Inserire il nome</value>
- <value xml:lang="ja">名(FN)が空です</value>
- <value xml:lang="zh">名是空的</value>
- <value xml:lang="zh-TW">名是空的</value>
- </property>
- <property key="WebPosPayCreditCardGreaterThanTotalDue">
- <value xml:lang="en">Amount with credit card is greater than total due</value>
- <value xml:lang="it">L'importo con carte di credito è maggiore dell'importo dovuto</value>
- <value xml:lang="ja">クレジットカード金額が合計額より多い</value>
- <value xml:lang="zh">信用卡金额大于应付合计</value>
- <value xml:lang="zh-TW">信用卡金額大於應付合計</value>
- </property>
- <property key="WebPosPayCreditCardLastName">
- <value xml:lang="en">Last Name</value>
- <value xml:lang="fr">Nom</value>
- <value xml:lang="it">Cognome</value>
- <value xml:lang="ja">姓(LN)</value>
- <value xml:lang="zh">姓</value>
- <value xml:lang="zh-TW">姓</value>
- </property>
- <property key="WebPosPayCreditCardLastNameEmpty">
- <value xml:lang="en">Last Name is empty</value>
- <value xml:lang="it">Inserire il cognome</value>
- <value xml:lang="ja">姓(LN)が空です</value>
- <value xml:lang="zh">姓是空的</value>
- <value xml:lang="zh-TW">姓是空的</value>
- </property>
- <property key="WebPosPayCreditCardNotValidAmount">
- <value xml:lang="en">Insert a valid credit card amount</value>
- <value xml:lang="fr">Saisir un montant de carte bancaire valide</value>
- <value xml:lang="it">Inserire un'importo con carta di credito valido</value>
- <value xml:lang="ja">有効なクレジットカード金額を入力</value>
- <value xml:lang="zh">插入一个有效的信用卡金额</value>
- <value xml:lang="zh-TW">插入一個有效的信用卡金額</value>
- </property>
- <property key="WebPosPayCreditCardNum">
- <value xml:lang="en">Credit card number</value>
- <value xml:lang="fr">N° de carte bancaire</value>
- <value xml:lang="it">Numero di carta di credito</value>
- <value xml:lang="ja">クレジットカード番号</value>
- <value xml:lang="zh">信用卡号</value>
- <value xml:lang="zh-TW">信用卡號</value>
- </property>
- <property key="WebPosPayCreditCardPostalCode">
- <value xml:lang="en">Postal Code</value>
- <value xml:lang="it">CAP</value>
- <value xml:lang="ja">郵便番号</value>
- <value xml:lang="zh">邮政编码</value>
- <value xml:lang="zh-TW">郵遞區號</value>
- </property>
- <property key="WebPosPayCreditCardRefNum">
- <value xml:lang="en">Credit card ref. num .</value>
- <value xml:lang="fr">Réf. carte bancaire</value>
- <value xml:lang="it">Rif. Num.</value>
- <value xml:lang="ja">クレジットカード照会番号</value>
- <value xml:lang="zh">信用卡引用号</value>
- <value xml:lang="zh-TW">信用卡參考號</value>
- </property>
- <property key="WebPosPayCreditCardSecurityCode">
- <value xml:lang="en">Credit card security code</value>
- <value xml:lang="fr">Code de sécurité de la carte bancaire</value>
- <value xml:lang="it">Codice di sicurezza</value>
- <value xml:lang="ja">クレジットカードセキュリティコード</value>
- <value xml:lang="zh">信用卡安全码</value>
- <value xml:lang="zh-TW">信用卡安全碼</value>
- </property>
- <property key="WebPosPayCreditCardSwipe">
- <value xml:lang="en">Swipe Credit Card</value>
- <value xml:lang="it">Strisciare carta di credito</value>
- <value xml:lang="ja">磁気クレジットカード</value>
- <value xml:lang="zh">刷信用卡</value>
- <value xml:lang="zh-TW">刷信用卡</value>
- </property>
- <property key="WebPosPayCreditCardSwipeData">
- <value xml:lang="en">Swipe Data</value>
- <value xml:lang="it">Dati letti</value>
- <value xml:lang="ja">磁気データ</value>
- <value xml:lang="zh">刷卡数据</value>
- <value xml:lang="zh-TW">刷卡資料</value>
- </property>
- <property key="WebPosPayCreditCardTotal">
- <value xml:lang="en">Already pay with credit card</value>
- <value xml:lang="it">Già pagato con carte di credito</value>
- <value xml:lang="ja">クレジットカードで支払</value>
- <value xml:lang="zh">已经用信用卡支付</value>
- <value xml:lang="zh-TW">已經用信用卡支付</value>
- </property>
- <property key="WebPosPayCreditCardType">
- <value xml:lang="en">Credit card type</value>
- <value xml:lang="it">Tipo carta di credito</value>
- <value xml:lang="ja">クレジットカード種類</value>
- <value xml:lang="zh">信用卡类型</value>
- <value xml:lang="zh-TW">信用卡類型</value>
- </property>
- <property key="WebPosPayGiftCard">
- <value xml:lang="en">Gift card amount</value>
- <value xml:lang="fr">Montant du bon d'achat</value>
- <value xml:lang="it">Importo con carta regalo</value>
- <value xml:lang="ja">ギフトカード金額</value>
- <value xml:lang="zh">礼品卡金额</value>
- <value xml:lang="zh-TW">禮物卡金額</value>
- </property>
- <property key="WebPosPayGiftCardGreaterThanTotalDue">
- <value xml:lang="en">Amount with gift card is greater than total due</value>
- <value xml:lang="it">L'importo con carte regali è maggiore dell'importo dovuto</value>
- <value xml:lang="ja">ギフトカード金額が合計額より多い</value>
- <value xml:lang="zh">礼品卡金额大于应付合计</value>
- <value xml:lang="zh-TW">禮物卡金額大於應付合計</value>
- </property>
- <property key="WebPosPayGiftCardNotValidAmount">
- <value xml:lang="en">Insert a valid gift card amount</value>
- <value xml:lang="fr">Saisir une valeur de bon d'achat valide</value>
- <value xml:lang="it">Inserire un'importo con carta regalo valido</value>
- <value xml:lang="ja">有効なギフトカード金額を入力</value>
- <value xml:lang="zh">插入一个有效的礼品卡金额</value>
- <value xml:lang="zh-TW">插入一個有效的禮物卡金額</value>
- </property>
- <property key="WebPosPayGiftCardRefNum">
- <value xml:lang="en">Gift card ref. num .</value>
- <value xml:lang="fr">Réf. bon d'achat</value>
- <value xml:lang="it">Rif. Num.</value>
- <value xml:lang="ja">ギフトカード照会番号</value>
- <value xml:lang="zh">礼品卡引用号</value>
- <value xml:lang="zh-TW">禮物卡參考號</value>
- </property>
- <property key="WebPosPayGiftCardTotal">
- <value xml:lang="en">Already pay with gift card</value>
- <value xml:lang="it">Già pagato con carte regalo</value>
- <value xml:lang="ja">ギフトカードで支払</value>
- <value xml:lang="zh">已经用礼品卡支付</value>
- <value xml:lang="zh-TW">已經用禮物卡支付</value>
- </property>
- <property key="WebPosPaymentCheckInternal">
- <value xml:lang="en">Payment Check Internal not yet supported</value>
- <value xml:lang="fr">Le paiement par chèques n'est pas pris en charge</value>
- <value xml:lang="it">Pagemento Assegno Interno non ancora supportato</value>
- <value xml:lang="ja">支払小切手内部はまだサポートされていません</value>
- <value xml:lang="zh">还不支持内部支票支付</value>
- <value xml:lang="zh-TW">還不支援內部支票支付</value>
- </property>
- <property key="WebPosPaymentCheckMissingRefNum">
- <value xml:lang="en">You must specify the reference number of the payment check</value>
- <value xml:lang="fr">Vous devez indiquer un n° de réf. pour une paiement par chèque</value>
- <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento assegno</value>
- <value xml:lang="ja">小切手支払照会番号を指定してください</value>
- <value xml:lang="zh">你必须为支票支付指定一个引用号</value>
- <value xml:lang="zh-TW">你必須為支票支付指定一個參考號</value>
- </property>
- <property key="WebPosPaymentCreditCardInvalid">
- <value xml:lang="en">You must specify a valid credit card number</value>
- <value xml:lang="fr">Vous devez indiquer un n° de carte bancaire valide</value>
- <value xml:lang="it">Tu devi specificare un numero di carta di credito valida</value>
- <value xml:lang="ja">有効なクレジットカード番号を指定する必要があります</value>
- <value xml:lang="zh">你必须指定一个有效的信用卡号</value>
- <value xml:lang="zh-TW">你必須指定一個有效的信用卡號</value>
- </property>
- <property key="WebPosPaymentCreditCardInvalidExpiringDate">
- <value xml:lang="en">You must specify a not expired credit card</value>
- <value xml:lang="fr">Vous devez indiquer une carte bancaire avec une date non expirée</value>
- <value xml:lang="it">Tu devi specificare una carta di credito non scaduta</value>
- <value xml:lang="ja">有効な期限のクレジットカードを指定する必要があります</value>
- <value xml:lang="zh">你必须指定一个没有过期的信用卡</value>
- <value xml:lang="zh-TW">你必須指定一個沒有過期的信用卡</value>
- </property>
- <property key="WebPosPaymentCreditCardInvalidSecurityCode">
- <value xml:lang="en">You must specify a valid security code</value>
- <value xml:lang="fr">Vous devez indiquer un code de sécurité valide</value>
- <value xml:lang="it">Tu devi specificare un pin valido</value>
- <value xml:lang="ja">有効なセキュリティコードを指定する必要があります</value>
- <value xml:lang="zh">你必须指定一个有效的安全码</value>
- <value xml:lang="zh-TW">你必須指定一個有效的安全碼</value>
- </property>
- <property key="WebPosPaymentCreditCardMissingRefNum">
- <value xml:lang="en">You must specify the reference number of the payment credit card</value>
- <value xml:lang="fr">Vous devez indiquer un n° de réf. pour le paiement par carte bancaire</value>
- <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento carta di credito</value>
- <value xml:lang="ja">支払クレジットカードの照会番号を指定する必要があります</value>
- <value xml:lang="zh">你必须为信用卡支付指定引用号</value>
- <value xml:lang="zh-TW">你必須為信用卡支付指定參考號</value>
- </property>
- <property key="WebPosPaymentGiftCardInternal">
- <value xml:lang="en">Payment Gift Card Internal not yet supported</value>
- <value xml:lang="fr">Le paiement par bons d'achat n'est pas pris en charge</value>
- <value xml:lang="it">Pagemento Carta Regalo Interna non ancora supportato</value>
- <value xml:lang="ja">支払ギフトカード内部はまだサポートされていません</value>
- <value xml:lang="zh">还不支持内部礼品卡支付</value>
- <value xml:lang="zh-TW">還不支援內部禮物卡支付</value>
- </property>
- <property key="WebPosPaymentGiftCardMissingRefNum">
- <value xml:lang="en">You must specify the reference number of the payment gift card</value>
- <value xml:lang="fr">Vous devez indiquer un n° de réf. valide pour le paiement par bon d'achat</value>
- <value xml:lang="it">Tu devi specificare il numero di riferimento del pagamento carta regalo</value>
- <value xml:lang="ja">支払ギフトカードの照会番号を指定してください</value>
- <value xml:lang="zh">你必须为礼品卡支付指定引用号</value>
- <value xml:lang="zh-TW">你必須為禮物卡支付指定參考號</value>
- </property>
- <property key="WebPosPaymentSetRef">
- <value xml:lang="en">Set payment reference</value>
- <value xml:lang="fr">Indiquer une réf. de paiement</value>
- <value xml:lang="it">Imposta rif. pagamento</value>
- <value xml:lang="ja">支払照会を設定</value>
- <value xml:lang="zh">设置支付引用</value>
- <value xml:lang="zh-TW">設置支付參考</value>
- </property>
- <property key="WebPosPaymentSwipeDataEmpty">
- <value xml:lang="en">Please swipe again the credit card</value>
- <value xml:lang="it">Prego strisciare la carta di credito</value>
- <value xml:lang="ja">再度クレジットカードを読み取ってください</value>
- <value xml:lang="zh">请重刷一下信用卡</value>
- <value xml:lang="zh-TW">請重刷一下信用卡</value>
- </property>
- <property key="WebPosPleaseWait">
- <value xml:lang="en">Please wait...</value>
- <value xml:lang="it">Attendere prego...</value>
- <value xml:lang="ja">しばらくお待ちください...</value>
- <value xml:lang="zh">请稍候...</value>
- <value xml:lang="zh-TW">請稍候...</value>
- </property>
- <property key="WebPosPromoCode">
- <value xml:lang="en">Enter Promo Code</value>
- <value xml:lang="fr">Saisir un code promotion</value>
- <value xml:lang="it">Inserire codice promozione</value>
- <value xml:lang="ja">プロモーションコードを入力:</value>
- <value xml:lang="zh">输入促销代码:</value>
- <value xml:lang="zh-TW">輸入促銷代碼:</value>
- </property>
- <property key="WebPosPromoCodeTerminalNotOpened">
- <value xml:lang="en">Terminal must be opened for promo</value>
- <value xml:lang="fr">La caisse doit être ouverte pour les promotions</value>
- <value xml:lang="it">Terminale deve essere aperto per utilizzare le promozioni</value>
- <value xml:lang="ja">プロモーションに対して端末がオープンされている必要があります</value>
- <value xml:lang="zh">终端必须为促销打开</value>
- <value xml:lang="zh-TW">終端必須為促銷打開</value>
- </property>
- <property key="WebPosRecalculateCart">
- <value xml:lang="en">RECALCULATE CART</value>
- <value xml:lang="fr">RECALCULER LE PANIER</value>
- <value xml:lang="it">RICALCOLA CARRELLO</value>
- <value xml:lang="ja">かごを再計算</value>
- <value xml:lang="zh">购物车重计算</value>
- <value xml:lang="zh-TW">購物車重計算</value>
- </property>
- <property key="WebPosRemoveSelected">
- <value xml:lang="en">REMOVE SELECTED</value>
- <value xml:lang="fr">SUPPRIMER LA SELECTION</value>
- <value xml:lang="it">RIMUOVI SELEZIONI</value>
- <value xml:lang="ja">選択を削除</value>
- <value xml:lang="zh">删除选择的</value>
- <value xml:lang="zh-TW">刪除選擇的</value>
- </property>
- <property key="WebPosSearchBy">
- <value xml:lang="en">Search By</value>
- <value xml:lang="fr">Rechercher par</value>
- <value xml:lang="it">Ricerca per</value>
- <value xml:lang="ja">検索</value>
- <value xml:lang="zh">搜索</value>
- <value xml:lang="zh-TW">搜尋</value>
- </property>
- <property key="WebPosSearchSalesReps">
- <value xml:lang="en">Select Sales Reps</value>
- <value xml:lang="it">Scegli i venditori</value>
- <value xml:lang="ja">販売レポートを選択</value>
- <value xml:lang="zh">选择销售代表</value>
- <value xml:lang="zh-TW">選擇銷售代表</value>
- </property>
- <property key="WebPosSelectOneSalesRep">
- <value xml:lang="en">Select al least one Sales Rep</value>
- <value xml:lang="it">Scegliere almeno un venditore</value>
- <value xml:lang="ja">少なくとも1つ販売レポートを選択</value>
- <value xml:lang="zh">选择至少一个销售代表</value>
- <value xml:lang="zh-TW">選擇至少一個銷售代表</value>
- </property>
- <property key="WebPosShippingAddress">
- <value xml:lang="en">Shipping Address</value>
- <value xml:lang="it">Indirizzo di spedizione</value>
- <value xml:lang="ja">発送先住所</value>
- <value xml:lang="zh">送货地址</value>
- <value xml:lang="zh-TW">送貨位址</value>
- </property>
- <property key="WebPosShippingMethod">
- <value xml:lang="en">Shipping Method</value>
- <value xml:lang="it">Metodo di spedizione</value>
- <value xml:lang="ja">発送方法</value>
- <value xml:lang="zh">送货方法</value>
- <value xml:lang="zh-TW">送貨方法</value>
- </property>
- <property key="WebPosShortcutF1">
- <value xml:lang="en">PRODUCT SEARCH</value>
- <value xml:lang="it">RICERCA PRODOTTO</value>
- <value xml:lang="ja">製品検索</value>
- <value xml:lang="nl">PRODUCT Zoeken</value>
- <value xml:lang="zh">产品搜索</value>
- <value xml:lang="zh-TW">產品搜尋</value>
- </property>
- <property key="WebPosShortcutF10">
- <value xml:lang="en">ADD QUANTITY</value>
- <value xml:lang="it">AGGIUNGI QUANTITA'</value>
- <value xml:lang="ja">数量加算</value>
- <value xml:lang="zh">增加数量</value>
- <value xml:lang="zh-TW">增加數量</value>
- </property>
- <property key="WebPosShortcutF11">
- <value xml:lang="en">SUBTRACT QUANTITY</value>
- <value xml:lang="it">SOTTRAI QUANTITA'</value>
- <value xml:lang="ja">数量減算</value>
- <value xml:lang="zh">减少数量</value>
- <value xml:lang="zh-TW">減少數量</value>
- </property>
- <property key="WebPosShortcutF12">
- <value xml:lang="en">EMPTY CART</value>
- <value xml:lang="it">SVUOTA CARRELLO</value>
- <value xml:lang="ja">空の買い物かご</value>
- <value xml:lang="zh">清空购物车</value>
- <value xml:lang="zh-TW">清空購物車</value>
- </property>
- <property key="WebPosShortcutF2">
- <value xml:lang="en">PARTY SEARCH</value>
- <value xml:lang="it">RICERCA SOGGETTO</value>
- <value xml:lang="ja">取引先検索</value>
- <value xml:lang="nl">KLANT Zoeken</value>
- <value xml:lang="zh">会员搜索</value>
- <value xml:lang="zh-TW">團體搜尋</value>
- </property>
- <property key="WebPosShortcutF3">
- <value xml:lang="en">PAY CASH</value>
- <value xml:lang="it">PAGA IN CONTANTI</value>
- <value xml:lang="ja">現金支払</value>
- <value xml:lang="nl">CONTANT</value>
- <value xml:lang="zh">付现金</value>
- <value xml:lang="zh-TW">付現金</value>
- </property>
- <property key="WebPosShortcutF4">
- <value xml:lang="en">PAY CHECK</value>
- <value xml:lang="it">PAGA CON ASSEGNO</value>
- <value xml:lang="ja">小切手支払</value>
- <value xml:lang="nl">CHEQUE</value>
- <value xml:lang="zh">付支票</value>
- <value xml:lang="zh-TW">付支票</value>
- </property>
- <property key="WebPosShortcutF5">
- <value xml:lang="en">Pay Pin</value>
- <value xml:lang="nl">PIN / CHIP</value>
- <value xml:lang="zh">付芯片卡</value>
- </property>
- <property key="WebPosShortcutF6">
- <value xml:lang="en">PAY GIFT CARD</value>
- <value xml:lang="it">PAGA C.REGALO</value>
- <value xml:lang="ja">ギフトカード支払</value>
- <value xml:lang="nl">CADEAUBON</value>
- <value xml:lang="zh">付礼品卡</value>
- <value xml:lang="zh-TW">付禮物卡</value>
- </property>
- <property key="WebPosShortcutF7">
- <value xml:lang="en">PAY BY CC</value>
- <value xml:lang="it">PAGA C.CREDITO</value>
- <value xml:lang="ja">カード支払</value>
- <value xml:lang="nl">CREDIT CARD</value>
- <value xml:lang="zh">付信用卡</value>
- <value xml:lang="zh-TW">付信用卡</value>
- </property>
- <property key="WebPosShortcutF8">
- <value xml:lang="en">CHECKOUT</value>
- <value xml:lang="it">CHECKOUT</value>
- <value xml:lang="ja">チェックアウト</value>
- <value xml:lang="zh">结账</value>
- <value xml:lang="zh-TW">結帳</value>
- </property>
- <property key="WebPosShortcutF9">
- <value xml:lang="en">CHANGE QUANTITY</value>
- <value xml:lang="it">CAMBIA QUANTITA'</value>
- <value xml:lang="ja">数量変更</value>
- <value xml:lang="zh">修改数量</value>
- <value xml:lang="zh-TW">修改數量</value>
- </property>
- <property key="WebPosShortcutKeyDown">
- <value xml:lang="en">NEXT ROW</value>
- <value xml:lang="it">RIGA SUCCESS.</value>
- <value xml:lang="ja">次の行</value>
- <value xml:lang="zh">下一行</value>
- <value xml:lang="zh-TW">下一行</value>
- </property>
- <property key="WebPosShortcutKeyUp">
- <value xml:lang="en">PREVIOUS ROW</value>
- <value xml:lang="it">RIGA PRECED.</value>
- <value xml:lang="ja">前の行</value>
- <value xml:lang="zh">上一行</value>
- <value xml:lang="zh-TW">上一行</value>
- </property>
- <property key="WebPosShortcuts">
- <value xml:lang="en">Keyboard Shortcuts</value>
- <value xml:lang="it">Tasti funzione</value>
- <value xml:lang="ja">キーボードショートカット</value>
- <value xml:lang="zh">键盘快捷键</value>
- <value xml:lang="zh-TW">鍵盤快速鍵</value>
- </property>
- <property key="WebPosTerminal">
- <value xml:lang="en">Terminal</value>
- <value xml:lang="it">Terminale</value>
- <value xml:lang="ja">端末</value>
- <value xml:lang="zh">终端</value>
- <value xml:lang="zh-TW">終端</value>
- </property>
- <property key="WebPosTerminalClose">
- <value xml:lang="en">close</value>
- <value xml:lang="it">chiuso</value>
- <value xml:lang="ja">クローズ</value>
- <value xml:lang="zh">关闭</value>
- <value xml:lang="zh-TW">關閉</value>
- </property>
- <property key="WebPosTerminalOpen">
- <value xml:lang="en">open</value>
- <value xml:lang="it">aperto</value>
- <value xml:lang="ja">オープン</value>
- <value xml:lang="zh">打开</value>
- <value xml:lang="zh-TW">打開</value>
- </property>
- <property key="WebPosTotal">
- <value xml:lang="en">Total</value>
- <value xml:lang="fr">Total</value>
- <value xml:lang="it">Totale</value>
- <value xml:lang="ja">合計</value>
- <value xml:lang="nl">Totaal</value>
- <value xml:lang="zh">购物车合计</value>
- <value xml:lang="zh-TW">購物車合計</value>
- </property>
- <property key="WebPosTotalItemSubTotal">
- <value xml:lang="en">Total Cart</value>
- <value xml:lang="it">Totale carrello</value>
- <value xml:lang="ja">買い物かご合計</value>
- <value xml:lang="zh">购物车合计</value>
- <value xml:lang="zh-TW">購物車合計</value>
- </property>
- <property key="WebPosTotalPromotions">
- <value xml:lang="en">Total Promotions</value>
- <value xml:lang="it">Totale promozioni</value>
- <value xml:lang="ja">プロモーション合計</value>
- <value xml:lang="nl">Totaal PROMO</value>
- <value xml:lang="zh">促销合计</value>
- <value xml:lang="zh-TW">促銷合計</value>
- </property>
- <property key="WebPosTotalSalesTax">
- <value xml:lang="en">Total Sales Tax</value>
- <value xml:lang="it">Totale tasse</value>
- <value xml:lang="ja">消費税合計</value>
- <value xml:lang="nl">Totaal BTW</value>
- <value xml:lang="zh">营业税合计</value>
- <value xml:lang="zh-TW">營業稅合計</value>
- </property>
- <property key="WebPosTotalShipping">
- <value xml:lang="en">Total Shipping</value>
- <value xml:lang="it">Totale spese di spedizione</value>
- <value xml:lang="ja">発送合計</value>
- <value xml:lang="zh">送货合计</value>
- <value xml:lang="zh-TW">送貨合計</value>
- </property>
- <property key="WebPosTransactionId">
- <value xml:lang="en">Transaction ID</value>
- <value xml:lang="fr">N° de transaction</value>
- <value xml:lang="it">Transazione</value>
- <value xml:lang="ja">トランザクションID</value>
- <value xml:lang="nl">Transactie #</value>
- <value xml:lang="zh">交易标识</value>
- <value xml:lang="zh-TW">交易識別</value>
- </property>
- <property key="WebPosTransactionTotalDue">
- <value xml:lang="en">Total Due</value>
- <value xml:lang="fr">Montant dû</value>
- <value xml:lang="it">Totale dovuto</value>
- <value xml:lang="ja">請求合計</value>
- <value xml:lang="nl">VERSCHULDIGD</value>
- <value xml:lang="zh">全部应付</value>
- <value xml:lang="zh-TW">全部應付</value>
- </property>
- <property key="WebPosTransactionTotalDueZero">
- <value xml:lang="en">Total due is already zero</value>
- <value xml:lang="it">Importo dovuto è già a zero</value>
- <value xml:lang="ja">請求残はありません</value>
- <value xml:lang="zh">应付合计已经是0</value>
- <value xml:lang="zh-TW">應付合計已經是0</value>
- </property>
- <property key="WebPosTransactionTotalPay">
- <value xml:lang="en">Total Paid</value>
- <value xml:lang="it">Totale pagato</value>
- <value xml:lang="ja">全額支払済</value>
- <value xml:lang="nl">Totaal BETAALD</value>
- <value xml:lang="zh">已付合计</value>
- <value xml:lang="zh-TW">已付合計</value>
- </property>
- <property key="WebPosUnableToLogIn">
- <value xml:lang="en">Unable To Log In</value>
- <value xml:lang="it">Non è stato possibile autenticarsi</value>
- <value xml:lang="ja">ログインできません</value>
- <value xml:lang="zh">不能登录</value>
- <value xml:lang="zh-TW">不能登入</value>
- </property>
- <property key="WebPosUnitPrice">
- <value xml:lang="en">Unit Price</value>
- <value xml:lang="fr">Prix unitaire</value>
- <value xml:lang="it">Prezzo unitario</value>
- <value xml:lang="ja">単価</value>
- <value xml:lang="zh">单价</value>
- <value xml:lang="zh-TW">單價</value>
- </property>
- <property key="WebPosUserLoginNotValid">
- <value xml:lang="en">User Login Not Valid</value>
- <value xml:lang="it">Utente non valido</value>
- <value xml:lang="ja">ログインが無効です</value>
- <value xml:lang="zh">用户登录无效</value>
- <value xml:lang="zh-TW">使用者登入無效</value>
- </property>
-</resource>
\ No newline at end of file
diff --git a/webpos/data/DemoPosData.xml b/webpos/data/DemoPosData.xml
deleted file mode 100644
index 0055e8aa8..000000000
--- a/webpos/data/DemoPosData.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?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" visualThemeSetId="BACKOFFICE"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="PERSONAL_CHECK" paymentServiceTypeEnumId="PRDS_PAY_EXTERNAL"/>
-
- <PartyIdentification partyId="DemoCustomer" partyIdentificationTypeId="CARD_ID" idValue="987654321"/>
-
- <ProductStoreShipmentMeth productStoreShipMethId="9100" productStoreId="9100" partyId="_NA_" includeNoChargeItems="Y" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NO_SHIPPING" sequenceNumber="6"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9101" productStoreId="9100" partyId="UPS" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="GROUND" sequenceNumber="3"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9102" productStoreId="9100" partyId="UPS" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="AIR" sequenceNumber="2"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9103" productStoreId="9100" partyId="UPS" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NEXT_DAY" sequenceNumber="1"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9104" productStoreId="9100" partyId="USPS" includeNoChargeItems="N" allowUspsAddr="Y" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="STANDARD" sequenceNumber="5"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9105" productStoreId="9100" partyId="USPS" includeNoChargeItems="N" allowUspsAddr="Y" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="EXPRESS" sequenceNumber="4"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9106" productStoreId="9100" partyId="DHL" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="EXPRESS" sequenceNumber="7"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9107" productStoreId="9100" partyId="DHL" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NEXT_PM" sequenceNumber="8"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9108" productStoreId="9100" partyId="DHL" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="SECOND_DAY" sequenceNumber="9"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9109" productStoreId="9100" partyId="DHL" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="GROUND" sequenceNumber="10"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9110" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NEXT_AM" sequenceNumber="11"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9111" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NEXT_DAY" sequenceNumber="12"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9112" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="NEXT_PM" sequenceNumber="13"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9113" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="SECOND_DAY" sequenceNumber="14"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9114" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="EXPRESS_SAVER" sequenceNumber="15"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9115" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="GROUND" sequenceNumber="16"/>
- <ProductStoreShipmentMeth productStoreShipMethId="9116" productStoreId="9100" partyId="FEDEX" includeNoChargeItems="N" allowUspsAddr="N" requireUspsAddr="N" roleTypeId="CARRIER" shipmentMethodTypeId="GROUND_HOME" sequenceNumber="17"/>
-
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9100" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9101" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9102" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9103" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9104" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9105" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9106" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9107" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9108" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
- <QuantityBreak fromQuantity="0.0" quantityBreakId="9109" quantityBreakTypeId="SHIP_WEIGHT" thruQuantity="0.0"/>
-
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="5.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19000" shipmentMethodTypeId="AIR" carrierPartyId="UPS" carrierRoleTypeId="CARRIER" weightBreakId="9100" weightUnitPrice="0.2"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="3.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19001" shipmentMethodTypeId="GROUND" carrierPartyId="UPS" carrierRoleTypeId="CARRIER" weightBreakId="9101" weightUnitPrice="0.1"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="5.0" orderItemFlatPrice="0.0" carrierPartyId="Company" carrierRoleTypeId="CARRIER" orderPricePercent="0.0" shipmentCostEstimateId="19002" shipmentMethodTypeId="LOCAL_DELIVERY"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="10.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19003" shipmentMethodTypeId="NEXT_DAY" carrierPartyId="UPS" carrierRoleTypeId="CARRIER" weightBreakId="9102" weightUnitPrice="0.35"/>
- <ShipmentCostEstimate productStoreId="9100" shipmentCostEstimateId="19004" shipmentMethodTypeId="STANDARD" carrierPartyId="_NA_" carrierRoleTypeId="CARRIER" orderFlatPrice="0.0" orderPricePercent="20.0" orderItemFlatPrice="0.0"/>
- <ShipmentCostEstimate productStoreId="9100" shipmentCostEstimateId="19005" shipmentMethodTypeId="NO_SHIPPING" carrierPartyId="_NA_" carrierRoleTypeId="CARRIER" orderFlatPrice="0.0" orderPricePercent="0.0" orderItemFlatPrice="0.0"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="10.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19100" shipmentMethodTypeId="EXPRESS" carrierPartyId="DHL" carrierRoleTypeId="CARRIER" weightBreakId="9103" weightUnitPrice="0.2"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="9.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19101" shipmentMethodTypeId="NEXT_PM" carrierPartyId="DHL" carrierRoleTypeId="CARRIER" weightBreakId="9104" weightUnitPrice="0.2"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="5.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19102" shipmentMethodTypeId="SECOND_DAY" carrierPartyId="DHL" carrierRoleTypeId="CARRIER" weightBreakId="9105" weightUnitPrice="0.2"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="3.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19103" shipmentMethodTypeId="GROUND" carrierPartyId="DHL" carrierRoleTypeId="CARRIER" weightBreakId="9106" weightUnitPrice="0.1"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19203" shipmentMethodTypeId="NEXT_AM" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19204" shipmentMethodTypeId="NEXT_DAY" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19205" shipmentMethodTypeId="NEXT_PM" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19206" shipmentMethodTypeId="SECOND_DAY" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19207" shipmentMethodTypeId="EXPRESS_SAVER" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19208" shipmentMethodTypeId="GROUND" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
- <ShipmentCostEstimate productStoreId="9100" orderFlatPrice="0.0" orderItemFlatPrice="0.0" orderPricePercent="0.0" shipmentCostEstimateId="19209" shipmentMethodTypeId="GROUND_HOME" carrierPartyId="FEDEX" carrierRoleTypeId="CARRIER"/>
-</entity-engine-xml>
\ No newline at end of file
diff --git a/webpos/data/DemoRetail.xml b/webpos/data/DemoRetail.xml
deleted file mode 100644
index 7387d1f50..000000000
--- a/webpos/data/DemoRetail.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?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>
- <UserLogin userLoginId="1" userFullName="THE ADMINISTRATOR 1" partyId="admin" currentPassword="356a192b7913cf4c54574d18bdf24699395428d4" passwordHint="The Number One, Yeah, Literally"/>
- <UserLogin userLoginId="2" userFullName="Limited Administrator - 1" partyId="ltdadmin" currentPassword="a54bed37c5b3b28ee30760b5c8d1bbd735ef10cf" passwordHint="The Number Two, Yeah, Literally"/>
- <UserLoginSecurityGroup groupId="POSCLERK" userLoginId="1" fromDate="2001-01-01 12:00:00.0"/>
- <UserLoginSecurityGroup groupId="POSCLERK" userLoginId="2" fromDate="2001-01-01 12:00:00.0"/>
- <Facility facilityId="MyRetailStore" ownerPartyId="Company" facilityTypeId="RETAIL_STORE" facilityName="My Retail Store" description="Example Retail (POS) Store"/>
- <ContactMech contactMechId="9300" contactMechTypeId="POSTAL_ADDRESS"/>
- <ContactMech contactMechId="9301" contactMechTypeId="TELECOM_NUMBER"/>
- <PostalAddress contactMechId="9300" toName="My Retail Store" attnName="" address1="7 E. 8th St. #308" city="New York" postalCode="10003" countryGeoId="USA" stateProvinceGeoId="NY"/>
- <TelecomNumber contactMechId="9301" areaCode="212" contactNumber="555-5555"/>
- <FacilityContactMech facilityId="MyRetailStore" contactMechId="9300" fromDate="2001-05-13 12:00:00.0"/>
- <FacilityContactMech facilityId="MyRetailStore" contactMechId="9301" fromDate="2001-05-13 12:00:00.0"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="PUR_RET_LOCATION" fromDate="2004-07-26 16:49:50.161"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="GENERAL_LOCATION" fromDate="2004-07-26 16:49:54.497"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="PAYMENT_LOCATION" fromDate="2004-07-26 16:49:58.747"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="BILLING_LOCATION" fromDate="2004-07-26 16:50:05.459"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="SHIP_ORIG_LOCATION" fromDate="2004-07-26 16:50:09.65"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9300" contactMechPurposeTypeId="SHIPPING_LOCATION" fromDate="2004-07-26 16:50:13.755"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIPPING" fromDate="2001-05-13 12:00:00.0"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIP_ORIG" fromDate="2001-05-13 12:00:00.0"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_PAYMENT" fromDate="2004-07-26 16:48:47.311"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_BILLING" fromDate="2004-07-26 16:48:51.652"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIP_ORIG" fromDate="2004-07-26 16:49:04.176"/>
- <FacilityContactMechPurpose facilityId="MyRetailStore" contactMechId="9301" contactMechPurposeTypeId="PHONE_SHIPPING" fromDate="2004-07-26 16:49:09.267"/>
-
- <ProductStore productStoreId="9100" storeName="OFBiz Physical Retail Store" companyName="Apache OFBiz" title="Open For Retail"
- subtitle="Part of the Apache OFBiz Family of Open Source Software" payToPartyId="Company" daysToCancelNonPay="30" prorateShipping="Y" prorateTaxes="Y"
- inventoryFacilityId="MyRetailStore" oneInventoryFacility="Y" checkInventory="N" reserveInventory="Y"
- reserveOrderEnumId="INVRO_FIFO_REC" requireInventory="N" isImmediatelyFulfilled="Y"
- defaultLocaleString="en_US" defaultCurrencyUomId="USD" allowPassword="Y" explodeOrderItems="N" retryFailedAuths="N" manualAuthIsCapture="Y"
- headerApprovedStatus="ORDER_APPROVED" itemApprovedStatus="ITEM_APPROVED" digitalItemApprovedStatus="ITEM_APPROVED" headerDeclinedStatus="ORDER_REJECTED"
- itemDeclinedStatus="ITEM_REJECTED" headerCancelStatus="ORDER_CANCELLED" itemCancelStatus="ITEM_CANCELLED" orderNumberPrefix="RS"
- authDeclinedMessage="There has been a problem with your method of payment. Please try a different method or call customer service."
- authFraudMessage="Your order has been rejected and your account has been disabled due to fraud."
- authErrorMessage="Problem connecting to payment processor."
- visualThemeId="EC_DEFAULT" autoApproveInvoice="Y" shipIfCaptureFails="Y" autoApproveOrder="Y"/>
-
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_AUTH" paymentService="alwaysApproveWithCaptureCCProcessor" paymentCustomMethodId="CC_AUTH_CAPTURE_ALWA"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_RELEASE" paymentService="testCCRelease" paymentCustomMethodId="CC_RELEASE_TEST"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_CAPTURE" paymentService="testCCCapture" paymentCustomMethodId="CC_CAPTURE_TEST"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_REAUTH" paymentService="alwaysApproveCCProcessor" paymentCustomMethodId="CC_AUTH_ALWAYSAPPROV"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="CREDIT_CARD" paymentServiceTypeEnumId="PRDS_PAY_REFUND" paymentService="testCCRefund" paymentCustomMethodId="CC_REFUND_TEST"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="EFT_ACCOUNT" paymentServiceTypeEnumId="PRDS_PAY_AUTH" paymentService="alwaysApproveEFTProcessor" paymentCustomMethodId="EFT_AUTH_ALWAYSAPPRO"/>
- <ProductStorePaymentSetting productStoreId="9100" paymentMethodTypeId="GIFT_CARD" paymentServiceTypeEnumId="PRDS_PAY_EXTERNAL" paymentService="" paymentCustomMethodId=""/>
-
- <ProductStoreFacility productStoreId="9100" facilityId="MyRetailStore" fromDate="2001-05-13 12:00:00.0"/>
- <ProductStoreRole partyId="admin" roleTypeId="SALES_REP" productStoreId="9100" fromDate="2001-05-13 12:00:00.0"/>
-
- <ProductStoreCatalog productStoreId="9100" prodCatalogId="DemoCatalog" fromDate="2001-05-13 12:00:00.0" sequenceNum="1"/>
-
- <Facility facilityId="MyRetailStore" productStoreId="9100" defaultInventoryItemTypeId="NON_SERIAL_INV_ITEM"/>
-
- <!-- Use these SKUs in the POS terminal -->
- <GoodIdentification goodIdentificationTypeId="SKU" productId="GZ-1000" idValue="12345"/>
- <GoodIdentification goodIdentificationTypeId="OTHER_ID" productId="GZ-1001" idValue="12345"/>
- <GoodIdentification goodIdentificationTypeId="SKU" productId="GZ-1001" idValue="67890"/>
-
-
- <!-- use this one when the scheduled PUSH service is enabled
- <PosTerminal posTerminalId="pos-1" terminalName="Pos Terminal 1" facilityId="MyRetailStore" pushEntitySyncId="5505"/>
- <PosTerminal posTerminalId="pos-2" terminalName="Pos Terminal 2" facilityId="MyRetailStore" pushEntitySyncId="5505"/>
- <PosTerminal posTerminalId="pos-3" terminalName="Pos Terminal 3" facilityId="MyRetailStore" pushEntitySyncId="5505"/>
- -->
-
- <!-- use this one when the scheduled PUSH service is not enabled -->
- <PosTerminal posTerminalId="pos-1" terminalName="Pos Terminal 1" facilityId="MyRetailStore"/>
- <PosTerminal posTerminalId="pos-2" terminalName="Pos Terminal 2" facilityId="MyRetailStore"/>
- <PosTerminal posTerminalId="pos-3" terminalName="Pos Terminal 3" facilityId="MyRetailStore"/>
-
- <!-- NOTE: this should be commented out for testing the POS without inventory, but should be included on PSS and MCS machines to handle inventory issuance -->
- <!-- <InventoryItem facilityId="MyRetailStore" inventoryItemId="9100" inventoryItemTypeId="NON_SERIAL_INV_ITEM" productId="GZ-1001"/>
- <InventoryItemDetail inventoryItemId="9100" inventoryItemDetailSeqId="0001" availableToPromiseDiff="20" quantityOnHandDiff="20"/> -->
- <!-- NOTE: for testing now leaving out GZ-5005 which is the other default product with a button in the POS, should create a new inventory item with negative QOH -->
-
- <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"/>
-
- <!-- _NA_ TaxAuthority defs -->
- <TaxAuthority taxAuthGeoId="_NA_" taxAuthPartyId="_NA_" includeTaxInPrice="N"/>
- <TaxAuthorityGlAccount taxAuthGeoId="_NA_" taxAuthPartyId="_NA_" organizationPartyId="Company" glAccountId="224000"/>
- <TaxAuthorityCategory taxAuthGeoId="_NA_" taxAuthPartyId="_NA_" productCategoryId="20111"/> <!-- Micro Widgets, a category to be used to test categorized rates -->
- <!-- taxAuthorityRateSeqId left blank to be auto-sequenced during the EE XML import -->
- <TaxAuthorityRateProduct taxAuthorityRateSeqId="9006" taxAuthGeoId="_NA_" taxAuthPartyId="_NA_" taxAuthorityRateTypeId="SALES_TAX" productStoreId="9100"
- productCategoryId="" titleTransferEnumId="" minItemPrice="25.00" minPurchase="0.00" taxShipping="N" taxPercentage="1" taxPromotions="N"
- fromDate="2008-12-03 00:00:00.001" thruDate="" description="1% OFB _NA_ Tax"/>
-
-</entity-engine-xml>
-
-
diff --git a/webpos/data/PosSecurityData.xml b/webpos/data/PosSecurityData.xml
deleted file mode 100644
index dfcdc0308..000000000
--- a/webpos/data/PosSecurityData.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?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>
- <SecurityGroup description="POS Clerk" groupId="POSCLERK"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ORDERMGR_VIEW"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ORDERMGR_NOTE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ORDERMGR_UPDATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ORDERMGR_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PARTYMGR_PCM_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PARTYMGR_VIEW"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PARTYMGR_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PARTYMGR_UPDATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PARTYMGR_NOTE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PAY_INFO_VIEW"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PAY_INFO_UPDATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="PAY_INFO_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="CATALOG_VIEW"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCOUNTING_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCOUNTING_UPDATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCOUNTING_COMM_VIEW"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCTG_ATX_CREATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCTG_ATX_UPDATE"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="ACCTG_PREF_ADMIN"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="POSCLERK" permissionId="FACILITY_ADMIN"/>
-</entity-engine-xml>
diff --git a/webpos/data/PosSyncSettings.xml b/webpos/data/PosSyncSettings.xml
deleted file mode 100644
index 558036266..000000000
--- a/webpos/data/PosSyncSettings.xml
+++ /dev/null
@@ -1,153 +0,0 @@
-<?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.
--->
-
-<!-- To know more about this setting please read the documentation https://cwiki.apache.org/confluence/display/OFBIZ/Sync+Setup+Notes+and+Example -->
-
-<entity-engine-xml>
-<!-- MCS->PSS Central Server to Per Store Server -->
- <EntityGroup entityGroupId="5500" entityGroupName="POS: Central Server to Per Store Server"/>
- <!-- these are used to update sync settings on the POS terminals from the central server -->
- <EntityGroupEntry entityGroupId="5500" entityOrPackage="org.apache.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/>
- <!-- this is the general product information needed for pricing, promotions, basic product info, etc; the per store server will also include inventory, etc information -->
- <EntityGroupEntry entityGroupId="5500" entityOrPackage="org.apache.ofbiz.product" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5500" entityOrPackage="org.apache.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5500" entityOrPackage="org.apache.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5500" entityOrPackage="PosTerminal" applEnumId="ESIA_INCLUDE"/>
-
-<!-- PSS->POS Per Store Server to POS Terminal -->
- <EntityGroup entityGroupId="5501" entityGroupName="POS: Per Store Server to POS Terminal"/>
- <!-- these are used to update sync settings on the POS terminals from the central server -->
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.entity.group" applEnumId="ESIA_INCLUDE"/>
- <!-- this is the general product information needed for pricing, promotions, basic product info, etc -->
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.product.product" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.product.price" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.product.promo" applEnumId="ESIA_INCLUDE"/>
- <!-- org.apache.ofbiz.product.category is needed for certain promotions, probably won't be used much for category browsing in the POS -->
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.product.category" applEnumId="ESIA_INCLUDE"/>
- <!-- org.apache.ofbiz.party.party may be needed for certain promotions -->
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5501" entityOrPackage="org.apache.ofbiz.plugins.pos.PosTerminal" applEnumId="ESIA_INCLUDE"/>
-
-<!-- POS->PSS POS Terminal to Per Store Server -->
- <EntityGroup entityGroupId="5505" entityGroupName="POS: POS Terminal to Per Store Server"/>
- <!-- org.apache.ofbiz.party.party may be needed for order related information, like party roles or contact info etc -->
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/>
- <!-- all order and related information, including payment, etc info -->
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.order" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/>
- <!-- NOTE: no inventory information will be on the POS terminal, so don't send any over -->
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.pos.PosTerminalLog" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5505" entityOrPackage="org.apache.ofbiz.pos.PosTerminalState" applEnumId="ESIA_INCLUDE"/>
-
-<!-- PSS->MCS Per Store Server to Central Server -->
- <EntityGroup entityGroupId="5506" entityGroupName="POS: Per Store Server to Central Server"/>
- <!-- org.apache.ofbiz.party.party may be needed for order related information, like party roles or contact info etc -->
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.party.party" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.party.contact" applEnumId="ESIA_INCLUDE"/>
- <!-- all order and related information, including payment, etc info -->
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.order" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.accounting.invoice" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.accounting.payment" applEnumId="ESIA_INCLUDE"/>
- <!-- include inventory and issuance info -->
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.shipment.issuance" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.product.inventory" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.pos.PosTerminalLog" applEnumId="ESIA_INCLUDE"/>
- <EntityGroupEntry entityGroupId="5506" entityOrPackage="org.apache.ofbiz.pos.PosTerminalState" applEnumId="ESIA_INCLUDE"/>
-
-
-<!-- Some examples of EntitySync settings for pulling and pushing data around -->
- <!-- POS example meant to be used for pulling data from MCS to PSS -->
- <!-- NOTE: for pulling setup the EntitySync record lives on the server the data is pulled from and should ONLY BE USED FOR ONE CLIENT! -->
- <EntitySync entitySyncId="5500" runStatusId="ESR_NOT_STARTED" syncSplitMillis="600000"
- keepRemoveInfoHours="24" forPullOnly="Y"/>
- <EntitySyncIncludeGroup entitySyncId="5500" entityGroupId="5500"/>
- <!-- POS example meant to be used for pushing data from PSS to MCS -->
- <EntitySync entitySyncId="5506" runStatusId="ESR_NOT_STARTED" syncSplitMillis="600000" targetServiceName="remoteStoreEntitySyncDataRmi"
- keepRemoveInfoHours="24" forPushOnly="Y"/>
- <EntitySyncIncludeGroup entitySyncId="5506" entityGroupId="5506"/>
-
- <!-- POS example meant to be used for pushing data from POS to PSS -->
- <EntitySync entitySyncId="5505" runStatusId="ESR_NOT_STARTED" syncSplitMillis="600000" targetServiceName="remoteStoreEntitySyncDataRmi"
- keepRemoveInfoHours="24" forPushOnly="Y"/>
- <EntitySyncIncludeGroup entitySyncId="5505" entityGroupId="5505"/>
- <!-- POS example meant to be used for pulling data from PSS to POS -->
- <!-- NOTE: for pulling setup the EntitySync record lives on the server the data is pulled from and should ONLY BE USED FOR ONE CLIENT! -->
- <EntitySync entitySyncId="5501" runStatusId="ESR_NOT_STARTED" syncSplitMillis="600000"
- keepRemoveInfoHours="24" forPullOnly="Y"/>
- <EntitySyncIncludeGroup entitySyncId="5501" entityGroupId="5501"/>
-
- <!-- POS Push Scheduled Service -->
- <!--
- <RecurrenceRule recurrenceRuleId="POSPUSH" untilDateTime="" frequency="MINUTELY" intervalNumber="5" countNumber="-1"/>
- <RecurrenceInfo recurrenceInfoId="POSPUSH" startDateTime="2000-01-01 00:00:00.000" recurrenceRuleId="POSPUSH" recurrenceCount="0"/>
- <RuntimeData runtimeDataId="POSPUSH">
- <runtimeInfo><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
-<ofbiz-ser>
- <map-HashMap>
- <map-Entry>
- <map-Key>
- <std-String value="entitySyncId"/>
- </map-Key>
- <map-Value>
- <std-String value="5505"/>
- </map-Value>
- </map-Entry>
- </map-HashMap>
-</ofbiz-ser>
- ]]></runtimeInfo>
- </RuntimeData>
- <JobSandbox jobId="POSPUSH" jobName="Push POS Orders" runtimeDataId="POSPUSH" runTime="2000-01-01 00:00:00.000" serviceName="runEntitySync" poolId="pool" runAsUser="system" recurrenceInfoId="POSPUSH"/>
- -->
-
- <!-- POS-1 PULL Scheduled Service -->
- <!--
- <RecurrenceRule recurrenceRuleId="POS1PULL" untilDateTime="" frequency="HOURLY" intervalNumber="2" countNumber="-1"/>
- <RecurrenceInfo recurrenceInfoId="POS1PULL" startDateTime="2000-01-01 00:15:00.000" recurrenceRuleId="POS1PULL" recurrenceCount="0"/>
- <RuntimeData runtimeDataId="POS1PULL">
- <runtimeInfo><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
-<ofbiz-ser>
- <map-HashMap>
- <map-Entry>
- <map-Key>
- <std-String value="entitySyncId"/>
- </map-Key>
- <map-Value>
- <std-String value="5501"/>
- </map-Value>
- </map-Entry>
- <map-Entry>
- <map-Key>
- <std-String value="remotePullAndReportEntitySyncDataName"/>
- </map-Key>
- <map-Value>
- <std-String value="remotePullAndReportEntitySyncDataRmi"/>
- </map-Value>
- </map-Entry>
- </map-HashMap>
-</ofbiz-ser>
- ]]></runtimeInfo>
- </RuntimeData>
- <JobSandbox jobId="POS1PULL" jobName="Pull POS Catalog" runtimeDataId="POS1PULL" runTime="2000-01-01 00:00:00.000" serviceName="runPullEntitySync" poolId="pool" runAsUser="system" recurrenceInfoId="POS1PULL"/>
- -->
-
-</entity-engine-xml>
-
diff --git a/webpos/data/PosTypeData.xml b/webpos/data/PosTypeData.xml
deleted file mode 100644
index 7d72d50a0..000000000
--- a/webpos/data/PosTypeData.xml
+++ /dev/null
@@ -1,31 +0,0 @@
-<?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>
- <StatusType description="Pos Transaction" hasTable="N" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="Active" sequenceId="01" statusCode="ACTIVE" statusId="POSTX_ACTIVE" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="Sold" sequenceId="10" statusCode="SOLD" statusId="POSTX_SOLD" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="Returned" sequenceId="15" statusCode="RETURNED" statusId="POSTX_RETURNED" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="Voided" sequenceId="20" statusCode="VOIDED" statusId="POSTX_VOIDED" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="PaidIn" sequenceId="30" statusCode="PAID_IN" statusId="POSTX_PAID_IN" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="PaidOut" sequenceId="40" statusCode="PAID_OUT" statusId="POSTX_PAID_OUT" statusTypeId="POSTX_STATUS"/>
- <StatusItem description="Closed" sequenceId="50" statusCode="CLOSED" statusId="POSTX_CLOSED" statusTypeId="POSTX_STATUS"/>
-
- <Enumeration description="POS Channel" enumCode="POS_CHANNEL" enumId="POS_SALES_CHANNEL" sequenceId="98" enumTypeId="ORDER_SALES_CHANNEL"/>
-</entity-engine-xml>
diff --git a/webpos/data/WebPosSecurityGroupDemoData.xml b/webpos/data/WebPosSecurityGroupDemoData.xml
deleted file mode 100644
index e17e9149a..000000000
--- a/webpos/data/WebPosSecurityGroupDemoData.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-<?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>
- <!-- WedbPOS security -->
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FLEXADMIN" permissionId="MYPORTALBASE_ADMIN"/>
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="FULLADMIN" permissionId="WEBPOS_ADMIN"/>
-</entity-engine-xml>
diff --git a/webpos/data/WebPosSecurityPermissionSeedData.xml b/webpos/data/WebPosSecurityPermissionSeedData.xml
deleted file mode 100644
index af3b82722..000000000
--- a/webpos/data/WebPosSecurityPermissionSeedData.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-<?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>
- <!-- WedbPOS security -->
- <SecurityPermission description="ALL Web POS operations." permissionId="WEBPOS_ADMIN"/>
- <SecurityPermission description="Web POS View permission." permissionId="WEBPOS_VIEW"/>
-
- <!-- SUPER group -->
- <SecurityGroupPermission fromDate="2001-05-13 12:00:00.0" groupId="SUPER" permissionId="WEBPOS_ADMIN"/>
-</entity-engine-xml>
diff --git a/webpos/entitydef/entitymodel.xml b/webpos/entitydef/entitymodel.xml
deleted file mode 100644
index 636ccc043..000000000
--- a/webpos/entitydef/entitymodel.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?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="https://ofbiz.apache.org/dtds/entitymodel.xsd">
- <!-- ========================================================= -->
- <!-- ======================== Defaults ======================= -->
- <!-- ========================================================= -->
- <title>Entity of an Apache OFBiz Component</title>
- <description>None</description>
- <version>1.0</version>
-
- <!-- ========================================================= -->
- <!-- ======================== Data Model ===================== -->
- <!-- The modules in this file are as follows: -->
- <!-- - org.apache.ofbiz.plugins.pos -->
- <!-- ========================================================= -->
-
-
- <!-- ========================================================= -->
- <!-- org.apache.ofbiz.plugins.pos -->
- <!-- ========================================================= -->
- <entity entity-name="PosTerminal"
- package-name="org.apache.ofbiz.plugins.pos"
- title="Pos Terminal">
- <field name="posTerminalId" type="id"></field>
- <field name="facilityId" type="id"></field>
- <field name="pushEntitySyncId" type="id"></field>
- <field name="terminalName" type="name"></field>
- <prim-key field="posTerminalId"/>
- </entity>
- <entity entity-name="PosTerminalLog"
- package-name="org.apache.ofbiz.plugins.pos"
- title="Pos Terminal Log">
- <field name="posTerminalLogId" type="id"></field>
- <field name="posTerminalId" type="id"></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.apache.ofbiz.plugins.pos"
- title="Pos Terminal State">
- <field name="posTerminalId" type="id"></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.apache.ofbiz.plugins.pos"
- title="Pos Terminal Internal Transaction">
- <field name="posTerminalLogId" type="id"></field>
- <field name="paidAmount" type="currency-amount"></field>
- <field name="reasonComment" type="comment"/>
- <field name="reasonEnumId" type="id"/>
- <prim-key field="posTerminalLogId"/>
- <relation type="one" fk-name="POS_TRA_POS" rel-entity-name="PosTerminalLog">
- <key-map field-name="posTerminalLogId"/>
- </relation>
- <relation type="one" fk-name="POS_TRA_PAYENUM" rel-entity-name="Enumeration">
- <key-map field-name="reasonEnumId" rel-field-name="enumId"/>
- </relation>
- </entity>
-</entitymodel>
diff --git a/webpos/minilang/CartEvents.xml b/webpos/minilang/CartEvents.xml
deleted file mode 100644
index 72bf9f124..000000000
--- a/webpos/minilang/CartEvents.xml
+++ /dev/null
@@ -1,459 +0,0 @@
-<?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" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <simple-method method-name="setPartyToCart" short-description="Set party to cart" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <clear-field field="contactMechId"/>
- <if-not-empty field="cart">
- <set field="delegator" from-field="parameters.delegator"/>
- <set field="partyId" from-field="parameters.partyId"/>
- <set field="showOld" value="false" type="Boolean"/>
- <call-class-method class-name="org.apache.ofbiz.party.contact.ContactMechWorker" method-name="getPartyContactMechValueMaps" ret-field="partyContactMechValueMaps">
- <field field="delegator" type="org.apache.ofbiz.entity.Delegator"/>
- <field field="partyId" type="String"/>
- <field field="showOld" type="boolean"/>
- </call-class-method>
- <if-not-empty field="partyContactMechValueMaps">
- <iterate list="partyContactMechValueMaps" entry="partyContactMechValueMap">
- <set field="contactMech" from-field="partyContactMechValueMap.contactMech"/>
- <set field="partyContactMechPurposes" from-field="partyContactMechValueMap.partyContactMechPurposes"/>
- <if-not-empty field="partyContactMechPurposes">
- <iterate list="partyContactMechPurposes" entry="partyContactMechPurpose">
- <if-compare-field field="partyContactMechPurpose.contactMechPurposeTypeId" operator="equals" to-field="parameters.contactMechPurposeTypeId" type="String">
- <if-compare-field field="partyContactMechPurpose.contactMechId" operator="equals" to-field="parameters.contactMechId" type="String">
- <set field="contactMechId" from-field="partyContactMechPurpose.contactMechId"/>
- </if-compare-field>
- </if-compare-field>
- </iterate>
- </if-not-empty>
- </iterate>
- </if-not-empty>
- <if-empty field="contactMechId">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosBillingOrShippingLocationMissing"/></add-error>
- <check-errors/>
- <else>
- <call-object-method obj-field="webPosSession" method-name="getUserLogin" ret-field="userLogin"/>
- <call-object-method obj-field="webPosSession" method-name="getDispatcher" ret-field="dispatcher"/>
- <call-object-method obj-field="cart" method-name="setUserLogin">
- <field field="userLogin" type="org.apache.ofbiz.entity.GenericValue"/>
- <field field="dispatcher" type="org.apache.ofbiz.service.LocalDispatcher"/>
- </call-object-method>
- <set field="contactMechPurposeTypeId" from-field="parameters.contactMechPurposeTypeId"/>
- <call-object-method obj-field="cart" method-name="addContactMech">
- <field field="contactMechPurposeTypeId" type="String"/>
- <field field="contactMechId" type="String"/>
- </call-object-method>
- <if-compare field="contactMechPurposeTypeId" operator="equals" value="SHIPPING_LOCATION">
- <call-object-method obj-field="cart" method-name="setShipToCustomerPartyId">
- <field field="partyId" type="String"/>
- </call-object-method>
- <else>
- <call-object-method obj-field="cart" method-name="setBillToCustomerPartyId">
- <field field="partyId" type="String"/>
- </call-object-method>
- <call-object-method obj-field="cart" method-name="setPlacingCustomerPartyId">
- <field field="partyId" type="String"/>
- </call-object-method>
- </else>
- </if-compare>
- <call-object-method obj-field="webPosTransaction" method-name="calcTax"/>
- <check-errors/>
- </else>
- </if-empty>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="addCartItem" short-description="Add Cart Item" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-class-method class-name="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" method-name="addToCart">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="response" type="jakarta.servlet.http.HttpServletResponse"/>
- </call-class-method>
- <call-object-method obj-field="webPosTransaction" method-name="calcTax"/>
- <check-errors/>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="updateCartItem" short-description="Update Cart Item" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <if-not-empty field="cart">
- <set field="cartLineIndex" from-field="parameters.cartLineIndex" type="Integer"/>
- <call-object-method obj-field="cart" method-name="findCartItem" ret-field="cartItem">
- <field field="cartLineIndex" type="int"/>
- </call-object-method>
- <if-not-empty field="cartItem">
- <set field="quantity" from-field="parameters.quantity" type="BigDecimal"/>
- <set field="dispatcher" from-field="parameters.dispatcher"/>
- <set field="triggerExternalOps" value="true" type="Boolean"/>
- <set field="resetShipGroup" value="true" type="Boolean"/>
- <set field="updateProductPrice" value="false" type="Boolean"/>
- <call-object-method obj-field="cartItem" method-name="setQuantity">
- <field field="quantity" type="BigDecimal"/>
- <field field="dispatcher" type="org.apache.ofbiz.service.LocalDispatcher"/>
- <field field="cart" type="org.apache.ofbiz.order.shoppingcart.ShoppingCart"/>
- <field field="triggerExternalOps" type="boolean"/>
- <field field="resetShipGroup" type="boolean"/>
- <field field="updateProductPrice" type="boolean"/>
- </call-object-method>
- <call-object-method obj-field="webPosTransaction" method-name="calcTax"/>
- <check-errors/>
- </if-not-empty>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="deleteCartItem" short-description="Delete Cart Item" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <if-not-empty field="cart">
- <set field="cartLineIndex" from-field="parameters.cartLineIndex" type="Integer"/>
- <set field="dispatcher" from-field="parameters.dispatcher"/>
- <call-object-method obj-field="cart" method-name="removeCartItem">
- <field field="cartLineIndex" type="int"/>
- <field field="dispatcher" type="org.apache.ofbiz.service.LocalDispatcher"/>
- </call-object-method>
- <call-object-method obj-field="webPosTransaction" method-name="calcTax"/>
- <check-errors/>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="getProductAndPrice" short-description="Get Product And Price" login-required="true">
- <entity-one entity-name="Product" value-field="product">
- <field-map field-name="productId" from-field="parameters.productId"/>
- </entity-one>
- <if-empty field="product">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosCannotFindProduct"/></add-error>
- <check-errors/>
- <else>
- <script>groovy:
- webPosSession = org.apache.ofbiz.webpos.WebPosEvents.getWebPosSession(request, null)
- if (webPosSession != null) {
- parameters.put("webPosSession", webPosSession)
- parameters.put("productStoreId", org.apache.ofbiz.product.store.ProductStoreWorker.getProductStoreId(request))
- parameters.put("catalogId", org.apache.ofbiz.product.catalog.CatalogWorker.getCurrentCatalogId(request))
- parameters.put("webSiteId", org.apache.ofbiz.webapp.website.WebSiteWorker.getWebSiteId(request))
- session = request.getSession()
- parameters.put("autoUserLogin", session.getAttribute("autoUserLogin"))
- cart = webPosSession.getCart()
- if (cart != null) {
- parameters.put("cart", cart)
- parameters.put("currencyId", cart.getCurrency())
- parameters.put("agreementId", cart.getAgreementId())
- parameters.put("partyId", cart.getPartyId())
- }
- }
- </script>
- <if-not-empty field="parameters.webPosSession">
- <if-not-empty field="parameters.cart">
- <set field="priceContext.product" from-field="product"/>
- <set field="priceContext.prodCatalogId" from-field="parameters.catalogId"/>
- <set field="priceContext.currencyUomId" from-field="parameters.currencyId"/>
- <set field="priceContext.autoUserLogin" from-field="parameters.autoUserLogin"/>
- <set field="priceContext.webSiteId" from-field="parameters.webSiteId"/>
- <set field="priceContext.productStoreId" from-field="parameters.productStoreId"/>
- <set field="priceContext.checkIncludeVat" value="Y"/>
- <set field="priceContext.agreementId" from-field="parameters.agreementId"/>
- <set field="priceContext.partyId" from-field="parameters.partyId"/>
- <call-service service-name="calculateProductPrice" in-map-name="priceContext">
- <result-to-field result-name="price" field="price"/>
- </call-service>
- <field-to-request field="price" request-name="price"/>
- <field-to-request field="parameters.currencyId" request-name="currencyUomId"/>
- <field-to-request field="product" request-name="product"/>
- </if-not-empty>
- </if-not-empty>
- </else>
- </if-empty>
- </simple-method>
-
- <simple-method method-name="getFormattedAmount" short-description="Get Formatted Amount" login-required="true">
- <set field="amount" from-field="parameters.amount" type="BigDecimal" default-value="0"/>
- <set field="isoCode" from-field="parameters.currencyId" type="String"/>
- <set field="maximumFractionDigits" value="2" type="Integer"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilFormatOut" method-name="formatCurrency" ret-field="formattedAmount">
- <field field="amount" type="BigDecimal"/>
- <field field="isoCode" type="String"/>
- <field field="locale" type="Locale"/>
- <field field="maximumFractionDigits" type="int"/>
- </call-class-method>
- <field-to-request field="formattedAmount" request-name="formattedAmount"/>
- </simple-method>
-
- <simple-method method-name="getFormattedProductFeaturePrice" short-description="Get Formatted Product Feature Price" login-required="true">
- <entity-and entity-name="ProductFeaturePrice" list="productFeaturePrices" filter-by-date="true">
- <field-map field-name="productFeatureId" from-field="parameters.productFeatureId"/>
- <field-map field-name="productPriceTypeId" from-field="parameters.productPriceTypeId"/>
- <field-map field-name="currencyUomId" from-field="parameters.currencyUomId"/>
- </entity-and>
- <if-not-empty field="productFeaturePrices">
- <first-from-list list="productFeaturePrices" entry="productFeaturePrice"/>
- <set field="amount" from-field="productFeaturePrice.price" type="BigDecimal" default-value="0"/>
- <set field="isoCode" from-field="productFeaturePrice.currencyUomId" type="String"/>
- <set field="maximumFractionDigits" value="2" type="Integer"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilFormatOut" method-name="formatCurrency" ret-field="formattedFeaturePrice">
- <field field="amount" type="BigDecimal"/>
- <field field="isoCode" type="String"/>
- <field field="locale" type="Locale"/>
- <field field="maximumFractionDigits" type="int"/>
- </call-class-method>
- <field-to-request field="formattedFeaturePrice" request-name="formattedFeaturePrice"/>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="removeSalesRep" short-description="Remove Sales Rep from cart" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <if-not-empty field="cart">
- <call-object-method obj-field="cart" method-name="getAdditionalPartyRoleMap" ret-field="partyRoles"/>
- <check-errors/>
- <set field="roleTypeId" value="SALES_REP"/>
- <call-object-method obj-field="partyRoles" method-name="get" ret-field="partyRole">
- <field field="roleTypeId" type="Object"/>
- </call-object-method>
- <check-errors/>
- <call-object-method obj-field="partyRole" method-name="size" ret-field="partyRoleSize"/>
- <check-errors/>
- <if-compare field="partyRoleSize" operator="less-equals" value="1" type="Integer">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosSelectOneSalesRep"/></add-error>
- <check-errors/>
- <else>
- <set field="partyId" from-field="parameters.partyId"/>
- <set field="roleTypeId" value="SALES_REP"/>
- <call-object-method obj-field="cart" method-name="removeAdditionalPartyRole">
- <field field="partyId" type="String"/>
- <field field="roleTypeId" type="String"/>
- </call-object-method>
- </else>
- </if-compare>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="addSalesRep" short-description="Add Sales Rep to cart" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <if-not-empty field="cart">
- <set field="partyId" from-field="parameters.partyId"/>
- <set field="roleTypeId" value="SALES_REP"/>
- <call-object-method obj-field="cart" method-name="addAdditionalPartyRole">
- <field field="partyId" type="String"/>
- <field field="roleTypeId" type="String"/>
- </call-object-method>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="getShipMethods" short-description="Get shipping methods" login-required="false">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="shoppingCart"/>
- <check-errors/>
- <set field="dispatcher" from-field="parameters.dispatcher" type="Object"/>
- <script>groovy:
- import org.apache.ofbiz.order.shoppingcart.shipping.ShippingEstimateWrapper
- shippingEstWpr = ShippingEstimateWrapper.getWrapper(dispatcher, shoppingCart, 0)
- parameters.put("shippingEstWpr", shippingEstWpr)
- </script>
- <set field="shippingEstWpr" from-field="parameters.shippingEstWpr"/>
- <call-object-method obj-field="shippingEstWpr" method-name="getShippingMethods" ret-field="carrierShipmentMethodList"/>
- <call-object-method obj-field="shoppingCart" method-name="getShipmentMethodTypeId" ret-field="shipmentMethodTypeId"/>
- <call-object-method obj-field="shoppingCart" method-name="getCarrierPartyId" ret-field="carrierPartyId"/>
- <call-object-method obj-field="shoppingCart" method-name="getCurrency" ret-field="currency"/>
- <if-not-empty field="shipmentMethodTypeId">
- <if-not-empty field="carrierPartyId">
- <set field="chosenShippingMethod" value="${shipmentMethodTypeId}@${carrierPartyId}"/>
- </if-not-empty>
- </if-not-empty>
- <iterate list="carrierShipmentMethodList" entry="carrierShipmentMethod">
- <call-object-method obj-field="shippingEstWpr" method-name="getShippingEstimate" ret-field="shippingEst">
- <field field="carrierShipmentMethod" type="org.apache.ofbiz.entity.GenericValue"/>
- </call-object-method>
- <if-empty field="shippingEst">
- <set field="shippingEst" value="-1" type="Integer"/>
- </if-empty>
- <set field="negValue" value="-1" type="Integer"/>
- <set field="shippingMethod" value="${carrierShipmentMethod.shipmentMethodTypeId}@${carrierShipmentMethod.partyId}"/>
- <if-compare-field field="shippingEst" operator="greater" to-field="negValue">
- <set field="shippingDesc" value="${carrierShipmentMethod.partyId} ${carrierShipmentMethod.description} - ${shippingEst?currency(${currency})}"/>
- <else>
- <set field="shippingDesc" value="${carrierShipmentMethod.partyId} ${carrierShipmentMethod.description} - ${uiLabelMap.OrderCalculatedOffline}"/>
- </else>
- </if-compare-field>
- <set field="shippingOptionMap.shippingMethod" from-field="shippingMethod"/>
- <set field="shippingOptionMap.shippingDesc" from-field="shippingDesc"/>
- <if-not-empty field="carrierShipmentMethod.productStoreShipMethId">
- <set field="shippingOptionMap.productStoreShipMethId" from-field="carrierShipmentMethod.productStoreShipMethId"/>
- </if-not-empty>
- <field-to-list field="shippingOptionMap" list="shippingOptions"/>
- <clear-field field="shippingOptionMap"/>
- </iterate>
- <set field="parameters.shippingOptions" from-field="shippingOptions"/>
- <field-to-request field="parameters.shippingOptions" request-name="shippingOptions"/>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="setShipMethod" short-description="Set ship method" login-required="false">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="shoppingCart"/>
- <check-errors/>
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <script>groovy:
- shippingMethod = parameters.get("shipMethod")
- if(shippingMethod != null) {
- shipmentMethodTypeId = shippingMethod.substring(0, shippingMethod.indexOf("@"))
- if (shippingMethod.indexOf(":") != -1) {
- carrierPartyId = shippingMethod.substring(shippingMethod.indexOf("@")+1, shippingMethod.indexOf(":"))
- productStoreShipMethId = shippingMethod.substring(shippingMethod.indexOf(":")+1)
- parameters.put("productStoreShipMethId", productStoreShipMethId)
- } else {
- carrierPartyId = shippingMethod.substring(shippingMethod.indexOf("@")+1)
- }
- parameters.put("shipmentMethodTypeId", shipmentMethodTypeId)
- parameters.put("carrierPartyId", carrierPartyId)
- }
- </script>
- <set field="shipmentMethodTypeId" from-field="parameters.shipmentMethodTypeId"/>
- <set field="carrierPartyId" from-field="parameters.carrierPartyId"/>
- <set field="productStoreShipMethId" from-field="parameters.productStoreShipMethId"/>
- <entity-one entity-name="CarrierAndShipmentMethod" value-field="shipmentMethod">
- <field-map field-name="shipmentMethodTypeId" from-field="shipmentMethodTypeId"/>
- <field-map field-name="partyId" from-field="carrierPartyId"/>
- <field-map field-name="roleTypeId" value="CARRIER"/>
- </entity-one>
- <field-to-request field="shipmentMethod.description" request-name="shippingDescription"/>
- <call-object-method obj-field="shoppingCart" method-name="setAllShipmentMethodTypeId">
- <field field="shipmentMethodTypeId"/>
- </call-object-method>
- <call-object-method obj-field="shoppingCart" method-name="setAllCarrierPartyId">
- <field field="carrierPartyId"/>
- </call-object-method>
- <call-object-method obj-field="shoppingCart" method-name="setAllProductStoreShipMethId">
- <field field="productStoreShipMethId"/>
- </call-object-method>
- <call-object-method obj-field="shoppingCart" method-name="getCurrency" ret-field="isoCode"/>
- <set field="dispatcher" from-field="parameters.dispatcher" type="Object"/>
- <set field="delegator" from-field="parameters.delegator" type="Object"/>
- <set field="locale" from-field="parameters.locale" type="Object"/>
- <script>groovy:
- Map shipCost = org.apache.ofbiz.order.shoppingcart.shipping.ShippingEvents.getShipGroupEstimate(dispatcher, delegator, shoppingCart, 0);
- shippingTotal = shipCost.get("shippingTotal")
- if (shippingTotal == null) {
- shippingTotal = BigDecimal.ZERO;
- }
- shoppingCart.setItemShipGroupEstimate(shippingTotal, 0)
- parameters.put("shippingTotal", org.apache.ofbiz.base.util.UtilFormatOut.formatCurrency(shippingTotal, isoCode, locale))
-
- // Calculate and add the tax adjustments
- webPosTransaction.calcTax()
-
- salesTax = shoppingCart.getTotalSalesTax()
- totalSalesTax = org.apache.ofbiz.base.util.UtilFormatOut.formatCurrency(salesTax, isoCode, locale)
- parameters.put("totalSalesTax", totalSalesTax)
-
- cartGrandTotal = org.apache.ofbiz.base.util.UtilFormatOut.formatCurrency(shoppingCart.getGrandTotal(), isoCode, locale)
- parameters.put("cartGrandTotal", cartGrandTotal)
- </script>
- <call-class-method method-name="doPromotions" class-name="org.apache.ofbiz.order.shoppingcart.product.ProductPromoWorker">
- <field field="shoppingCart" type="org.apache.ofbiz.order.shoppingcart.ShoppingCart"/>
- <field field="dispatcher" type="org.apache.ofbiz.service.LocalDispatcher"/>
- </call-class-method>
- <field-to-request field="parameters.shippingTotal" request-name="shippingTotal"/>
- <field-to-request field="parameters.cartGrandTotal" request-name="cartGrandTotal"/>
- <field-to-request field="parameters.totalSalesTax" request-name="totalSalesTax"/>
- </if-not-empty>
- </simple-method>
-</simple-methods>
\ No newline at end of file
diff --git a/webpos/minilang/CustomerEvents.xml b/webpos/minilang/CustomerEvents.xml
deleted file mode 100644
index a600c1ec6..000000000
--- a/webpos/minilang/CustomerEvents.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?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" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <simple-method method-name="createUpdateAddress" short-description="Create/Update party address" login-required="true">
- <set-service-fields service-name="createUpdatePerson" map="parameters" to-map="createUpdatePersonMap"/>
- <call-service service-name="createUpdatePerson" in-map-name="createUpdatePersonMap">
- <result-to-field result-name="partyId" field="parameters.partyId"/>
- </call-service>
- <if-empty field="parameters.contactMechId">
- <set-service-fields service-name="createPostalAddressAndPurposes" map="parameters" to-map="createPostalAddressAndPurposesMap"/>
- <call-service service-name="createPostalAddressAndPurposes" in-map-name="createPostalAddressAndPurposesMap">
- <result-to-field result-name="contactMechId" field="parameters.contactMechId"/>
- </call-service>
- <else>
- <set-service-fields service-name="updatePostalAddressAndPurposes" map="parameters" to-map="updatePostalAddressAndPurposesMap"/>
- <call-service service-name="updatePostalAddressAndPurposes" in-map-name="updatePostalAddressAndPurposesMap"/>
- </else>
- </if-empty>
- </simple-method>
-</simple-methods>
\ No newline at end of file
diff --git a/webpos/minilang/ManagerEvents.xml b/webpos/minilang/ManagerEvents.xml
deleted file mode 100644
index 30fef1cba..000000000
--- a/webpos/minilang/ManagerEvents.xml
+++ /dev/null
@@ -1,388 +0,0 @@
-<?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" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <simple-method method-name="openTerminal" short-description="Open Terminal" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="isManagerLoggedIn" ret-field="mgrLoggedIn"/>
- <if-compare field="mgrLoggedIn" operator="equals" value="true" type="String">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="isOpen" ret-field="isOpen"/>
- <if-compare field="isOpen" operator="equals" value="false">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="startingDrawerAmount">
- <convert type="BigDecimal" to-field="startingDrawerAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerOpenTerminalDrawingAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.startingDrawerAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerOpenTerminalDrawingAmountNotValid"/></add-error>
- <check-errors/>
- <else>
- <make-value entity-name="PosTerminalState" value-field="terminalState"/>
- <call-object-method obj-field="webPosSession" method-name="getId" ret-field="terminalState.posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilDateTime" method-name="nowTimestamp" ret-field="terminalState.openedDate"/>
- <call-object-method obj-field="webPosSession" method-name="getUserLoginId" ret-field="terminalState.openedByUserLoginId"/>
- <call-object-method obj-field="webPosTransaction" method-name="getTransactionId" ret-field="terminalState.startingTxId"/>
- <set from-field="context.startingDrawerAmount" field="terminalState.startingDrawerAmount" type="BigDecimal"/>
- <create-value value-field="terminalState"/>
- <check-errors/>
- <log level="info" message="Created PosTerminalState ${terminalState.startingTxId}"/>
- </else>
- </if-empty>
- <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>
- </simple-method>
-
- <simple-method method-name="closeTerminal" short-description="Close Terminal" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="isManagerLoggedIn" ret-field="mgrLoggedIn"/>
- <if-compare field="mgrLoggedIn" operator="equals" value="true">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="getTerminalState" ret-field="terminalState"/>
- <if-not-empty field="terminalState">
- <if-not-empty field="parameters.endingDrawerCashAmount">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="endingDrawerCashAmount">
- <convert type="BigDecimal" to-field="endingDrawerCashAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerOpenTerminalDrawingAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.endingDrawerCashAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCashAmountNotValid"/></add-error>
- <check-errors/>
- </if-empty>
- </if-not-empty>
- <if-not-empty field="parameters.endingDrawerCheckAmount">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="endingDrawerCheckAmount">
- <convert type="BigDecimal" to-field="endingDrawerCheckAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCheckAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.endingDrawerCheckAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCheckAmountNotValid"/></add-error>
- <check-errors/>
- </if-empty>
- </if-not-empty>
- <if-not-empty field="parameters.endingDrawerCcAmount">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="endingDrawerCcAmount">
- <convert type="BigDecimal" to-field="endingDrawerCcAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCcAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.endingDrawerCcAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalCcAmountNotValid"/></add-error>
- <check-errors/>
- </if-empty>
- </if-not-empty>
- <if-not-empty field="parameters.endingDrawerGcAmount">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="endingDrawerGcAmount">
- <convert type="BigDecimal" to-field="endingDrawerGcAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalGcAmounNotValidt"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.endingDrawerGcAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalGcAmounNotValidt"/></add-error>
- <check-errors/>
- </if-empty>
- </if-not-empty>
- <if-not-empty field="parameters.endingDrawerOtherAmount">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="endingDrawerOtherAmount">
- <convert type="BigDecimal" to-field="endingDrawerOtherAmount" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalOtherAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- <if-empty field="context.endingDrawerOtherAmount">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerCloseTerminalOtherAmountNotValid"/></add-error>
- <check-errors/>
- </if-empty>
- </if-not-empty>
- <call-object-method obj-field="webPosSession" method-name="getUserLoginId" ret-field="terminalState.closedByUserLoginId"/>
- <set field="terminalState.actualEndingCash" from-field="context.endingDrawerCashAmount" type="BigDecimal"/>
- <set field="terminalState.actualEndingCheck" from-field="context.endingDrawerCheckAmount" type="BigDecimal"/>
- <set field="terminalState.actualEndingCc" from-field="context.endingDrawerCcAmount" type="BigDecimal"/>
- <set field="terminalState.actualEndingGc" from-field="context.endingDrawerGcAmount" type="BigDecimal"/>
- <set field="terminalState.actualEndingOther" from-field="context.endingDrawerOtherAmount" type="BigDecimal"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilDateTime" method-name="nowTimestamp" ret-field="terminalState.closedDate"/>
- <call-object-method obj-field="webPosTransaction" method-name="getTransactionId" ret-field="terminalState.endingTxId"/>
- <store-value value-field="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) -->
- </simple-method>
-
- <simple-method method-name="voidOrder" short-description="Void Order" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="isManagerLoggedIn" ret-field="mgrLoggedIn"/>
- <if-compare field="mgrLoggedIn" operator="equals" value="true">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="getTerminalState" ret-field="terminalState"/>
- <if-not-empty field="terminalState">
- <set field="fieldName" value="openedDate" type="String"/>
- <call-object-method obj-field="terminalState" method-name="getTimestamp" ret-field="openDate">
- <field field="fieldName" type="String"/>
- </call-object-method>
- <entity-one entity-name="OrderHeader" value-field="orderHeader">
- <field-map field-name="orderId" from-field="parameters.orderId"/>
- </entity-one>
- <if-not-empty field="orderHeader">
- <set field="fieldName" value="orderDate" type="String"/>
- <call-object-method obj-field="orderHeader" method-name="getTimestamp" ret-field="orderDate">
- <field field="fieldName" type="String"/>
- </call-object-method>
- <call-object-method obj-field="orderDate" method-name="after" ret-field="isAfter">
- <field field="openDate" type="Timestamp"/>
- </call-object-method>
- <if-compare field="isAfter" operator="equals" value="true">
- <call-object-method obj-field="webPosSession" method-name="getDispatcher" ret-field="dispatcher"/>
- <set field="returnOrder.orderId" from-field="parameters.orderId"/>
- <set field="returnOrder.returnHeaderTypeId" value="CUSTOMER_RETURN"/>
- <call-object-method obj-field="webPosSession" method-name="getUserLogin" ret-field="returnOrder.userLogin"/>
- <set field="serviceName" value="quickReturnOrder"/>
- <call-object-method obj-field="dispatcher" method-name="runSync" ret-field="returnResp">
- <field field="serviceName" type="String"/>
- <field field="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 -->
- </simple-method>
-
- <simple-method method-name="shutdown" short-description="Shutdown" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="isManagerLoggedIn" ret-field="mgrLoggedIn"/>
- <if-compare field="mgrLoggedIn" operator="equals" value="true" type="String">
- <call-object-method obj-field="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">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="isManagerLoggedIn" ret-field="mgrLoggedIn"/>
- <if-compare field="mgrLoggedIn" operator="equals" value="true">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="isOpen" ret-field="isOpen"/>
- <check-errors/>
- <if-compare field="isOpen" operator="equals" value="true">
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="amountInOut">
- <convert type="BigDecimal" to-field="amountInOut" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerPaidOutAndIndAmountNotValid"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <if-not-empty field="context.amountInOut">
- <make-value entity-name="PosTerminalInternTx" value-field="internTx"/>
- <call-object-method obj-field="webPosTransaction" method-name="getTerminalLogId" ret-field="internTx.posTerminalLogId"/>
- <set field="internTx.paidAmount" from-field="context.amountInOut" type="BigDecimal"/>
- <set field="internTx.reasonComment" from-field="parameters.reasonCommentInOut"/>
- <if-compare field="parameters.type" operator="equals" value="IN">
- <set field="internTx.reasonEnumId" from-field="parameters.reasonIn"/>
- <else>
- <set field="internTx.reasonEnumId" from-field="parameters.reasonOut"/>
- </else>
- </if-compare>
- <create-value value-field="internTx"/>
- <set from-field="parameters.type" field="paidInOut"/>
- <call-object-method obj-field="webPosTransaction" method-name="paidInOut">
- <field field="paidInOut" type="String"/>
- </call-object-method>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerPaidOutAndIndAmountNotValid"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <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>
- </simple-method>
-
- <simple-method method-name="modifyPrice" short-description="Modify Price" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="price">
- <convert type="BigDecimal" to-field="price" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosManagerModifyPriceNotValidPrice"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <if-not-empty field="context.price">
- <set field="cartLineIdx" from-field="parameters.cartLineIdx" type="Integer"/>
- <call-object-method obj-field="webPosTransaction" method-name="modifyPrice">
- <field field="cartLineIdx" type="int"/>
- <field field="context.price" type="BigDecimal"/>
- </call-object-method>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="calcTax"/>
- <check-errors/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosManagerModifyPriceNotValidPrice"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-</simple-methods>
\ No newline at end of file
diff --git a/webpos/minilang/PaymentEvents.xml b/webpos/minilang/PaymentEvents.xml
deleted file mode 100644
index e4a3ef635..000000000
--- a/webpos/minilang/PaymentEvents.xml
+++ /dev/null
@@ -1,596 +0,0 @@
-<?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" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <simple-method method-name="payCash" short-description="Pay Cash" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <if-empty field="parameters.amountCash">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="context.amountCash"/>
- <check-errors/>
- <else>
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="amountCash">
- <convert type="BigDecimal" to-field="amountCash" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosPayCashNotValidAmount"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- </else>
- </if-empty>
- <if-empty field="context.amountCash">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCashNotValidAmount"/></add-error>
- <check-errors/>
- <else>
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="totalDue"/>
- <if-compare field="totalDue" operator="less-equals" value="0.00" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosTransactionTotalDueZero"/></add-error>
- <check-errors/>
- </if-compare>
- <if-compare-field field="totalDue" operator="less" to-field="context.amountCash" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCashGreaterThanTotalDue"/></add-error>
- <check-errors/>
- </if-compare-field>
- <log level="info" message="Processing [Cash] Amount : ${context.amountCash}"/>
- <set field="paymentType" value="CASH"/>
- <set field="refNum" value=""/>
- <set field="authCode" value=""/>
- <call-object-method obj-field="webPosTransaction" method-name="addPayment">
- <field field="paymentType" type="String"/>
- <field field="context.amountCash" type="BigDecimal"/>
- <field field="refNum" type="String"/>
- <field field="authCode" type="String"/>
- </call-object-method>
- <check-errors/>
- </else>
- </if-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="payCheck" short-description="Pay Check" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <if-empty field="parameters.amountCheck">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="context.amountCheck"/>
- <check-errors/>
- <else>
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="amountCheck">
- <convert type="BigDecimal" to-field="amountCheck" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosPayCheckNotValidAmount"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- </else>
- </if-empty>
- <if-not-empty field="context.amountCheck">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="totalDue"/>
- <if-compare field="totalDue" operator="less-equals" value="0.00" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosTransactionTotalDueZero"/></add-error>
- <check-errors/>
- </if-compare>
- <if-compare-field field="totalDue" operator="less" to-field="context.amountCheck" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCheckGreaterThanTotalDue"/></add-error>
- <check-errors/>
- </if-compare-field>
- <set field="paymentType" value="PERSONAL_CHECK"/>
- <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <call-class-method class-name="org.apache.ofbiz.webpos.transaction.WebPosTransaction" method-name="getNoPaymentCode" ret-field="noPaymentCode"/>
- <call-class-method class-name="org.apache.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="webPosTransaction" method-name="clearPayment">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="processNoPayment">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <!-- External Payment -->
- <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="webPosTransaction" method-name="processExternalPayment">
- <field field="paymentType" type="String"/>
- <field field="context.amountCheck" type="BigDecimal"/>
- <field field="refNum" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCheckMissingRefNum"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <!-- Internal Payment not yet supported -->
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCheckInternal"/></add-error>
- <check-errors/>
- </else>
- </if-compare-field>
- </else>
- </if-compare-field>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCheckNotValidAmount"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="payGiftCard" short-description="Pay Gift Card" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <if-empty field="parameters.amountGiftCard">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="context.amountGiftCard"/>
- <check-errors/>
- <else>
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="amountGiftCard">
- <convert type="BigDecimal" to-field="amountGiftCard" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosPayGiftCardNotValidAmount"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- </else>
- </if-empty>
- <if-not-empty field="context.amountGiftCard">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="totalDue"/>
- <if-compare field="totalDue" operator="less-equals" value="0.00" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosTransactionTotalDueZero"/></add-error>
- <check-errors/>
- </if-compare>
- <if-compare-field field="totalDue" operator="less" to-field="context.amountGiftCard" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayGiftCardGreaterThanTotalDue"/></add-error>
- <check-errors/>
- </if-compare-field>
- <set field="paymentType" value="GIFT_CARD"/>
- <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <call-class-method class-name="org.apache.ofbiz.webpos.transaction.WebPosTransaction" method-name="getNoPaymentCode" ret-field="noPaymentCode"/>
- <call-class-method class-name="org.apache.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="webPosTransaction" method-name="processNoPayment">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <!-- External Payment -->
- <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="webPosTransaction" method-name="processExternalPayment">
- <field field="paymentType" type="String"/>
- <field field="context.amountGiftCard" type="BigDecimal"/>
- <field field="refNum" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentGiftCardMissingRefNum"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <!-- Internal Payment not yet supported -->
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentGiftCardInternal"/></add-error>
- <check-errors/>
- </else>
- </if-compare-field>
- </else>
- </if-compare-field>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayGiftCardNotValidAmount"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="payCreditCard" short-description="Pay Credit Card" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <if-empty field="parameters.amountCreditCard">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="context.amountCreditCard"/>
- <check-errors/>
- <else>
- <call-map-processor in-map-name="parameters" out-map-name="context">
- <simple-map-processor name="inputValidate">
- <process field="amountCreditCard">
- <convert type="BigDecimal" to-field="amountCreditCard" replace="true" set-if-null="false">
- <fail-property resource="WebPosUiLabels" property="WebPosPayCreditCardNotValidAmount"/>
- </convert>
- </process>
- </simple-map-processor>
- </call-map-processor>
- <check-errors/>
- </else>
- </if-empty>
- <if-not-empty field="context.amountCreditCard">
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="totalDue"/>
- <if-compare field="totalDue" operator="less-equals" value="0.00" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosTransactionTotalDueZero"/></add-error>
- <check-errors/>
- </if-compare>
- <if-compare-field field="totalDue" operator="less" to-field="context.amountCreditCard" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCreditCardGreaterThanTotalDue"/></add-error>
- <check-errors/>
- </if-compare-field>
- <if-compare field="parameters.swipeCard" operator="equals" value="Y">
- <if-empty field="parameters.swipeData">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentSwipeDataEmpty"/></add-error>
- <check-errors/>
- </if-empty>
- <else>
- <if-empty field="parameters.firstName">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCreditCardFirstNameEmpty"/></add-error>
- <check-errors/>
- </if-empty>
- <if-empty field="parameters.lastName">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCreditCardLastNameEmpty"/></add-error>
- <check-errors/>
- </if-empty>
- <set field="paymentType" value="CREDIT_CARD"/>
- <call-object-method obj-field="webPosTransaction" method-name="checkPaymentMethodType" ret-field="paymentCheck">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <call-class-method class-name="org.apache.ofbiz.webpos.transaction.WebPosTransaction" method-name="getNoPaymentCode" ret-field="noPaymentCode"/>
- <call-class-method class-name="org.apache.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="webPosTransaction" method-name="processNoPayment">
- <field field="paymentType" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <!-- External Payment -->
- <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="webPosTransaction" method-name="processExternalPayment">
- <field field="paymentType" type="String"/>
- <field field="context.amountCreditCard" type="BigDecimal"/>
- <field field="refNum" type="String"/>
- </call-object-method>
- <check-errors/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardMissingRefNum"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <!-- Internal Payment -->
- <else>
- <!-- test credit card -->
- <if-not-empty field="parameters.cardNum">
- <set field="cardNum" from-field="parameters.cardNum"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilValidate" method-name="isCreditCard" ret-field="isCreditCard">
- <field field="cardNum" type="String"/>
- </call-class-method>
- <if-compare field="isCreditCard" operator="equals" value="false" type="String">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardInvalid"/></add-error>
- <check-errors/>
- </if-compare>
- <!-- test expiration date -->
- <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="cardExp" method-name="length" ret-field="length"/>
- <if-compare field="length" operator="not-equals" value="6">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardInvalidExpiringDate"/></add-error>
- <check-errors/>
- </if-compare>
- <set field="cardExpAfterToday" from-field="parameters.expMonth"/>
- <string-append string="/" field="cardExpAfterToday"/>
- <string-append string="${parameters.expYear}" field="cardExpAfterToday"/>
- <call-class-method class-name="org.apache.ofbiz.base.util.UtilValidate" method-name="isDateAfterToday" ret-field="isDateAfterToday">
- <field field="cardExpAfterToday" type="String"/>
- </call-class-method>
- <if-compare field="isDateAfterToday" operator="equals" value="false">
- <add-error><fail-property resource="AccountingUiLabels" property="AccountingCreditCardExpireDateBeforeToday"/></add-error>
- <check-errors/>
- </if-compare>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardInvalidExpiringDate"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <!-- 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="securityCode" method-name="length" ret-field="length"/>
- <if-compare field="length" operator="greater" value="4">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardInvalidSecurityCode"/></add-error>
- <check-errors/>
- </if-compare>
- </if-not-empty>
- <log level="info" message="Processing Credit Card Amount : ${context.amountCreditCard}"/>
- <set from-field="parameters.firstName" field="firstName"/>
- <set from-field="parameters.lastName" field="lastName"/>
- <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"/>
- <field field="lastName" type="String"/>
- </call-object-method>
- <check-errors/>
- <if-not-empty field="paymentId">
- <call-object-method obj-field="webPosTransaction" method-name="addPayment">
- <field field="paymentId" type="String"/>
- <field field="context.amountCreditCard" type="BigDecimal"/>
- </call-object-method>
- <check-errors/>
- <if-not-empty field="parameters.track2">
- <set field="refNum" value=""/>
- <set field="securityCode" value="parameters.track2"/>
- <call-object-method obj-field="webPosTransaction" method-name="setPaymentTrack2">
- <field field="paymentId" type="String"/>
- <field field="refNum" type="String"/>
- <field field="securityCode" type="String"/>
- </call-object-method>
- <else>
- <if-not-empty field="parameters.securityCode">
- <set field="refNum" value=""/>
- <set field="securityCode" value="parameters.securityCode"/>
- <call-object-method obj-field="webPosTransaction" method-name="setPaymentSecurityCode">
- <field field="paymentId" type="String"/>
- <field field="refNum" type="String"/>
- <field field="securityCode" type="String"/>
- </call-object-method>
- </if-not-empty>
- <if-not-empty field="parameters.postalCode">
- <set field="refNum" value=""/>
- <set field="securityCode" value="parameters.postalCode"/>
- <call-object-method obj-field="webPosTransaction" method-name="setPaymentPostalCode">
- <field field="paymentId" type="String"/>
- <field field="refNum" type="String"/>
- <field field="securityCode" type="String"/>
- </call-object-method>
- </if-not-empty>
- </else>
- </if-not-empty>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPaymentCreditCardInvalid"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </else>
- </if-compare-field>
- </else>
- </if-compare-field>
- </else>
- </if-compare>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPayCreditCardNotValidAmount"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="payFinish" short-description="Process Sale" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCart" ret-field="cart"/>
- <check-errors/>
- <if-not-empty field="cart">
- <call-object-method obj-field="cart" method-name="size" ret-field="cartSize"/>
- <check-errors/>
- <if-compare field="cartSize" operator="greater" value="0" type="Integer">
- <call-object-method obj-field="cart" method-name="getAdditionalPartyRoleMap" ret-field="partyRoles"/>
- <check-errors/>
- <call-object-method obj-field="partyRoles" method-name="size" ret-field="partyRolesSize"/>
- <check-errors/>
- <if-compare field="partyRolesSize" operator="less-equals" value="0">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosSelectOneSalesRep"/></add-error>
- <check-errors/>
- </if-compare>
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="getTotalDue" ret-field="totalDue"/>
- <check-errors/>
- <if-compare field="totalDue" operator="not-equals" value="0.00" type="BigDecimal">
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotEnoughFunds"/></add-error>
- <check-errors/>
- </if-compare>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="completeSale">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="response" type="jakarta.servlet.http.HttpServletResponse"/>
- </call-class-method>
- </if-compare>
- </if-not-empty>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-
- <simple-method method-name="clearPayment" short-description="Clear Payment" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <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="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="webPosTransaction" method-name="getPaymentMethodTypeId" ret-field="paymentMethodTypeId">
- <field field="payment" type="int"/>
- </call-object-method>
- <check-errors/>
- <if-not-empty field="paymentMethodTypeId">
- <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="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="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/>
- <check-errors/>
- <set field="payment" value="-1" type="Integer"/>
- </if-compare>
- </if-compare>
- </if-not-empty>
- <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="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="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/>
- <check-errors/>
- <set field="payment" value="-1" type="Integer"/>
- </if-compare>
- </if-compare>
- </if-not-empty>
- <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="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="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/>
- <check-errors/>
- <set field="payment" value="-1" type="Integer"/>
- </if-compare>
- </if-compare>
- </if-not-empty>
- <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="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="webPosTransaction" method-name="getNumberOfPayments" ret-field="numPayments"/>
- <check-errors/>
- <set field="payment" value="-1" type="Integer"/>
- </if-compare>
- </if-compare>
- </if-not-empty>
- </if-not-empty>
- <calculate field="payment" type="Integer">
- <calcop operator="add" field="payment"/>
- <number value="1"/>
- </calculate>
- </then>
- </while>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- <return response-code="success"/>
- </simple-method>
-
- <simple-method method-name="clearAllPayments" short-description="Clear All Payments" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <call-object-method obj-field="webPosTransaction" method-name="clearPayments"/>
- <check-errors/>
- <log level="info" message="Cleared All Payments"/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosNotLoggedIn"/></add-error>
- <check-errors/>
- </else>
- </if-not-empty>
- </simple-method>
-</simple-methods>
\ No newline at end of file
diff --git a/webpos/minilang/PromoEvents.xml b/webpos/minilang/PromoEvents.xml
deleted file mode 100644
index e0ea9ac38..000000000
--- a/webpos/minilang/PromoEvents.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?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" xmlns="http://ofbiz.apache.org/Simple-Method" xsi:schemaLocation="http://ofbiz.apache.org/Simple-Method http://ofbiz.apache.org/dtds/simple-methods.xsd">
- <simple-method method-name="addPromoCode" short-description="Add Promotion Code" login-required="true">
- <clear-field field="posTerminalId"/>
- <call-class-method class-name="org.apache.ofbiz.webpos.WebPosEvents" method-name="getWebPosSession" ret-field="webPosSession">
- <field field="request" type="jakarta.servlet.http.HttpServletRequest"/>
- <field field="posTerminalId" type="String"/>
- </call-class-method>
- <if-not-empty field="webPosSession">
- <call-object-method obj-field="webPosSession" method-name="getCurrentTransaction" ret-field="webPosTransaction"/>
- <check-errors/>
- <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="webPosTransaction" method-name="addProductPromoCode" ret-field="result">
- <field field="promoCode" type="String"/>
- </call-object-method>
- <check-errors/>
- <!-- TODO handle exceptions and errors -->
- <log level="info" message="Added product promotion code ${promoCode}"/>
- <else>
- <add-error><fail-property resource="WebPosUiLabels" property="WebPosPromoCodeTerminalNotOpened"/></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-methods>
\ No newline at end of file
diff --git a/webpos/ofbiz-component.xml b/webpos/ofbiz-component.xml
deleted file mode 100644
index 1a77a343d..000000000
--- a/webpos/ofbiz-component.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?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" enabled="true"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/ofbiz-component.xsd">
- <resource-loader name="main" type="component"/>
- <classpath type="dir" location="config"/>
-
- <entity-resource type="data" reader-name="seed" loader="main" location="data/WebPosSecurityPermissionSeedData.xml"/>
- <entity-resource type="data" reader-name="demo" loader="main" location="data/WebPosSecurityGroupDemoData.xml"/>
-
- <!-- Not sure all the POS gone data are needed here, adding them all for now, we will prune later -->
- <entity-resource type="data" reader-name="seed" loader="main" location="data/PosSecurityData.xml"/>
- <entity-resource type="data" reader-name="seed" loader="main" location="data/PosTypeData.xml"/>
- <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoRetail.xml"/>
- <entity-resource type="data" reader-name="demo" loader="main" location="data/DemoPosData.xml"/>
- <entity-resource type="data" reader-name="demo" loader="main" location="data/PosSyncSettings.xml"/>
-
- <entity-resource type="model" reader-name="main" loader="main" location="entitydef/entitymodel.xml"/>
-
- <service-resource type="model" loader="main" location="servicedef/services.xml"/>
- <service-resource type="model" loader="main" location="servicedef/services_cart.xml"/>
- <service-resource type="model" loader="main" location="servicedef/services_customer.xml"/>
- <service-resource type="model" loader="main" location="servicedef/services_search.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"
- position="15"
- server="default-server"
- menu-name="secondary"
- location="webapp/webpos"
- base-permission="WEBPOS"
- mount-point="/webpos"
- app-bar-display="true"
- use-autologin-cookie="true"/>
-</ofbiz-component>
diff --git a/webpos/servicedef/services.xml b/webpos/servicedef/services.xml
deleted file mode 100644
index dd1bc4b22..000000000
--- a/webpos/servicedef/services.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="posLogin" engine="java"
- location="org.apache.ofbiz.webpos.WebPosEvents" invoke="posLogin">
- <description>Login for Web Pos</description>
- <attribute type="String" mode="IN" name="posTerminalId" optional="false"/>
- </service>
-
- <service name="existsWebPosSession" engine="java"
- location="org.apache.ofbiz.webpos.WebPosEvents" invoke="existsWebPosSession">
- <description>Check if exists a Web Pos Session</description>
- </service>
-</services>
diff --git a/webpos/servicedef/services_cart.xml b/webpos/servicedef/services_cart.xml
deleted file mode 100644
index 3a216f275..000000000
--- a/webpos/servicedef/services_cart.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Cart Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="setPartyToCart" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="setPartyToCart">
- <description>Set party to cart</description>
- <attribute name="partyId" type="String" mode="IN" optional="false"/>
- <attribute name="contactMechId" type="String" mode="IN" optional="false"/>
- <attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="updateCartItem" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="updateCartItem">
- <description>Update Cart Item</description>
- <attribute name="cartLineIndex" type="String" mode="IN" optional="false"/>
- <attribute name="quantity" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="deleteCartItem" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="deleteCartItem">
- <description>Delete Cart Item</description>
- <attribute name="cartLineIndex" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="getProductAndPrice" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="getProductAndPrice">
- <description>Get Product And Price</description>
- <attribute name="productId" type="String" mode="IN" optional="false"/>
- <attribute name="product" type="GenericValue" mode="OUT" optional="true"/>
- <attribute name="price" type="BigDecimal" mode="OUT" optional="true"/>
- <attribute name="currencyUomId" type="String" mode="OUT" optional="true"/>
- </service>
-
- <service name="getFormattedAmount" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="getFormattedAmount">
- <description>Get Formatted Amount</description>
- <attribute name="amount" type="String" mode="IN" optional="true"/>
- <attribute name="currencyId" type="String" mode="IN" optional="true"/>
- <attribute name="formattedAmount" type="String" mode="OUT" optional="true"/>
- </service>
-
- <service name="getFormattedProductFeaturePrice" engine="simple" auth="false"
- location="component://webpos/minilang/CartEvents.xml" invoke="getFormattedProductFeaturePrice">
- <description>Get Formatted Feature Price</description>
- <attribute name="productFeatureId" type="String" mode="IN" optional="false"/>
- <attribute name="productPriceTypeId" type="String" mode="IN" optional="false"/>
- <attribute name="currencyUomId" type="String" mode="IN" optional="false"/>
- <attribute name="formattedFeaturePrice" type="String" mode="OUT" optional="true"/>
- </service>
-
- <service name="removeSalesRep" engine="simple"
- location="component://webpos/minilang/CartEvents.xml" invoke="removeSalesRep">
- <description>Remove Sales Rep from cart</description>
- <attribute type="String" mode="IN" name="partyId" optional="false"/>
- </service>
-
- <service name="addSalesRep" engine="simple"
- location="component://webpos/minilang/CartEvents.xml" invoke="addSalesRep">
- <description>Add Sales Rep to cart</description>
- <attribute type="String" mode="IN" name="partyId" optional="false"/>
- </service>
-
- <service name="getShipMethods" engine="simple"
- location="component://webpos/minilang/CartEvents.xml" invoke="getShipMethods">
- <description>Get ship methods</description>
- </service>
-
- <service name="setShipMethod" engine="simple"
- location="component://webpos/minilang/CartEvents.xml" invoke="setShipMethod">
- <description>Set ship method</description>
- </service>
-</services>
\ No newline at end of file
diff --git a/webpos/servicedef/services_customer.xml b/webpos/servicedef/services_customer.xml
deleted file mode 100644
index 9851c19d2..000000000
--- a/webpos/servicedef/services_customer.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Customer Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="createUpdateAddress" engine="simple" auth="false"
- location="component://webpos/minilang/CustomerEvents.xml" invoke="createUpdateAddress">
- <description>Create/update party address</description>
- <attribute name="partyId" type="String" mode="INOUT" optional="true"/>
- <attribute name="firstName" type="String" mode="IN" optional="true"/>
- <attribute name="lastName" type="String" mode="IN" optional="true"/>
- <attribute name="contactMechId" type="String" mode="IN" optional="true"/>
- <attribute name="contactMechPurposeTypeId" type="String" mode="IN" optional="true"/>
- <attribute name="address1" type="String" mode="IN" optional="true"/>
- <attribute name="address2" type="String" mode="IN" optional="true"/>
- <attribute name="countryProvinceGeo" type="String" mode="IN" optional="true"/>
- <attribute name="stateProvinceGeo" type="String" mode="IN" optional="true"/>
- <attribute name="city" type="String" mode="IN" optional="true"/>
- <attribute name="postalCode" type="String" mode="IN" optional="true"/>
- </service>
-</services>
diff --git a/webpos/servicedef/services_manager.xml b/webpos/servicedef/services_manager.xml
deleted file mode 100644
index 1db458128..000000000
--- a/webpos/servicedef/services_manager.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Manager Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="openTerminal" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="openTerminal">
- <description>Open Terminal</description>
- <attribute name="startingDrawerAmount" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="closeTerminal" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="closeTerminal">
- <description>Close Terminal</description>
- <attribute name="endingDrawerCashAmount" type="String" mode="IN" optional="false"/>
- <attribute name="endingDrawerCheckAmount" type="String" mode="IN" optional="false"/>
- <attribute name="endingDrawerCcAmount" type="String" mode="IN" optional="false"/>
- <attribute name="endingDrawerGcAmount" type="String" mode="IN" optional="false"/>
- <attribute name="endingDrawerOtherAmount" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="voidOrder" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="voidOrder">
- <description>Void Order</description>
- <attribute name="orderId" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="shutdown" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="shutdown">
- <description>Shutdown</description>
- </service>
-
- <service name="paidOutAndIn" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="paidOutAndIn">
- <description>Paid Out and In</description>
- <attribute name="type" type="String" mode="IN" optional="false"/>
- <attribute name="amountInOut" type="String" mode="IN" optional="false"/>
- <attribute name="reasonIn" type="String" mode="IN" optional="false"/>
- <attribute name="reasonOut" type="String" mode="IN" optional="false"/>
- <attribute name="reasonCommentInOut" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="modifyPrice" engine="simple" auth="false"
- location="component://webpos/minilang/ManagerEvents.xml" invoke="modifyPrice">
- <description>Modify Price</description>
- <attribute name="cartLineIdx" type="Integer" mode="IN" optional="false"/>
- <attribute name="price" type="String" mode="IN" optional="false"/>
- </service>
-</services>
diff --git a/webpos/servicedef/services_payment.xml b/webpos/servicedef/services_payment.xml
deleted file mode 100644
index 818be9cae..000000000
--- a/webpos/servicedef/services_payment.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Payment Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="payCash" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="payCash">
- <description>Pay Cash</description>
- <attribute name="amountCash" type="String" mode="IN" optional="false"/>
- </service>
-
- <service name="payCheck" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="payCheck">
- <description>Pay Check</description>
- <attribute name="amountCheck" type="String" mode="IN" optional="false"/>
- <attribute name="refNum" type="String" mode="IN" optional="true"/>
- </service>
-
- <service name="payGiftCard" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="payGiftCard">
- <description>Pay Gift Card</description>
- <attribute name="amountGiftCard" type="String" mode="IN" optional="false"/>
- <attribute name="refNum" type="String" mode="IN" optional="true"/>
- </service>
-
- <service name="payCreditCard" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="payCreditCard">
- <description>Pay Credit Card</description>
- <attribute name="swipeCard" type="String" mode="IN" optional="false"/>
- <attribute name="swipeData" type="String" mode="IN" optional="true"/>
- <attribute name="cardType" type="String" mode="IN" optional="false"/>
- <attribute name="amountCreditCard" type="String" mode="IN" optional="false"/>
- <attribute name="refNum" type="String" mode="IN" optional="true"/>
- <attribute name="cardNum" type="String" mode="IN" optional="true"/>
- <attribute name="expMonth" type="String" mode="IN" optional="true"/>
- <attribute name="expYear" type="String" mode="IN" optional="true"/>
- <attribute name="securityCode" type="String" mode="IN" optional="true"/>
- <attribute name="postalCode" type="String" mode="IN" optional="true"/>
- <attribute name="firstName" type="String" mode="IN" optional="true"/>
- <attribute name="lastName" type="String" mode="IN" optional="true"/>
- <attribute name="track2" type="String" mode="IN" optional="true"/>
- </service>
-
- <service name="payFinish" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="payFinish">
- <description>Pay Finish</description>
- </service>
-
- <service name="clearPayment" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="clearPayment">
- <description>Clear Payment</description>
- <attribute name="clearCash" type="String" mode="IN" optional="true"/>
- <attribute name="clearCheck" type="String" mode="IN" optional="true"/>
- <attribute name="clearGift" type="String" mode="IN" optional="true"/>
- <attribute name="clearCredit" type="String" mode="IN" optional="true"/>
- </service>
-
- <service name="clearAllPayments" engine="simple" auth="false"
- location="component://webpos/minilang/PaymentEvents.xml" invoke="clearAllPayments">
- <description>Clear All Payments</description>
- </service>
-</services>
diff --git a/webpos/servicedef/services_promo.xml b/webpos/servicedef/services_promo.xml
deleted file mode 100644
index eafe929bd..000000000
--- a/webpos/servicedef/services_promo.xml
+++ /dev/null
@@ -1,30 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Promotions Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="addPromoCode" engine="simple" auth="false"
- location="component://webpos/minilang/PromoEvents.xml" invoke="addPromoCode">
- <description>Add Promotion Code</description>
- <attribute name="promoCode" type="String" mode="IN" optional="false"/>
- </service>
-</services>
diff --git a/webpos/servicedef/services_search.xml b/webpos/servicedef/services_search.xml
deleted file mode 100644
index c99bb8794..000000000
--- a/webpos/servicedef/services_search.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-<?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.
--->
-<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://ofbiz.apache.org/dtds/services.xsd">
- <description>Web Pos Search Services</description>
- <vendor>OFBiz</vendor>
- <version>1.0</version>
-
- <service name="findProducts" engine="java"
- location="org.apache.ofbiz.webpos.search.WebPosSearch" invoke="findProducts">
- <description>Find products by name/description/good identification value</description>
- <attribute type="String" mode="IN" name="searchByProductIdValue" optional="true"/>
- <attribute type="String" mode="IN" name="searchByProductName" optional="true"/>
- <attribute type="String" mode="IN" name="searchByProductDescription" optional="true"/>
- <attribute type="String" mode="IN" name="goodIdentificationTypeId" optional="true"/>
- <attribute type="java.util.List" mode="OUT" name="productsList" optional="true"/>
- </service>
-
- <service name="findParties" engine="java"
- location="org.apache.ofbiz.webpos.search.WebPosSearch" invoke="findParties">
- <description>Find parties by name/surname/good identification value</description>
- <attribute type="String" mode="IN" name="searchByPartyLastName" optional="true"/>
- <attribute type="String" mode="IN" name="searchByPartyFirstName" optional="true"/>
- <attribute type="String" mode="IN" name="searchByPartyIdValue" optional="true"/>
- <attribute type="String" mode="IN" name="partyIdentificationTypeId" optional="true"/>
- <attribute type="String" mode="IN" name="billingLocation" optional="false"/>
- <attribute type="String" mode="IN" name="shippingLocation" optional="false"/>
- <attribute type="java.util.List" mode="OUT" name="partiesList" optional="true"/>
- </service>
-</services>
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/Login.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/Login.groovy
deleted file mode 100644
index 404b795ca..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/Login.groovy
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos
-
-import org.apache.ofbiz.product.store.ProductStoreWorker
-import org.apache.ofbiz.webapp.control.LoginWorker
-
-context.autoUserLogin = session.getAttribute('autoUserLogin')
-context.autoLogoutUrl = LoginWorker.makeLoginUrl(request, 'autoLogout')
-
-previousParams = session.getAttribute('_PREVIOUS_PARAMS_')
-if (previousParams) {
- previousParams = UtilHttp.stripNamedParamsFromQueryString(previousParams, ['USERNAME', 'PASSWORD'])
- previousParams = '?' + previousParams
-} else {
- previousParams = ''
-}
-context.previousParams = previousParams
-
-productStoreId = ProductStoreWorker.getProductStoreId(request)
-productStore = ProductStoreWorker.getProductStore(productStoreId, delegator)
-
-if (productStore) {
- facilityId = productStore.getString('inventoryFacilityId')
-
- if (facilityId) {
- context.posTerminals = from('PosTerminal').where('facilityId', facilityId).orderBy('posTerminalId').queryList()
- } else {
- context.posTerminals = from('PosTerminal').orderBy('posTerminalId').queryList()
- }
-}
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosMenus.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosMenus.groovy
deleted file mode 100644
index 05552e08f..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosMenus.groovy
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos
-
-webPosSession = WebPosEvents.getWebPosSession(request, null)
-if (webPosSession) {
- context.shoppingCartSize = webPosSession.getCart().size()
- context.isManagerLoggedIn = webPosSession.isManagerLoggedIn()
- webPosTransaction = webPosSession.getCurrentTransaction()
-
- if (webPosTransaction) {
- context.isOpen = webPosTransaction.isOpen()
- }
- context.cart = webPosSession.getCart()
- context.totalDue = webPosSession.getCurrentTransaction().getTotalDue()
- context.totalPayments = webPosSession.getCurrentTransaction().getPaymentTotal()
-} else {
- context.shoppingCartSize = 0
-}
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosSetup.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosSetup.groovy
deleted file mode 100644
index 62229b83c..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/WebPosSetup.groovy
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos
-
-import org.apache.ofbiz.product.catalog.CatalogWorker
-import org.apache.ofbiz.product.store.ProductStoreWorker
-import org.apache.ofbiz.webapp.control.LoginWorker
-
-productStore = ProductStoreWorker.getProductStore(request)
-
-prodCatalog = CatalogWorker.getProdCatalog(request)
-if (prodCatalog) {
- catalogStyleSheet = prodCatalog.styleSheet
- if (catalogStyleSheet) {
- globalContext.catalogStyleSheet = catalogStyleSheet
- }
- catalogHeaderLogo = prodCatalog.headerLogo
- if (catalogHeaderLogo) {
- globalContext.catalogHeaderLogo = catalogHeaderLogo
- }
-}
-
-globalContext.productStore = productStore
-globalContext.checkLoginUrl = LoginWorker.makeLoginUrl(request, 'checkLogin')
-globalContext.catalogQuickaddUse = CatalogWorker.getCatalogQuickaddUse(request)
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/cart/ShowCart.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/cart/ShowCart.groovy
deleted file mode 100644
index 0d27e2251..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/cart/ShowCart.groovy
+++ /dev/null
@@ -1,77 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.cart
-
-import org.apache.ofbiz.webpos.WebPosEvents
-
-webPosSession = WebPosEvents.getWebPosSession(request, null)
-if (webPosSession) {
- shoppingCart = webPosSession.getCart()
- context.isManager = webPosSession.isManagerLoggedIn()
- context.transactionId = webPosSession.getCurrentTransaction().getTransactionId()
- context.userLoginId = webPosSession.getUserLoginId()
- context.drawerNumber = webPosSession.getCurrentTransaction().getDrawerNumber()
- context.totalDue = webPosSession.getCurrentTransaction().getTotalDue()
- context.totalQuantity = webPosSession.getCurrentTransaction().getTotalQuantity()
- context.isOpen = webPosSession.getCurrentTransaction().isOpen()
-
- context.person = null
- if (shoppingCart) {
- placingCustomerParty = from('PartyAndPerson').where('partyId', shoppingCart.getPlacingCustomerPartyId()).queryOne()
- if (placingCustomerParty) {
- context.person = placingCustomerParty.lastName + ' ' + placingCustomerParty.firstName
- }
- }
-} else {
- shoppingCart = null
-}
-
-context.cashAmount = BigDecimal.ZERO
-context.checkAmount = BigDecimal.ZERO
-context.giftAmount = BigDecimal.ZERO
-context.creditAmount = BigDecimal.ZERO
-context.totalPay = BigDecimal.ZERO
-
-if (shoppingCart) {
- context.shoppingCartSize = shoppingCart.size()
- payments = shoppingCart.selectedPayments()
- for (i = 0; i < payments; i++) {
- paymentInfo = shoppingCart.getPaymentInfo(i)
- if (paymentInfo.amount != null) {
- amount = paymentInfo.amount
- if (paymentInfo.paymentMethodTypeId) {
- switch (paymentInfo.paymentMethodTypeId) {
- case 'CASH' -> context.cashAmount = new BigDecimal((context.cashAmount).add(amount))
- case 'PERSONAL_CHECK' -> context.checkAmount = new BigDecimal((context.checkAmount).add(amount))
- case 'GIFT_CARD' -> context.giftAmount = new BigDecimal((context.giftAmount).add(amount))
- case 'CREDIT_CARD' -> context.creditAmount = new BigDecimal((context.creditAmount).add(amount))
- }
- context.totalPay = new BigDecimal((context.totalPay).add(amount))
- }
- }
- }
- context.shoppingCart = shoppingCart
-} else {
- context.shoppingCartSize = 0
-}
-
-context.paymentCash = from('PaymentMethodType').where('paymentMethodTypeId': 'CASH').cache().queryOne()
-context.paymentCheck = from('PaymentMethodType').where('paymentMethodTypeId': 'PERSONAL_CHECK').cache().queryOne()
-context.paymentGift = from('PaymentMethodType').where('paymentMethodTypeId': 'GIFT_CARD').cache().queryOne()
-context.paymentCredit = from('PaymentMethodType').where('paymentMethodTypeId': 'CREDIT_CARD').cache().queryOne()
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/Category.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/Category.groovy
deleted file mode 100644
index 1b800fed5..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/Category.groovy
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.catalog
-
-/*
- * This script is also referenced by the ecommerce's screens and
- * should not contain order component's specific code.
- */
-
-import org.apache.ofbiz.product.catalog.CatalogWorker
-import org.apache.ofbiz.product.category.CategoryContentWrapper
-
-detailScreen = 'categorydetail'
-catalogName = CatalogWorker.getCatalogName(request)
-
-productCategoryId = parameters.productCategoryId
-if (!(productCategoryId) && request.getAttribute('topCategoryId')) {
- productCategoryId = request.getAttribute('topCategoryId')
-}
-
-category = from('ProductCategory').where('productCategoryId', productCategoryId).cache().queryOne()
-if (category) {
- if (category.detailScreen) {
- detailScreen = category.detailScreen
- }
- categoryContentWrapper = new CategoryContentWrapper(category, request)
- context.title = categoryContentWrapper.get('CATEGORY_NAME', 'html')
- categoryDescription = categoryContentWrapper.get('DESCRIPTION', 'html')
- if (categoryDescription) {
- context.metaDescription = categoryDescription
- context.metaKeywords = categoryDescription + ', ' + catalogName
- } else {
- context.metaKeywords = catalogName
- }
- context.productCategory = category
-}
-
-// check the catalogs template path and update
-templatePathPrefix = CatalogWorker.getTemplatePathPrefix(request)
-if (templatePathPrefix) {
- detailScreen = templatePathPrefix + detailScreen
-}
-context.detailScreen = detailScreen
-
-request.setAttribute('productCategoryId', productCategoryId)
-request.setAttribute('defaultViewSize', 10)
-request.setAttribute('limitView', true)
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/SideDeepCategory.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/SideDeepCategory.groovy
deleted file mode 100644
index 589207853..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/catalog/SideDeepCategory.groovy
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.catalog
-
-import org.apache.ofbiz.product.catalog.CatalogWorker
-import org.apache.ofbiz.product.category.CategoryWorker
-
-CategoryWorker.getRelatedCategories(request, 'topLevelList',
- CatalogWorker.getCatalogTopCategoryId(request, CatalogWorker.getCurrentCatalogId(request)), true)
-curCategoryId = parameters.category_id ?: parameters.CATEGORY_ID ?: ''
-request.setAttribute('curCategoryId', curCategoryId)
-CategoryWorker.setTrail(request, curCategoryId)
-
-categoryList = request.getAttribute('topLevelList')
-if (categoryList) {
- catContentWrappers = [:]
- CategoryWorker.getCategoryContentWrappers(catContentWrappers, categoryList, request)
- context.catContentWrappers = catContentWrappers
-}
-if (!curCategoryId && categoryList) {
- curCategoryId = categoryList[0].productCategoryId
- request.setAttribute('topCategoryId', curCategoryId)
-}
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/customer/EditAddress.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/customer/EditAddress.groovy
deleted file mode 100644
index 55dd8871b..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/customer/EditAddress.groovy
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.customer
-
-person = from('Person').where(parameters).queryOne()
-if (person) {
- request.with {
- setAttribute('lastName', person.lastName)
- setAttribute('firstName', person.firstName)
- setAttribute('partyId', parameters.partyId)
- }
-}
-
-contactMech = from('ContactMech').where(parameters).queryOne()
-if (contactMech) {
- postalAddress = contactMech.getRelatedOne('PostalAddress', false)
- if (postalAddress) {
- request.with {
- setAttribute('contactMechId', postalAddress.contactMechId)
- setAttribute('toName', postalAddress.toName)
- setAttribute('attnName', postalAddress.attnName)
- setAttribute('address1', postalAddress.address1)
- setAttribute('address2', postalAddress.address2)
- setAttribute('city', postalAddress.city)
- setAttribute('postalCode', postalAddress.postalCode)
- setAttribute('stateProvinceGeoId', postalAddress.stateProvinceGeoId)
- setAttribute('countryGeoId', postalAddress.countryGeoId)
- }
- stateProvinceGeo = from('Geo').where('geoId', postalAddress.stateProvinceGeoId).queryOne()
- if (stateProvinceGeo) {
- request.setAttribute('stateProvinceGeo', stateProvinceGeo.get('geoName', locale))
- }
- countryProvinceGeo = from('Geo').where('geoId', postalAddress.countryGeoId).queryOne()
- if (countryProvinceGeo) {
- request.setAttribute('countryProvinceGeo', countryProvinceGeo.get('geoName', locale))
- }
- }
-}
-request.setAttribute('contactMechPurposeTypeId', parameters.contactMechPurposeTypeId)
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/manager/PaidOutAndIn.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/manager/PaidOutAndIn.groovy
deleted file mode 100644
index 797bd05b0..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/manager/PaidOutAndIn.groovy
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.manager
-
-context.paidReasonIn = from('Enumeration').where('enumTypeId', 'POS_PAID_REASON_IN').orderBy('sequenceId').queryList()
-context.paidReasonOut = from('Enumeration').where('enumTypeId', 'POS_PAID_REASON_OUT').orderBy('sequenceId').queryList()
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/CustomerAddress.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/CustomerAddress.groovy
deleted file mode 100644
index 360540b97..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/CustomerAddress.groovy
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.search
-
-import org.apache.ofbiz.entity.GenericValue
-import org.apache.ofbiz.order.shoppingcart.ShoppingCart
-import org.apache.ofbiz.webpos.WebPosEvents
-import org.apache.ofbiz.webpos.session.WebPosSession
-
-WebPosSession webPosSession = WebPosEvents.getWebPosSession(request, null)
-if (webPosSession) {
- ShoppingCart shoppingCart = webPosSession.getCart()
- String shipToCustomerPartyId = shoppingCart.getShipToCustomerPartyId()
- if (shipToCustomerPartyId) {
- context.personShipTo = from('Person').where(partyId: shipToCustomerPartyId).cache().queryOne()
- }
- String shippingContactMechId = shoppingCart.getContactMechId('SHIPPING_LOCATION')
- if (shippingContactMechId) {
- GenericValue contactMech = from('ContactMech').where(contactMechId: shippingContactMechId).queryOne()
- if (contactMech && contactMech.contactMechTypeId == 'POSTAL_ADDRESS') {
- context.shippingPostalAddress = contactMech.getRelatedOne('PostalAddress', false)
- }
- }
- String billToCustomerPartyId = shoppingCart.getBillToCustomerPartyId()
- if (billToCustomerPartyId) {
- context.personBillTo = from('Person').where('partyId', billToCustomerPartyId).cache().queryOne()
- }
- String billingContactMechId = shoppingCart.getContactMechId('BILLING_LOCATION')
- if (billingContactMechId) {
- GenericValue contactMech = from('ContactMech').where('contactMechId', billingContactMechId).queryOne()
- if (contactMech && contactMech.contactMechTypeId == 'POSTAL_ADDRESS') {
- context.billingPostalAddress = contactMech.getRelatedOne('PostalAddress', false)
- }
- }
-}
diff --git a/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/SearchSalesReps.groovy b/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/SearchSalesReps.groovy
deleted file mode 100644
index ce76d22fe..000000000
--- a/webpos/src/main/groovy/org/apache/ofbiz/webpos/search/SearchSalesReps.groovy
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * 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.
-*/
-package org.apache.ofbiz.webpos.search
-
-context.salesReps = from('PartyRoleNameDetail').where('roleTypeId', 'SALES_REP').orderBy('lastName', 'firstName').queryList()
-
-shoppingCart = session.getAttribute('shoppingCart')
-if (shoppingCart) {
- context.cartSalesReps = shoppingCart.getAdditionalPartyRoleMap().SALES_REP
-}
diff --git a/webpos/src/main/java/org/apache/ofbiz/webpos/WebPosEvents.java b/webpos/src/main/java/org/apache/ofbiz/webpos/WebPosEvents.java
deleted file mode 100755
index 47bb6e596..000000000
--- a/webpos/src/main/java/org/apache/ofbiz/webpos/WebPosEvents.java
+++ /dev/null
@@ -1,250 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-package org.apache.ofbiz.webpos;
-
-import java.io.UnsupportedEncodingException;
-import java.util.HashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import jakarta.servlet.http.HttpServletRequest;
-import jakarta.servlet.http.HttpServletResponse;
-import jakarta.servlet.http.HttpSession;
-
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.base.util.GeneralException;
-import org.apache.ofbiz.base.util.UtilGenerics;
-import org.apache.ofbiz.base.util.UtilMisc;
-import org.apache.ofbiz.base.util.UtilValidate;
-import org.apache.ofbiz.entity.Delegator;
-import org.apache.ofbiz.entity.GenericEntityException;
-import org.apache.ofbiz.entity.GenericValue;
-import org.apache.ofbiz.entity.util.EntityQuery;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCart;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents;
-import org.apache.ofbiz.order.shoppinglist.ShoppingListEvents;
-import org.apache.ofbiz.product.product.ProductWorker;
-import org.apache.ofbiz.product.store.ProductStoreWorker;
-import org.apache.ofbiz.securityext.login.LoginEvents;
-import org.apache.ofbiz.service.GenericServiceException;
-import org.apache.ofbiz.service.LocalDispatcher;
-import org.apache.ofbiz.service.ServiceUtil;
-import org.apache.ofbiz.webpos.session.WebPosSession;
-
-public class WebPosEvents {
-
- private static final String MODULE = WebPosEvents.class.getName();
-
- public static String posLogin(HttpServletRequest request, HttpServletResponse response) throws UnsupportedEncodingException {
- HttpSession session = request.getSession(true);
-
- // get the posTerminalId
- String posTerminalId = request.getParameter("posTerminalId");
- session.removeAttribute("shoppingCart");
- session.removeAttribute("webPosSession");
- WebPosSession webPosSession = WebPosEvents.getWebPosSession(request, posTerminalId);
- String responseString = LoginEvents.storeLogin(request, response);
- GenericValue userLoginNew = (GenericValue) session.getAttribute("userLogin");
-
- if (userLoginNew != null && UtilValidate.isNotEmpty(posTerminalId)) {
- webPosSession.setUserLogin(userLoginNew);
- }
- return responseString;
- }
-
- public static String existsWebPosSession(HttpServletRequest request, HttpServletResponse response) {
- String responseString = "success";
- HttpSession session = request.getSession(true);
- WebPosSession webPosSession = (WebPosSession) session.getAttribute("webPosSession");
-
- if (UtilValidate.isEmpty(webPosSession)) {
- responseString = "error";
- }
- return responseString;
- }
-
- public static WebPosSession getWebPosSession(HttpServletRequest request, String posTerminalId) {
- HttpSession session = request.getSession(true);
- GenericValue userLogin = (GenericValue) session.getAttribute("userLogin");
- WebPosSession webPosSession = (WebPosSession) session.getAttribute("webPosSession");
- ShoppingCart cart = (ShoppingCart) session.getAttribute("shoppingCart");
- Delegator delegator = (Delegator) request.getAttribute("delegator");
- LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute("dispatcher");
-
- if (UtilValidate.isEmpty(webPosSession)) {
- String productStoreId = ProductStoreWorker.getProductStoreId(request);
- GenericValue productStore = ProductStoreWorker.getProductStore(productStoreId, delegator);
- String facilityId = null;
- String currencyUomId = request.getParameter("currencyUomId");
-
- if (productStore != null) {
- facilityId = productStore.getString("inventoryFacilityId");
- if (UtilValidate.isEmpty(currencyUomId)) {
- currencyUomId = productStore.getString("defaultCurrencyUomId");
- }
- }
-
- if (userLogin != null) {
- session.setAttribute("userLogin", userLogin);
- }
-
- if (UtilValidate.isEmpty(cart)) {
- cart = new ShoppingCart(delegator, productStoreId, request.getLocale(), currencyUomId);
- session.setAttribute("shoppingCart", cart);
- }
-
- if (UtilValidate.isNotEmpty(posTerminalId)) {
- webPosSession = new WebPosSession(posTerminalId, null, userLogin, request.getLocale(), productStoreId, facilityId, currencyUomId,
- delegator, dispatcher, cart);
- session.setAttribute("webPosSession", webPosSession);
- } else {
- Debug.logError("PosTerminalId is empty cannot create a webPosSession", MODULE);
- }
- }
- return webPosSession;
- }
-
- public static void removeWebPosSession(HttpServletRequest request, String posTerminalId) {
- HttpSession session = request.getSession(true);
- session.removeAttribute("shoppingCart");
- session.removeAttribute("webPosSession");
- getWebPosSession(request, posTerminalId);
- }
-
- public static String completeSale(HttpServletRequest request, HttpServletResponse response) throws GeneralException {
- HttpSession session = request.getSession(true);
- WebPosSession webPosSession = (WebPosSession) session.getAttribute("webPosSession");
- if (UtilValidate.isNotEmpty(webPosSession)) {
- webPosSession.getCurrentTransaction().processSale();
- emptyCartAndClearAutoSaveList(request, response);
- String posTerminalId = webPosSession.getId();
- removeWebPosSession(request, posTerminalId);
- }
- return "success";
- }
-
- public static String emptyCartAndClearAutoSaveList(HttpServletRequest request, HttpServletResponse response) throws GeneralException {
- HttpSession session = request.getSession(true);
- WebPosSession webPosSession = (WebPosSession) session.getAttribute("webPosSession");
- ShoppingCartEvents.clearCart(request, response);
-
- if (UtilValidate.isNotEmpty(webPosSession)) {
- String autoSaveListId = ShoppingListEvents.getAutoSaveListId(webPosSession.getDelegator(), webPosSession.getDispatcher(), null,
- webPosSession.getUserLogin(), webPosSession.getProductStoreId());
- ShoppingListEvents.clearListInfo(webPosSession.getDelegator(), autoSaveListId);
- }
- return "success";
- }
- public static String getProductType(HttpServletRequest request, HttpServletResponse response) {
- Map<String, Object> featureMap = null;
- Map<String, Object> variantTreeMap = null;
- Map<String, Object> featureTypes = new HashMap<>();
- WebPosSession webPosSession = getWebPosSession(request, null);
- if (webPosSession != null) {
- Delegator delegator = webPosSession.getDelegator();
- LocalDispatcher dispatcher = webPosSession.getDispatcher();
- GenericValue product = null;
- try {
- String productId = request.getParameter("productId");
- product = EntityQuery.use(delegator).from("Product").where("productId", productId).queryOne();
- if (product != null) {
- request.setAttribute("product", product);
- if (UtilValidate.isNotEmpty(product.getString("isVirtual")) && "Y".equalsIgnoreCase(product.getString("isVirtual"))) {
- String virtualVariantMethodEnum = product.getString("virtualVariantMethodEnum");
- if (UtilValidate.isEmpty(virtualVariantMethodEnum)) {
- virtualVariantMethodEnum = "VV_VARIANTTREE";
- }
- if ("VV_VARIANTTREE".equalsIgnoreCase(virtualVariantMethodEnum)) {
- String productStoreId = webPosSession.getProductStoreId();
- try {
- featureMap = dispatcher.runSync("getProductFeatureSet", UtilMisc.toMap("productId", productId));
- if (ServiceUtil.isError(featureMap)) {
- String errorMessage = ServiceUtil.getErrorMessage(featureMap);
- request.setAttribute("_ERROR_MESSAGE_", errorMessage);
- Debug.logError(errorMessage, MODULE);
- return "error";
- }
- Set<String> featureSet = UtilGenerics.cast(featureMap.get("featureSet"));
- if (UtilValidate.isNotEmpty(featureSet)) {
- request.setAttribute("featureSet", featureSet);
- try {
- variantTreeMap = dispatcher.runSync("getProductVariantTree",
- UtilMisc.toMap("productId", productId, "featureOrder", featureSet, "productStoreId", productStoreId));
- if (ServiceUtil.isError(variantTreeMap)) {
- String errorMessage = ServiceUtil.getErrorMessage(variantTreeMap);
- request.setAttribute("_ERROR_MESSAGE_", errorMessage);
- Debug.logError(errorMessage, MODULE);
- return "error";
- }
- Map<String, Object> variantTree = UtilGenerics.cast(variantTreeMap.get("variantTree"));
- if (UtilValidate.isNotEmpty(variantTree)) {
- request.setAttribute("variantTree", variantTree);
- request.setAttribute("variantTreeSize", variantTree.size());
- List<String> featureOrder = new LinkedList<>(featureSet);
- for (int i = 0; i < featureOrder.size(); i++) {
- String featureKey = featureOrder.get(i);
- GenericValue featureValue = EntityQuery.use(delegator)
- .from("ProductFeatureType")
- .where("productFeatureTypeId", featureOrder.get(i))
- .cache().queryOne();
- if (featureValue != null
- && UtilValidate.isNotEmpty(featureValue.get("description"))) {
- featureTypes.put(featureKey, featureValue.get("description"));
- featureTypes.put(featureKey, featureValue.get("productFeatureTypeId"));
- }
- }
- request.setAttribute("featureTypes", featureTypes);
- request.setAttribute("featureOrder", featureOrder);
- if (UtilValidate.isNotEmpty(featureOrder)) {
- request.setAttribute("featureOrderFirst", featureOrder.get(0));
- }
- }
- Map<String, Object> imageMap = UtilGenerics.cast(variantTreeMap.get("variantSample"));
- if (UtilValidate.isNotEmpty(imageMap)) {
- List<String> variantSampleList = new LinkedList<>();
- variantSampleList = new LinkedList<>(imageMap.keySet());
- request.setAttribute("variantSample", imageMap);
- request.setAttribute("variantSampleList", variantSampleList);
- request.setAttribute("variantSampleSize", imageMap.size());
- }
- } catch (GenericServiceException e) {
- Debug.logError(e, MODULE);
- return "error";
- }
- }
- } catch (GenericServiceException e) {
- Debug.logError(e, MODULE);
- return "error";
- }
- }
- if ("VV_FEATURETREE".equalsIgnoreCase(virtualVariantMethodEnum)) {
- request.setAttribute("featureLists", ProductWorker.getSelectableProductFeaturesByTypesAndSeq(product));
- }
- }
- }
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- return "error";
- }
- }
- return "success";
- }
-}
diff --git a/webpos/src/main/java/org/apache/ofbiz/webpos/search/WebPosSearch.java b/webpos/src/main/java/org/apache/ofbiz/webpos/search/WebPosSearch.java
deleted file mode 100644
index 6cac0e3b3..000000000
--- a/webpos/src/main/java/org/apache/ofbiz/webpos/search/WebPosSearch.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-package org.apache.ofbiz.webpos.search;
-
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.base.util.UtilValidate;
-import org.apache.ofbiz.base.util.UtilMisc;
-import org.apache.ofbiz.entity.Delegator;
-import org.apache.ofbiz.entity.GenericEntityException;
-import org.apache.ofbiz.entity.GenericValue;
-import org.apache.ofbiz.entity.condition.EntityCondition;
-import org.apache.ofbiz.entity.condition.EntityFunction;
-import org.apache.ofbiz.entity.condition.EntityOperator;
-import org.apache.ofbiz.entity.model.DynamicViewEntity;
-import org.apache.ofbiz.entity.model.ModelKeyMap;
-import org.apache.ofbiz.entity.util.EntityListIterator;
-import org.apache.ofbiz.entity.util.EntityQuery;
-import org.apache.ofbiz.entity.util.EntityUtil;
-import org.apache.ofbiz.service.DispatchContext;
-import org.apache.ofbiz.service.ServiceUtil;
-
-public class WebPosSearch {
-
- private static final String MODULE = WebPosSearch.class.getName();
-
- public static Map<String, Object> findProducts(DispatchContext dctx, Map<String, ? extends Object> context) {
- Delegator delegator = dctx.getDelegator();
- String searchByProductIdValue = (String) context.get("searchByProductIdValue");
- String searchByProductName = (String) context.get("searchByProductName");
- String searchByProductDescription = (String) context.get("searchByProductDescription");
- String goodIdentificationTypeId = (String) context.get("goodIdentificationTypeId");
- Map<String, Object> result = ServiceUtil.returnSuccess();
-
- List<EntityCondition> andExprs = new LinkedList<>();
- EntityCondition mainCond = null;
- String entityName = "Product";
- // search by product name
- if (UtilValidate.isNotEmpty(searchByProductName)) {
- searchByProductName = searchByProductName.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("productName"), EntityOperator.LIKE,
- EntityFunction.upper("%" + searchByProductName + "%")));
- }
- // search by description
- if (UtilValidate.isNotEmpty(searchByProductDescription)) {
- searchByProductDescription = searchByProductDescription.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("description"), EntityOperator.LIKE,
- EntityFunction.upper("%" + searchByProductDescription + "%")));
- }
- // search by good identification
- if (UtilValidate.isNotEmpty(searchByProductIdValue)) {
- entityName = "GoodIdentificationAndProduct";
- searchByProductIdValue = searchByProductIdValue.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("idValue"), EntityOperator.EQUALS, searchByProductIdValue));
- if (UtilValidate.isNotEmpty(goodIdentificationTypeId)) {
- andExprs.add(EntityCondition.makeCondition("goodIdentificationTypeId", EntityOperator.EQUALS, goodIdentificationTypeId));
- }
- }
- mainCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
- List<GenericValue> products = null;
- try {
- products = EntityQuery.use(delegator).from(entityName).where(mainCond).orderBy("productName", "description").queryList();
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- result.put("productsList", products);
- return result;
- }
- public static Map<String, Object> findParties(DispatchContext dctx, Map<String, ? extends Object> context) {
- Delegator delegator = dctx.getDelegator();
- String searchByPartyLastName = (String) context.get("searchByPartyLastName");
- String searchByPartyFirstName = (String) context.get("searchByPartyFirstName");
- String searchByPartyIdValue = (String) context.get("searchByPartyIdValue");
- String partyIdentificationTypeId = (String) context.get("partyIdentificationTypeId");
- String billingLocation = (String) context.get("billingLocation");
- String shippingLocation = (String) context.get("shippingLocation");
- Map<String, Object> result = ServiceUtil.returnSuccess();
-
- List<EntityCondition> andExprs = new LinkedList<>();
- List<EntityCondition> orExprs = new LinkedList<>();
- EntityCondition mainCond = null;
- List<String> orderBy = new LinkedList<>();
-
- // default view settings
- DynamicViewEntity dynamicView = new DynamicViewEntity();
- dynamicView.addMemberEntity("PT", "Party");
- dynamicView.addAlias("PT", "partyId");
- dynamicView.addAlias("PT", "statusId");
- dynamicView.addAlias("PT", "partyTypeId");
- dynamicView.addMemberEntity("PI", "PartyIdentification");
- dynamicView.addAlias("PI", "partyIdentificationTypeId");
- dynamicView.addAlias("PI", "idValue");
- dynamicView.addViewLink("PT", "PI", Boolean.TRUE, ModelKeyMap.makeKeyMapList("partyId"));
- dynamicView.addMemberEntity("PER", "Person");
- dynamicView.addAlias("PER", "lastName");
- dynamicView.addAlias("PER", "firstName");
- dynamicView.addViewLink("PT", "PER", Boolean.TRUE, ModelKeyMap.makeKeyMapList("partyId"));
- dynamicView.addMemberEntity("PCP", "PartyContactMechPurpose");
- dynamicView.addAlias("PCP", "contactMechId");
- dynamicView.addAlias("PCP", "contactMechPurposeTypeId");
- dynamicView.addAlias("PCP", "fromDate");
- dynamicView.addAlias("PCP", "thruDate");
- dynamicView.addViewLink("PT", "PCP", Boolean.TRUE, ModelKeyMap.makeKeyMapList("partyId"));
- dynamicView.addMemberEntity("CM", "ContactMech");
- dynamicView.addAlias("CM", "contactMechId");
- dynamicView.addAlias("CM", "contactMechTypeId");
- dynamicView.addAlias("CM", "infoString");
- dynamicView.addViewLink("PCP", "CM", Boolean.TRUE, ModelKeyMap.makeKeyMapList("contactMechId"));
- dynamicView.addMemberEntity("PA", "PostalAddress");
- dynamicView.addAlias("PA", "address1");
- dynamicView.addAlias("PA", "city");
- dynamicView.addAlias("PA", "postalCode");
- dynamicView.addAlias("PA", "countryGeoId");
- dynamicView.addAlias("PA", "stateProvinceGeoId");
- dynamicView.addViewLink("CM", "PA", Boolean.TRUE, ModelKeyMap.makeKeyMapList("contactMechId"));
- if (UtilValidate.isNotEmpty(billingLocation) && "Y".equalsIgnoreCase(billingLocation)) {
- orExprs.add(EntityCondition.makeCondition("contactMechPurposeTypeId", EntityOperator.EQUALS, "BILLING_LOCATION"));
- }
- if (UtilValidate.isNotEmpty(shippingLocation) && "Y".equalsIgnoreCase(shippingLocation)) {
- orExprs.add(EntityCondition.makeCondition("contactMechPurposeTypeId", EntityOperator.EQUALS, "SHIPPING_LOCATION"));
- }
- if (!orExprs.isEmpty()) {
- andExprs.add(EntityCondition.makeCondition(orExprs, EntityOperator.OR));
- }
- andExprs.add(EntityCondition.makeCondition("partyTypeId", EntityOperator.EQUALS, "PERSON"));
- andExprs.add(EntityCondition.makeCondition("contactMechTypeId", EntityOperator.EQUALS, "POSTAL_ADDRESS"));
- if (UtilValidate.isNotEmpty(shippingLocation) && "N".equalsIgnoreCase(shippingLocation) && UtilValidate.isNotEmpty(billingLocation)
- && "N".equalsIgnoreCase(billingLocation)) {
- andExprs.add(EntityCondition.makeCondition("contactMechPurposeTypeId", EntityOperator.IN, UtilMisc.toList("SHIPPING_LOCATION",
- "BILLING_LOCATION")));
- }
- mainCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
- orderBy.add("lastName");
- orderBy.add("firstName");
- // search by last name
- if (UtilValidate.isNotEmpty(searchByPartyLastName)) {
- searchByPartyLastName = searchByPartyLastName.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("lastName"), EntityOperator.LIKE,
- EntityFunction.upper("%" + searchByPartyLastName + "%")));
- }
- // search by first name
- if (UtilValidate.isNotEmpty(searchByPartyFirstName)) {
- searchByPartyFirstName = searchByPartyFirstName.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("firstName"), EntityOperator.LIKE,
- EntityFunction.upper("%" + searchByPartyFirstName + "%")));
- }
- // search by party identification
- if (UtilValidate.isNotEmpty(searchByPartyIdValue)) {
- searchByPartyIdValue = searchByPartyIdValue.toUpperCase().trim();
- andExprs.add(EntityCondition.makeCondition(EntityFunction.upperField("idValue"), EntityOperator.EQUALS, searchByPartyIdValue));
- if (UtilValidate.isNotEmpty(partyIdentificationTypeId)) {
- andExprs.add(EntityCondition.makeCondition("partyIdentificationTypeId", EntityOperator.EQUALS, partyIdentificationTypeId));
- }
- }
- mainCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
- List<GenericValue> parties = null;
- try (EntityListIterator pli = delegator.findListIteratorByCondition(dynamicView, mainCond, null, null, orderBy, null)) {
- parties = EntityUtil.filterByDate(pli.getCompleteList(), true);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- result.put("partiesList", parties);
- return result;
- }
-}
diff --git a/webpos/src/main/java/org/apache/ofbiz/webpos/session/WebPosSession.java b/webpos/src/main/java/org/apache/ofbiz/webpos/session/WebPosSession.java
deleted file mode 100755
index c23129121..000000000
--- a/webpos/src/main/java/org/apache/ofbiz/webpos/session/WebPosSession.java
+++ /dev/null
@@ -1,381 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-package org.apache.ofbiz.webpos.session;
-
-import java.util.HashMap;
-import java.util.Locale;
-import java.util.Map;
-
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.base.util.GeneralException;
-import org.apache.ofbiz.base.util.UtilMisc;
-import org.apache.ofbiz.base.util.UtilProperties;
-import org.apache.ofbiz.base.util.UtilValidate;
-import org.apache.ofbiz.entity.Delegator;
-import org.apache.ofbiz.entity.DelegatorFactory;
-import org.apache.ofbiz.entity.GenericEntityException;
-import org.apache.ofbiz.entity.GenericValue;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCart;
-import org.apache.ofbiz.service.GenericServiceException;
-import org.apache.ofbiz.service.LocalDispatcher;
-import org.apache.ofbiz.service.ServiceUtil;
-import org.apache.ofbiz.webapp.control.LoginWorker;
-import org.apache.ofbiz.webpos.transaction.WebPosTransaction;
-
-public class WebPosSession {
-
- private static final String MODULE = WebPosSession.class.getName();
-
- private String id = null;
- private Map<String, Object> attributes = new HashMap<>();
- private GenericValue userLogin = null;
- private Locale locale = null;
- private String productStoreId = null;
- private String facilityId = null;
- private String currencyUomId = null;
- private transient Delegator delegator = null;
- private String delegatorName = null;
- private LocalDispatcher dispatcher = null;
- private Boolean mgrLoggedIn = null;
- private WebPosTransaction webPosTransaction = null;
- private ShoppingCart cart = null;
-
- public WebPosSession(String id, Map<String, Object> attributes, GenericValue userLogin, Locale locale, String productStoreId,
- String facilityId, String currencyUomId, Delegator delegator, LocalDispatcher dispatcher, ShoppingCart cart) {
- this.id = id;
- this.attributes = attributes;
- this.userLogin = userLogin;
- this.locale = locale;
- this.productStoreId = productStoreId;
- this.facilityId = facilityId;
- this.currencyUomId = currencyUomId;
-
- if (UtilValidate.isNotEmpty(delegator)) {
- this.delegator = delegator;
- this.delegatorName = delegator.getDelegatorName();
- } else {
- this.delegator = this.getDelegator();
- this.delegatorName = delegator.getDelegatorName();
- }
-
- this.dispatcher = dispatcher;
- this.cart = cart;
- Debug.logInfo("Created WebPosSession [" + id + "]", MODULE);
- }
-
- /**
- * Gets user login.
- * @return the user login
- */
- public GenericValue getUserLogin() {
- return this.userLogin;
- }
-
- /**
- * Sets user login.
- * @param userLogin the user login
- */
- public void setUserLogin(GenericValue userLogin) {
- this.userLogin = userLogin;
- }
-
- /**
- * Sets attribute.
- * @param name the name
- * @param value the value
- */
- public void setAttribute(String name, Object value) {
- this.attributes.put(name, value);
- }
-
- /**
- * Gets attribute.
- * @param name the name
- * @return the attribute
- */
- public Object getAttribute(String name) {
- return this.attributes.get(name);
- }
-
- /**
- * Gets id.
- * @return the id
- */
- public String getId() {
- return this.id;
- }
-
- /**
- * Gets user login id.
- * @return the user login id
- */
- public String getUserLoginId() {
- if (UtilValidate.isEmpty(getUserLogin())) {
- return null;
- } else {
- return this.getUserLogin().getString("userLoginId");
- }
- }
-
- /**
- * Gets user party id.
- * @return the user party id
- */
- public String getUserPartyId() {
- if (UtilValidate.isEmpty(getUserLogin())) {
- return null;
- } else {
- return this.getUserLogin().getString("partyId");
- }
- }
-
- /**
- * Gets locale.
- * @return the locale
- */
- public Locale getLocale() {
- return this.locale;
- }
-
- /**
- * Sets locale.
- * @param locale the locale
- */
- public void setLocale(Locale locale) {
- this.locale = locale;
- }
-
- /**
- * Gets product store id.
- * @return the product store id
- */
- public String getProductStoreId() {
- return this.productStoreId;
- }
-
- /**
- * Sets product store id.
- * @param productStoreId the product store id
- */
- public void setProductStoreId(String productStoreId) {
- this.productStoreId = productStoreId;
- }
-
- /**
- * Gets facility id.
- * @return the facility id
- */
- public String getFacilityId() {
- return this.facilityId;
- }
-
- /**
- * Sets facility id.
- * @param facilityId the facility id
- */
- public void setFacilityId(String facilityId) {
- this.facilityId = facilityId;
- }
-
- /**
- * Gets currency uom id.
- * @return the currency uom id
- */
- public String getCurrencyUomId() {
- return this.currencyUomId;
- }
-
- /**
- * Sets currency uom id.
- * @param currencyUomId the currency uom id
- */
- public void setCurrencyUomId(String currencyUomId) {
- this.currencyUomId = currencyUomId;
- }
-
- /**
- * Gets delegator.
- * @return the delegator
- */
- public Delegator getDelegator() {
- if (UtilValidate.isEmpty(delegator)) {
- delegator = DelegatorFactory.getDelegator(delegatorName);
- }
- return delegator;
- }
-
- /**
- * Gets dispatcher.
- * @return the dispatcher
- */
- public LocalDispatcher getDispatcher() {
- return dispatcher;
- }
-
- /**
- * Gets cart.
- * @return the cart
- */
- public ShoppingCart getCart() {
- return this.cart;
- }
-
- /**
- * Logout.
- */
- public void logout() {
- if (UtilValidate.isNotEmpty(webPosTransaction)) {
- webPosTransaction.closeTx();
- webPosTransaction = null;
- }
-
- if (UtilValidate.isNotEmpty(getUserLogin())) {
- LoginWorker.setLoggedOut(this.getUserLogin().getString("userLoginId"), this.getDelegator());
- }
- }
-
- /**
- * Login.
- * @param username the username
- * @param password the password
- * @param dispatcher the dispatcher
- * @throws UserLoginFailure the user login failure
- */
- public void login(String username, String password, LocalDispatcher dispatcher) throws UserLoginFailure {
- this.checkLogin(username, password, dispatcher);
- }
-
- /**
- * Check login generic value.
- * @param username the username
- * @param password the password
- * @param dispatcher the dispatcher
- * @return the generic value
- * @throws UserLoginFailure the user login failure
- */
- public GenericValue checkLogin(String username, String password, LocalDispatcher dispatcher) throws UserLoginFailure {
- // check the required parameters and objects
- if (UtilValidate.isEmpty(dispatcher)) {
- throw new UserLoginFailure(UtilProperties.getMessage("WebPosUiLabels", "WebPosUnableToLogIn", getLocale()));
- }
- if (UtilValidate.isEmpty(username)) {
- throw new UserLoginFailure(UtilProperties.getMessage("PartyUiLabels", "PartyUserNameMissing", getLocale()));
- }
- if (UtilValidate.isEmpty(password)) {
- throw new UserLoginFailure(UtilProperties.getMessage("PartyUiLabels", "PartyPasswordMissing", getLocale()));
- }
-
- // call the login service
- Map<String, Object> result = null;
- try {
- result = dispatcher.runSync("userLogin", UtilMisc.toMap("login.username", username, "login.password", password));
- } catch (GenericServiceException e) {
- Debug.logError(e, MODULE);
- throw new UserLoginFailure(e);
- } catch (Throwable t) {
- Debug.logError(t, "Throwable caught!", MODULE);
- }
-
- // check for errors
- if (ServiceUtil.isError(result)) {
- throw new UserLoginFailure(ServiceUtil.getErrorMessage(result));
- } else {
- GenericValue ul = (GenericValue) result.get("userLogin");
- if (ul == null) {
- throw new UserLoginFailure(UtilProperties.getMessage("WebPosUiLabels", "WebPosUserLoginNotValid", getLocale()));
- }
- return ul;
- }
- }
-
- /**
- * Has role boolean.
- * @param userLogin the user login
- * @param roleTypeId the role type id
- * @return the boolean
- */
- public boolean hasRole(GenericValue userLogin, String roleTypeId) {
- if (UtilValidate.isEmpty(userLogin) || UtilValidate.isEmpty(roleTypeId)) {
- return false;
- }
- String partyId = userLogin.getString("partyId");
- GenericValue partyRole = null;
- try {
- partyRole = getDelegator().findOne("PartyRole", false, "partyId", partyId, "roleTypeId", roleTypeId);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- return false;
- }
-
- if (UtilValidate.isEmpty(partyRole)) {
- return false;
- }
-
- return true;
- }
-
- /**
- * Is manager logged in boolean.
- * @return the boolean
- */
- public boolean isManagerLoggedIn() {
- if (UtilValidate.isEmpty(mgrLoggedIn)) {
- mgrLoggedIn = hasRole(getUserLogin(), "MANAGER");
- }
- return mgrLoggedIn;
- }
-
- /**
- * Gets current transaction.
- * @return the current transaction
- */
- public WebPosTransaction getCurrentTransaction() {
- if (UtilValidate.isEmpty(webPosTransaction)) {
- webPosTransaction = new WebPosTransaction(this);
- }
- return webPosTransaction;
- }
-
- /**
- * Sets current transaction.
- * @param webPosTransaction the web pos transaction
- */
- public void setCurrentTransaction(WebPosTransaction webPosTransaction) {
- this.webPosTransaction = webPosTransaction;
- }
-
- @SuppressWarnings("serial")
- public class UserLoginFailure extends GeneralException {
- public UserLoginFailure() {
- super();
- }
-
- public UserLoginFailure(String str) {
- super(str);
- }
-
- public UserLoginFailure(String str, Throwable nested) {
- super(str, nested);
- }
-
- public UserLoginFailure(Throwable nested) {
- super(nested);
- }
- }
-}
diff --git a/webpos/src/main/java/org/apache/ofbiz/webpos/transaction/WebPosTransaction.java b/webpos/src/main/java/org/apache/ofbiz/webpos/transaction/WebPosTransaction.java
deleted file mode 100755
index 556ab27c2..000000000
--- a/webpos/src/main/java/org/apache/ofbiz/webpos/transaction/WebPosTransaction.java
+++ /dev/null
@@ -1,519 +0,0 @@
-/*******************************************************************************
- * 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.
- *******************************************************************************/
-package org.apache.ofbiz.webpos.transaction;
-
-import java.math.BigDecimal;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.ofbiz.base.util.Debug;
-import org.apache.ofbiz.base.util.GeneralException;
-import org.apache.ofbiz.base.util.UtilDateTime;
-import org.apache.ofbiz.base.util.UtilGenerics;
-import org.apache.ofbiz.base.util.UtilMisc;
-import org.apache.ofbiz.base.util.UtilProperties;
-import org.apache.ofbiz.base.util.UtilValidate;
-import org.apache.ofbiz.entity.Delegator;
-import org.apache.ofbiz.entity.GenericEntityException;
-import org.apache.ofbiz.entity.GenericValue;
-import org.apache.ofbiz.entity.condition.EntityCondition;
-import org.apache.ofbiz.entity.util.EntityUtil;
-import org.apache.ofbiz.order.shoppingcart.CheckOutHelper;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCart;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCartItem;
-import org.apache.ofbiz.order.shoppingcart.ShoppingCart.CartPaymentInfo;
-import org.apache.ofbiz.product.store.ProductStoreWorker;
-import org.apache.ofbiz.service.GenericServiceException;
-import org.apache.ofbiz.service.LocalDispatcher;
-import org.apache.ofbiz.service.ServiceUtil;
-import org.apache.ofbiz.webpos.session.WebPosSession;
-
-public class WebPosTransaction {
-
- private static final String RESOURCE = "WebPosUiLabels";
- private static final String MODULE = WebPosTransaction.class.getName();
- public static final int NO_PAYMENT = 0;
- public static final int INTERNAL_PAYMENT = 1;
- public static final int EXTERNAL_PAYMENT = 2;
-
- private CheckOutHelper ch = null;
- private GenericValue txLog = null;
- private String transactionId = null;
- private String orderId = null;
- private String partyId = null;
- private boolean isOpen = false;
- private int drawerIdx = 0;
- private GenericValue shipAddress = null;
- private WebPosSession webPosSession = null;
-
- public WebPosTransaction(WebPosSession session) {
- this.webPosSession = session;
- this.partyId = "_NA_";
- Delegator delegator = session.getDelegator();
- ShoppingCart cart = session.getCart();
- this.ch = new CheckOutHelper(session.getDispatcher(), delegator, cart);
- cart.setChannelType("POS_SALES_CHANNEL");
- cart.setFacilityId(session.getFacilityId());
- cart.setTerminalId(session.getId());
-
- if (session.getUserLogin() != null) {
- cart.addAdditionalPartyRole(session.getUserLogin().getString("partyId"), "SALES_REP");
- }
-
- // setup the TX log
- this.transactionId = delegator.getNextSeqId("PosTerminalLog");
- txLog = delegator.makeValue("PosTerminalLog");
- txLog.set("posTerminalLogId", this.transactionId);
- txLog.set("posTerminalId", session.getId());
- txLog.set("transactionId", transactionId);
- txLog.set("userLoginId", session.getUserLoginId());
- txLog.set("statusId", "POSTX_ACTIVE");
- txLog.set("logStartDateTime", UtilDateTime.nowTimestamp());
- try {
- txLog.create();
- cart.setTransactionId(transactionId);
- } catch (GenericEntityException e) {
- Debug.logError(e, "Unable to create TX log - not fatal", MODULE);
- }
-
- Debug.logInfo("Created WebPosTransaction [" + this.transactionId + "]", MODULE);
- }
- /** get user login id */
- public String getUserLoginId() {
- return webPosSession.getUserLoginId();
- }
- /** get drawer number */
- public int getDrawerNumber() {
- return drawerIdx + 1;
- }
- /** get transaction id */
- public String getTransactionId() {
- return this.transactionId;
- }
- /** get terminal id */
- public String getTerminalId() {
- return webPosSession.getId();
- }
- /** get facilityId */
- public String getFacilityId() {
- return webPosSession.getFacilityId();
- }
- /** get terminal log id */
- public String getTerminalLogId() {
- return txLog.getString("posTerminalLogId");
- }
- /** is open */
- public boolean isOpen() {
- this.isOpen = false;
- GenericValue terminalState = this.getTerminalState();
- if (terminalState != null) {
- if ((terminalState.getDate("closedDate")) == null) {
- this.isOpen = true;
- }
- }
- return this.isOpen;
- }
- /** get terminal state */
- public GenericValue getTerminalState() {
- Delegator delegator = webPosSession.getDelegator();
- List<GenericValue> states = null;
- try {
- states = delegator.findList("PosTerminalState", EntityCondition.makeCondition(UtilMisc.toMap("posTerminalId", webPosSession.getId(),
- "startingTxId", getTransactionId())), null, null, null, false);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- states = EntityUtil.filterByDate(states, UtilDateTime.nowTimestamp(), "openedDate", "closedDate", true);
- return EntityUtil.getFirst(states);
- }
- /** close tax */
- public void closeTx() {
- if (UtilValidate.isNotEmpty(txLog)) {
- txLog.set("statusId", "POSTX_CLOSED");
- txLog.set("itemCount", (long) getCart().size());
- txLog.set("logEndDateTime", UtilDateTime.nowTimestamp());
- try {
- txLog.store();
- } catch (GenericEntityException e) {
- Debug.logError(e, "Unable to store TX log - not fatal", MODULE);
- }
- getCart().clear();
- Debug.logInfo("Transaction closed", MODULE);
- }
- }
- /** paid in out */
- public void paidInOut(String type) {
- if (UtilValidate.isNotEmpty(txLog)) {
- txLog.set("statusId", "POSTX_PAID_" + type);
- txLog.set("logEndDateTime", UtilDateTime.nowTimestamp());
- try {
- txLog.store();
- } catch (GenericEntityException e) {
- Debug.logError(e, "Unable to store TX log - not fatal", MODULE);
- }
- webPosSession.setCurrentTransaction(null);
- Debug.logInfo("Paid " + type, MODULE);
- }
- }
- /** modify price */
- public void modifyPrice(int cartLineIdx, BigDecimal price) {
- ShoppingCartItem item = getCart().findCartItem(cartLineIdx);
- if (UtilValidate.isNotEmpty(item)) {
- Debug.logInfo("Modify item price " + item.getProductId() + "/" + price, MODULE);
- item.setBasePrice(price);
- } else {
- Debug.logInfo("Item " + cartLineIdx + " not found", MODULE);
- }
- }
- /** calc tax */
- public void calcTax() {
- try {
- ch.calcAndAddTax(this.getStoreOrgAddress());
- } catch (GeneralException e) {
- Debug.logError(e, MODULE);
- }
- }
- /** process sale */
- public BigDecimal processSale() throws GeneralException {
- Debug.logInfo("Process sale", MODULE);
- BigDecimal grandTotal = this.getGrandTotal();
- BigDecimal paymentAmt = this.getPaymentTotal();
- if (grandTotal.compareTo(paymentAmt) > 0) {
- throw new GeneralException(UtilProperties.getMessage(RESOURCE, "WebPosNotEnoughFunds", webPosSession.getLocale()));
- }
-
- // attach the party ID to the cart
- getCart().setOrderPartyId(partyId);
-
- // validate payment methods
- Debug.logInfo("Validating payment methods", MODULE);
- Map<String, ? extends Object> valRes = UtilGenerics.cast(ch.validatePaymentMethods());
- if (valRes != null && ServiceUtil.isError(valRes)) {
- throw new GeneralException(ServiceUtil.getErrorMessage(valRes));
- }
-
- // store the order
- Debug.logInfo("Store order", MODULE);
- Map<String, ? extends Object> orderRes = UtilGenerics.cast(ch.createOrder(webPosSession.getUserLogin()));
-
- if (orderRes != null && ServiceUtil.isError(orderRes)) {
- throw new GeneralException(ServiceUtil.getErrorMessage(orderRes));
- } else if (orderRes != null) {
- this.orderId = (String) orderRes.get("orderId");
- }
-
- // process the payment(s)
- Debug.logInfo("Processing the payment(s)", MODULE);
- Map<String, ? extends Object> payRes = null;
- try {
- payRes = UtilGenerics.cast(ch.processPayment(ProductStoreWorker.getProductStore(webPosSession.getProductStoreId(),
- webPosSession.getDelegator()), webPosSession.getUserLogin(), true));
- } catch (GeneralException e) {
- Debug.logError(e, MODULE);
- throw e;
- }
-
- if (payRes != null && ServiceUtil.isError(payRes)) {
- throw new GeneralException(ServiceUtil.getErrorMessage(payRes));
- }
-
- // get the change due
- BigDecimal change = grandTotal.subtract(paymentAmt);
-
- // TODO notify the change due
-
- // threaded drawer/receipt printing
- // TODO open the drawer
- // TODO print the receipt
-
- // save the TX Log
- txLog.set("statusId", "POSTX_SOLD");
- txLog.set("orderId", orderId);
- txLog.set("itemCount", (long) getCart().size());
- txLog.set("logEndDateTime", UtilDateTime.nowTimestamp());
- try {
- txLog.store();
- } catch (GenericEntityException e) {
- Debug.logError(e, "Unable to store TX log - not fatal", MODULE);
- }
-
- return change;
- }
-
- private synchronized GenericValue getStoreOrgAddress() {
- if (UtilValidate.isEmpty(this.shipAddress)) {
- // locate the store's physical address - use this for tax
- GenericValue facility = null;
- try {
- facility = webPosSession.getDelegator().findOne("Facility", UtilMisc.toMap("facilityId", webPosSession.getFacilityId()), false);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- if (UtilValidate.isEmpty(facility)) {
- return null;
- }
-
- List<GenericValue> fcp = null;
- try {
- fcp = facility.getRelated("FacilityContactMechPurpose", UtilMisc.toMap("contactMechPurposeTypeId", "SHIP_ORIG_LOCATION"),
- null, false);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- fcp = EntityUtil.filterByDate(fcp);
- GenericValue purp = EntityUtil.getFirst(fcp);
- if (UtilValidate.isNotEmpty(purp)) {
- try {
- this.shipAddress = webPosSession.getDelegator().findOne("PostalAddress",
- UtilMisc.toMap("contactMechId", purp.getString("contactMechId")), false);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
- }
- }
- return this.shipAddress;
- }
- /** clear payments */
- public void clearPayments() {
- Debug.logInfo("all payments cleared from sale", MODULE);
- getCart().clearPayments();
- }
- /** clear payment */
- public void clearPayment(int index) {
- Debug.logInfo("removing payment " + index, MODULE);
- getCart().clearPayment(index);
- }
- /** clear payment */
- public void clearPayment(String id) {
- Debug.logInfo("removing payment " + id, MODULE);
- getCart().clearPayment(id);
- }
- /** get payment info */
- public CartPaymentInfo getPaymentInfo(int index) {
- return getCart().getPaymentInfo(index);
- }
- /** get payment method type id */
- public String getPaymentMethodTypeId(int index) {
- return getCart().getPaymentInfo(index).getPaymentMethodTypeId();
- }
- /** check payment method type */
- public int checkPaymentMethodType(String paymentMethodTypeId) {
- Map<String, ? extends Object> fields = UtilMisc.toMap("paymentMethodTypeId", paymentMethodTypeId, "productStoreId",
- webPosSession.getProductStoreId());
- List<GenericValue> values = null;
- try {
- values = webPosSession.getDelegator().findList("ProductStorePaymentSetting", EntityCondition.makeCondition(fields), null, null, null,
- true);
- } catch (GenericEntityException e) {
- Debug.logError(e, MODULE);
- }
-
- final String externalCode = "PRDS_PAY_EXTERNAL";
- if (UtilValidate.isEmpty(values)) {
- return NO_PAYMENT;
- } else {
- boolean isExternal = true;
- Iterator<GenericValue> i = values.iterator();
- while (i.hasNext() && isExternal) {
- GenericValue v = i.next();
- //Debug.logInfo("Testing [" + paymentMethodTypeId + "] - " + v, MODULE);
- if (!externalCode.equals(v.getString("paymentServiceTypeEnumId"))) {
- isExternal = false;
- }
- }
-
- if (isExternal) {
- return EXTERNAL_PAYMENT;
- } else {
- return INTERNAL_PAYMENT;
- }
- }
- }
-
- public static int getNoPaymentCode() {
- return NO_PAYMENT;
- }
-
- public static int getExternalPaymentCode() {
- return EXTERNAL_PAYMENT;
- }
-
- public static int getInternalPaymentCode() {
- return INTERNAL_PAYMENT;
- }
- /** add payment */
- public BigDecimal addPayment(String id, BigDecimal amount) {
- return this.addPayment(id, amount, null, null);
- }
- /** add payment */
- public BigDecimal addPayment(String id, BigDecimal amount, String refNum, String authCode) {
- Debug.logInfo("Added payment " + id + "/" + amount, MODULE);
- if ("CASH".equals(id)) {
- // clear cash payments first; so there is only one
- getCart().clearPayment(id);
- }
- getCart().addPaymentAmount(id, amount, refNum, authCode, true, true, false);
- return this.getTotalDue();
- }
- /** process amount */
- public BigDecimal processAmount(BigDecimal amount) throws GeneralException {
- if (UtilValidate.isEmpty(amount)) {
- Debug.logInfo("Amount is empty; assumption is full amount : " + this.getTotalDue(), MODULE);
- amount = this.getTotalDue();
- if (amount.compareTo(BigDecimal.ZERO) <= 0) {
- throw new GeneralException();
- }
- }
- return amount;
- }
- /** process no payment */
- public synchronized void processNoPayment(String paymentMethodTypeId) {
- try {
- BigDecimal amount = processAmount(null);
- Debug.logInfo("Processing [" + paymentMethodTypeId + "] Amount : " + amount, MODULE);
-
- // add the payment
- addPayment(paymentMethodTypeId, amount, null, null);
- } catch (GeneralException e) {
- // errors handled
- }
- }
- /** process external payment */
- public synchronized void processExternalPayment(String paymentMethodTypeId, BigDecimal amount, String refNum) {
- if (refNum == null) {
- //TODO handle error message
- return;
- }
-
- try {
- amount = processAmount(amount);
- Debug.logInfo("Processing [" + paymentMethodTypeId + "] Amount : " + amount, MODULE);
-
- // add the payment
- addPayment(paymentMethodTypeId, amount, refNum, null);
- } catch (GeneralException e) {
- // errors handled
- }
- }
- /** make credit card vo */
- public String makeCreditCardVo(String cardNumber, String expDate, String firstName, String lastName) {
- LocalDispatcher dispatcher = webPosSession.getDispatcher();
- String expMonth = expDate.substring(0, 2);
- String expYear = expDate.substring(2);
- // two digit year check -- may want to re-think this
- if (expYear.length() == 2) {
- expYear = "20" + expYear;
- }
-
- Map<String, Object> svcCtx = new HashMap<>();
- svcCtx.put("userLogin", webPosSession.getUserLogin());
- svcCtx.put("partyId", partyId);
- svcCtx.put("cardNumber", cardNumber);
- svcCtx.put("firstNameOnCard", firstName == null ? "" : firstName);
- svcCtx.put("lastNameOnCard", lastName == null ? "" : lastName);
- svcCtx.put("expMonth", expMonth);
- svcCtx.put("expYear", expYear);
- svcCtx.put("cardType", UtilValidate.getCardType(cardNumber));
-
- Map<String, Object> svcRes = null;
- try {
- svcRes = dispatcher.runSync("createCreditCard", svcCtx);
- } catch (GenericServiceException e) {
- Debug.logError(e, MODULE);
- return null;
- }
- if (ServiceUtil.isError(svcRes)) {
- Debug.logError(ServiceUtil.getErrorMessage(svcRes) + " - " + svcRes, MODULE);
- return null;
- } else {
- return (String) svcRes.get("paymentMethodId");
- }
- }
- /** set payment ref num */
- public void setPaymentRefNum(int paymentIndex, String refNum, String authCode) {
- Debug.logInfo("setting payment index reference number " + paymentIndex + " / " + refNum + " / " + authCode, MODULE);
- ShoppingCart.CartPaymentInfo inf = getCart().getPaymentInfo(paymentIndex);
- inf.setRefNum(refNum, authCode);
- }
-
- /** CVV2 code should be entered when a card can't be swiped */
- public void setPaymentSecurityCode(String paymentId, String refNum, String securityCode) {
- Debug.logInfo("setting payment security code " + paymentId, MODULE);
- int paymentIndex = getCart().getPaymentInfoIndex(paymentId, refNum);
- ShoppingCart.CartPaymentInfo inf = getCart().getPaymentInfo(paymentIndex);
- inf.setSecurityCode(securityCode);
- inf.setIsSwiped(false);
- }
-
- /** Track2 data should be sent to processor when a card is swiped. */
- public void setPaymentTrack2(String paymentId, String refNum, String securityCode) {
- Debug.logInfo("setting payment security code " + paymentId, MODULE);
- int paymentIndex = getCart().getPaymentInfoIndex(paymentId, refNum);
- ShoppingCart.CartPaymentInfo inf = getCart().getPaymentInfo(paymentIndex);
- inf.setSecurityCode(securityCode);
- inf.setIsSwiped(true);
- }
-
- /** Postal code should be entered when a card can't be swiped */
- public void setPaymentPostalCode(String paymentId, String refNum, String postalCode) {
- Debug.logInfo("setting payment security code " + paymentId, MODULE);
- int paymentIndex = getCart().getPaymentInfoIndex(paymentId, refNum);
- ShoppingCart.CartPaymentInfo inf = getCart().getPaymentInfo(paymentIndex);
- inf.setPostalCode(postalCode);
- }
- /** get tax total */
- public BigDecimal getTaxTotal() {
- return getCart().getTotalSalesTax();
- }
- /** get grand total */
- public BigDecimal getGrandTotal() {
- return getCart().getGrandTotal();
- }
- /** get number of payments */
- public int getNumberOfPayments() {
- return getCart().selectedPayments();
- }
- /** get payment total */
- public BigDecimal getPaymentTotal() {
- return getCart().getPaymentTotal();
- }
- /** get total quantity */
- public BigDecimal getTotalQuantity() {
- return getCart().getTotalQuantity();
- }
- /** get total due */
- public BigDecimal getTotalDue() {
- BigDecimal grandTotal = this.getGrandTotal();
- BigDecimal paymentAmt = this.getPaymentTotal();
- return grandTotal.subtract(paymentAmt);
- }
- /** add product promo code */
- public String addProductPromoCode(String code) {
- String result = getCart().addProductPromoCode(code, webPosSession.getDispatcher());
- calcTax();
- return result;
- }
-
- /** get cart */
- public ShoppingCart getCart() {
- return webPosSession.getCart();
- }
-}
diff --git a/webpos/template/ForgotPassword.ftl b/webpos/template/ForgotPassword.ftl
deleted file mode 100644
index 336e18437..000000000
--- a/webpos/template/ForgotPassword.ftl
+++ /dev/null
@@ -1,47 +0,0 @@
-<#--
-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.
--->
-
-<center>
- <div class="screenlet login-screenlet">
- <div class="screenlet-title-bar">
- <h3>${uiLabelMap.CommonForgotYourPassword}?</h3>
- </div>
- <div class="screenlet-body">
- <form method="post" action="<@o...@ofbizUrl>" name="getSecurityQuestion">
- <table class="basic-table" cellspacing="0">
- <tr>
- <td class="label">${uiLabelMap.CommonUsername}</td>
- <td><input class="required" type="text" size="20" name="USERNAME" value="<#if requestParameters.USERNAME?has_content>${requestParameters.USERNAME}<#elseif autoUserLogin?has_content>${autoUserLogin.userLoginId}</#if>"/></td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonContinue}"/>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <a href='<@o...@ofbizUrl>' class="buttontext">${uiLabelMap.CommonGoBack}</a>
- </td>
- </tr>
- </table>
- <input type="hidden" name="JavaScriptEnabled" value="N"/>
- </form>
- </div>
- </div>
-</center>
diff --git a/webpos/template/GetSecurityQuestion.ftl b/webpos/template/GetSecurityQuestion.ftl
deleted file mode 100644
index ab8debcf9..000000000
--- a/webpos/template/GetSecurityQuestion.ftl
+++ /dev/null
@@ -1,56 +0,0 @@
-<#--
-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.
--->
-
-<center>
- <div class="screenlet login-screenlet">
- <div class="screenlet-title-bar">
- <h3>${uiLabelMap.CommonForgotYourPassword}</h3>
- </div>
- <div class="screenlet-body">
- <form method="post" action="<@o...@ofbizUrl>" name="forgotpassword">
- <table class="basic-table" cellspacing="0">
- <#if userLoginId?has_content>
- <tr>
- <td class="label">${uiLabelMap.CommonUsername}</td>
- <td><input type="text" size="20" name="USERNAME" value="<#if requestParameters.USERNAME?has_content>${requestParameters.USERNAME}<#elseif autoUserLogin?has_content>${autoUserLogin.userLoginId}</#if>" /></td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" name="GET_PASSWORD_HINT" class="smallSubmit" value="${uiLabelMap.CommonGetPasswordHint}" />
- <input type="submit" name="EMAIL_PASSWORD" class="smallSubmit" value="${uiLabelMap.CommonEmailPassword}" />
- </td>
- </tr>
- <#else>
- <tr>
- <td colspan="2" align="center">
- ${uiLabelMap.PartyUserLoginMissingError}
- </td>
- </tr>
- </#if>
- <tr>
- <td colspan="2" align="center">
- <a href='#' class="buttontext" onclick="window.history.back();">${uiLabelMap.CommonGoBack}</a>
- </td>
- </tr>
- </table>
- <input type="hidden" name="JavaScriptEnabled" value="N" />
- </form>
- </div>
- </div>
-</center>
\ No newline at end of file
diff --git a/webpos/template/Login.ftl b/webpos/template/Login.ftl
deleted file mode 100644
index 76aabc914..000000000
--- a/webpos/template/Login.ftl
+++ /dev/null
@@ -1,82 +0,0 @@
-<#--
-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.
--->
-
-<#if requestAttributes.uiLabelMap??>
- <#assign uiLabelMap = requestAttributes.uiLabelMap>
-</#if>
-
-<#assign previousParams = sessionAttributes._PREVIOUS_PARAMS_!>
-<#if previousParams?has_content>
- <#assign previousParams = "?" + previousParams>
-</#if>
-
-<#assign username = requestParameters.USERNAME?default((sessionAttributes.autoUserLogin.userLoginId)?default(""))>
-<#if username != "">
- <#assign focusName = false>
-<#else>
- <#assign focusName = true>
-</#if>
-<center>
- <div class="screenlet login-screenlet">
- <div class="screenlet-title-bar">
- <h3>${uiLabelMap.CommonRegistered}</h3>
- </div>
- <div class="screenlet-body">
- <form method="post" action="<@o...@ofbizUrl>" name="loginform">
- <table class="basic-table" cellspacing="0">
- <tr>
- <td class="label">${uiLabelMap.CommonUsername}</td>
- <td><input type="text" name="USERNAME" value="${username}" size="20"/></td>
- </tr>
- <tr>
- <td class="label">${uiLabelMap.CommonPassword}</td>
- <td><input type="password" name="PASSWORD" autocomplete="off" value="" size="20"/></td>
- </tr>
- <tr>
- <td class="label">${uiLabelMap.WebPosChooseTerminal}</td>
- <td>
- <select name="posTerminalId" id="posTerminalId">
- <#list posTerminals as posTerminal>
- <option value="${posTerminal.posTerminalId}">${posTerminal.terminalName}</option>
- </#list>
- </select>
- </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonLogin}"/>
- </td>
- </tr>
- </table>
- <input type="hidden" name="JavaScriptEnabled" value="N"/>
- <br/>
- <a href="<@o...@ofbizUrl>">${uiLabelMap.CommonForgotYourPassword}?</a>
- </form>
- </div>
- </div>
-</center>
-
-<script type="text/javascript">
- document.loginform.JavaScriptEnabled.value = "Y";
- <#if focusName>
- document.loginform.USERNAME.focus();
- <#else>
- document.loginform.PASSWORD.focus();
- </#if>
-</script>
diff --git a/webpos/template/RequirePasswordChange.ftl b/webpos/template/RequirePasswordChange.ftl
deleted file mode 100644
index fada780df..000000000
--- a/webpos/template/RequirePasswordChange.ftl
+++ /dev/null
@@ -1,63 +0,0 @@
-<#--
-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.
--->
-<#assign username = ""/>
-<#if requestParameters.USERNAME?has_content>
- <#assign username = requestParameters.USERNAME/>
-<#elseif autoUserLogin?has_content>
- <#assign username = autoUserLogin.userLoginId/>
-</#if>
-<h1>${uiLabelMap.CommonLogin}</h1>
-<br />
-<div style="float: center; width: 49%; margin-right: 5px; text-align: center;" class="screenlet">
- <div class="screenlet-title-bar">${uiLabelMap.CommonPasswordChange}</div>
- <div class="screenlet-body" style="text-align: center;">
- <form method="post" action="<@o...@ofbizUrl>" name="loginform">
- <input type="hidden" name="requirePasswordChange" value="Y"/>
- <input type="hidden" name="USERNAME" value="${username}"/>
- <div>
- ${uiLabelMap.CommonUsername}: ${username}
- </div>
- <#if autoUserLogin?has_content>
- <div>
- (${uiLabelMap.CommonNot} ${autoUserLogin.userLoginId}? <a href="<@o...@ofbizUrl>" class="buttontext">${uiLabelMap.CommonClickHere}</a>)
- </div>
- </#if>
- <div>
- ${uiLabelMap.CommonPassword}:
- <input type="password" name="PASSWORD" autocomplete="off" value="" size="20"/>
- </div>
- <div>
- ${uiLabelMap.CommonNewPassword}:
- <input type="password" name="newPassword" autocomplete="off" value="" size="20"/>
- </div>
- <div>
- ${uiLabelMap.CommonNewPasswordVerify}:
- <input type="password" name="newPasswordVerify" autocomplete="off" value="" size="20"/>
- </div>
- <div>
- <input type="submit" class="smallSubmit" value="${uiLabelMap.CommonLogin}"/>
- </div>
- </form>
- </div>
-</div>
-
-<script type="text/javascript">
- <#if autoUserLogin?has_content>document.loginform.PASSWORD.focus();</#if>
- <#if !autoUserLogin?has_content>document.loginform.USERNAME.focus();</#if>
-</script>
diff --git a/webpos/template/cart/ChooseVariant.ftl b/webpos/template/cart/ChooseVariant.ftl
deleted file mode 100644
index 7e1736473..000000000
--- a/webpos/template/cart/ChooseVariant.ftl
+++ /dev/null
@@ -1,77 +0,0 @@
-<#--
-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.
--->
-<div id="chooseVariant" style="display:none">
- <form method="post" action="javascript:void(0);" id="ChooseVariantForm">
- <table border="0" width="100%">
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <div id="features" style="display: none"/>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>
- <div id="variantProductDescription"></div>
- <div id="variantProductPrice"></div>
- </b>
- </td>
- </tr>
- <tr id="addAmount" style="display:none">
- <td width="50%" align="right">
- ${uiLabelMap.CommonAmount}
- </td>
- <td width="50%" align="left">
- <input type="text" id="amount" name="add_amount" size="5" value=""/>
- </td>
- </tr>
- <tr>
- <td width="50%" align="right">
- ${uiLabelMap.CommonQuantity}
- </td>
- <td width="50%" align="left">
- <input type="hidden" id="variantProductId" name="add_product_id"/>
- <input type="hidden" id="variant" name="variant" value="Y"/>
- <input type="text" id="variantQuantity" name="variantQuantity" size="5" maxlength="5" value=""/>
- </td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="chooseVariantConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="chooseVariantCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <div class="errorPosMessage">
- <span id="chooseVariantFormServerError"/>
- </div>
- </td>
- </tr>
- </table>
- </form>
-</div>
\ No newline at end of file
diff --git a/webpos/template/cart/ShowCart.ftl b/webpos/template/cart/ShowCart.ftl
deleted file mode 100644
index 3bd19cad9..000000000
--- a/webpos/template/cart/ShowCart.ftl
+++ /dev/null
@@ -1,150 +0,0 @@
-<#--
-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.
--->
-<input type="hidden" id="selectedItem" name="selectedItem" value="${selectedItem?default(0)}"/>
-<input type="hidden" id="cartSize" name="cartSize" value="${shoppingCartSize?default(0)}"/>
-
-<#if (shoppingCartSize > 0)>
-<div id="CartHeader">
- <table class="basic-table" cellspacing="1" cellpadding="1">
- <input type="hidden" id="totalDue" value="${totalDue}"/>
- <input type="hidden" id="totalCash" value="${cashAmount}"/>
- <input type="hidden" id="totalCheck" value="${checkAmount}"/>
- <input type="hidden" id="totalGift" value="${giftAmount}"/>
- <input type="hidden" id="totalCredit" value="${creditAmount}"/>
- <input type="hidden" id="totalDueFormatted" value="<@ofbizCurrency amount=totalDue isoCode=shoppingCart.getCurrency()/>"/>
- <input type="hidden" id="totalCashFormatted" value="<@ofbizCurrency amount=cashAmount isoCode=shoppingCart.getCurrency()/>"/>
- <input type="hidden" id="totalCheckFormatted" value="<@ofbizCurrency amount=checkAmount isoCode=shoppingCart.getCurrency()/>"/>
- <input type="hidden" id="totalGiftFormatted" value="<@ofbizCurrency amount=giftAmount isoCode=shoppingCart.getCurrency()/>"/>
- <input type="hidden" id="totalCreditFormatted" value="<@ofbizCurrency amount=creditAmount isoCode=shoppingCart.getCurrency()/>"/>
- <tr>
- <td>${uiLabelMap.WebPosTransactionId}</td>
- <td><b>${transactionId?default("NA")}</b></td>
- <td>${(paymentCash.get("description", locale))!}</td>
- <td align="right"><b><@ofbizCurrency amount=cashAmount isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTotalItemSubTotal}</td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/></b></td>
- </tr>
- <tr>
- <td>${uiLabelMap.WebPosDrawer}</td>
- <td><b>${drawerNumber?default(0)}</b></td>
- <td>${(paymentCheck.get("description", locale))!}</td>
- <td align="right"><b><@ofbizCurrency amount=checkAmount isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTotalPromotions}</td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getOrderOtherAdjustmentTotal() isoCode=shoppingCart.getCurrency()/></b></td>
- </tr>
- <tr>
- <td>${uiLabelMap.WebPosTerminal}</td>
- <td><b><#if isOpen>${uiLabelMap.WebPosTerminalOpen}<#else>${uiLabelMap.WebPosTerminalClose}</#if></b></td>
- <td>${(paymentGift.get("description", locale))!}</td>
- <td align="right"><b><@ofbizCurrency amount=giftAmount isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTotalSalesTax}</td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getTotalSalesTax() isoCode=shoppingCart.getCurrency()/></b></td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td>${(paymentCredit.get("description", locale))!}</td>
- <td align="right"><b><@ofbizCurrency amount=creditAmount isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTotalShipping}</td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getTotalShipping() isoCode=shoppingCart.getCurrency()/></b></td>
- </tr>
- <tr>
- <td>${uiLabelMap.WebPosTransactionTotalDue}</td>
- <td align="right"><b><@ofbizCurrency amount=totalDue isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTransactionTotalPay}</td>
- <td align="right"><b><@ofbizCurrency amount=totalPay isoCode=shoppingCart.getCurrency()/></b></td>
- <td>${uiLabelMap.WebPosTotal}</td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getDisplayGrandTotal() isoCode=shoppingCart.getCurrency()/></b></td>
- </tr>
- </table>
-</div>
-</#if>
-<div id="Cart">
- <table class="basic-table" cellspacing="0">
- <thead class="CartHead">
- <tr class="header-row">
- <td nowrap><b>${uiLabelMap.OrderProduct}</b></td>
- <td nowrap align="center"><b>${uiLabelMap.CommonQuantity}</b></td>
- <td nowrap align="right"><b>${uiLabelMap.WebPosUnitPrice}</b></td>
- <td nowrap align="right"><b>${uiLabelMap.WebPosAdjustments}</b></td>
- <td nowrap align="right"><b>${uiLabelMap.WebPosItemTotal}</b></td>
- <td nowrap align="center"><b>${uiLabelMap.CommonRemove}</b></td>
- </tr>
- </thead>
- <#if (shoppingCartSize > 0)>
- <tbody class="CartBody">
- <#-- set initial row color -->
- <#assign alt_row = false>
- <#list shoppingCart.items() as cartLine>
- <#assign cartLineIndex = shoppingCart.getItemIndex(cartLine)>
- <tr id="cartLine${cartLineIndex}" <#if alt_row>class="pos-cart-even"<#else>class="pos-cart-odd"</#if>>
- <td>
- <div>
- <#if cartLine.getProductId()??>
- <#-- product item -->
- <#-- start code to display a small image of the product -->
- <#if cartLine.getParentProductId()??>
- <#assign parentProductId = cartLine.getParentProductId()/>
- <#else>
- <#assign parentProductId = cartLine.getProductId()/>
- </#if>
- <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")!>
- <#if !smallImageUrl?string?has_content><#assign smallImageUrl = "/images/defaultImage.jpg"></#if>
- <#if smallImageUrl?string?has_content>
- <img src="<@o...@ofbizContentUrl>" align="left" class="cssImgSmall" />
- </#if>
- <#-- end code to display a small image of the product -->
- ${cartLine.getProductId()} - ${cartLine.getName(dispatcher)!} : ${cartLine.getDescription(dispatcher)!}
- <#else>
- <#-- this is a non-product item -->
- <b>${cartLine.getItemTypeDescription()!}</b> : ${cartLine.getName(dispatcher)!}
- </#if>
- </div>
- </td>
- <td nowrap align="center">
- ${cartLine.getQuantity()?string.number}
- </td>
- <td nowrap align="right"><div><@ofbizCurrency amount=cartLine.getDisplayPrice() isoCode=shoppingCart.getCurrency()/></div></td>
- <td nowrap align="right"><div><@ofbizCurrency amount=cartLine.getOtherAdjustments() isoCode=shoppingCart.getCurrency()/></div></td>
- <td nowrap align="right"><div><@ofbizCurrency amount=cartLine.getDisplayItemSubTotal() isoCode=shoppingCart.getCurrency()/></div></td>
- <td nowrap align="center"><a href="javascript:deleteCartItem('${cartLineIndex}');"><img src="/images/mini-trash.png" /></a></td>
- </tr>
- <#-- toggle the row color -->
- <#assign alt_row = !alt_row>
- </#list>
- <tbody>
- <tfoot class="CartFoot">
- <tr>
- <td colspan="6"><b><hr/></b></td>
- </tr>
- <tr id="CartTotal">
- <td align="left"><b>${shoppingCartSize?default(0)}</b></td>
- <td align="center"><b>${totalQuantity?default(0)}</b></td>
- <td align="right"> </td>
- <td align="right"> </td>
- <td align="right"><b><@ofbizCurrency amount=shoppingCart.getDisplaySubTotal() isoCode=shoppingCart.getCurrency()/></b></td>
- <td align="right"> </td>
- </tr>
- <tfoot>
- </#if>
- </table>
-</div>
-<script type="text/javascript">
- selectCartItem();
-</script>
diff --git a/webpos/template/cart/ShowCartItemSelected.ftl b/webpos/template/cart/ShowCartItemSelected.ftl
deleted file mode 100644
index 4380353a0..000000000
--- a/webpos/template/cart/ShowCartItemSelected.ftl
+++ /dev/null
@@ -1,75 +0,0 @@
-<#--
-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.
--->
-<#assign focusOnQuantity = requestParameters.focusOnQuantity!/>
-<#assign cartLineIndex = requestParameters.cartLineIndex!/>
-<#if cartLineIndex?? && cartLineIndex?has_content>
- <#assign isInteger = Static["org.apache.ofbiz.base.util.UtilValidate"].isInteger(cartLineIndex)>
- <#if isInteger>
- <#assign idx = cartLineIndex?number>
- <#assign cartLine = shoppingCart.findCartItem(idx)!>
- <#if cartLine?? && cartLine?has_content>
- <#if cartLine.getProductId()??>
- <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(cartLine.getProduct(), "SMALL_IMAGE_URL", locale, dispatcher, "url")!>
- <#if !smallImageUrl?string?has_content>
- <#assign smallImageUrl = "/images/defaultImage.jpg">
- </#if>
- <#if smallImageUrl?string?has_content>
- <div id="CartItemSelectedLeft">
- <img src="<@o...@ofbizContentUrl>" align="left" class="cssImgSmall" />
- </div>
- </#if>
- <div id="CartItemSelectedRight">
- <#if cartLine.getProductId()?has_content>
- ${cartLine.getProductId()}
- <br/>
- </#if>
- <#if cartLine.getName(dispatcher)?has_content>
- ${cartLine.getName(dispatcher)}
- <#else>
- <#if cartLine.getDescription(dispatcher)?has_content>
- ${cartLine.getDescription(dispatcher)}
- </#if>
- </#if>
- <#else>
- <div id="CartItemSelectedRight">
- <#-- this is a non-product item -->
- <b>${cartLine.getItemTypeDescription()!}</b> : ${cartLine.getName(dispatcher)!}
- </#if>
- <br/>
- <b>${uiLabelMap.CommonQuantity}</b>
- <input type="text" id="itemQuantity" name="itemQuantity" value="${cartLine.getQuantity()}" size="5" maxlength="5"/>
- <a href="javascript:void(0);" id="incrementQuantity"><img src="/images/expand.gif"></a>
- <a href="javascript:void(0);" id="decrementQuantity"><img src="/images/collapse.gif"></a>
- <br/>
- <#if isManager?default(false)>
- <b>${uiLabelMap.WebPosManagerModifyPriceNewPrice}</b>
- <input type="hidden" id="cartLineIdx" name="cartLineIdx" value="${idx}"/>
- <input type="text" id="modifyPrice" name="modifyPrice" value="${cartLine.getDisplayPrice()}" size="8"/>
- <br/>
- </#if>
- <input type="hidden" id="lineIndex" name="lineIndex" value="${cartLineIndex}"/>
- <a id="updateCartItem" name="updateCartItem" href="javascript:updateCartItem();" class="buttontext">${uiLabelMap.CommonUpdate}</a>
- <a id="deleteCartItem" name="deleteCartItem" href="javascript:deleteCartItem('${cartLineIndex}');" class="buttontext">${uiLabelMap.CommonDelete}</a>
- </div>
- <script type="text/javascript">
- cartItemSelectedEvents('${focusOnQuantity}');
- </script>
- </#if>
- </#if>
-</#if>
diff --git a/webpos/template/catalog/CategoryDetail.ftl b/webpos/template/catalog/CategoryDetail.ftl
deleted file mode 100644
index 7917dcc8d..000000000
--- a/webpos/template/catalog/CategoryDetail.ftl
+++ /dev/null
@@ -1,68 +0,0 @@
-<#--
-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.
--->
-<#if productCategoryMembers??>
-<table>
- <#assign numButton = 1/>
- <#assign cell = 0/>
- <tr>
- <#list productCategoryMembers as productCategoryMember>
- <#assign product = productCategoryMember.getRelatedOne("Product", false)!>
- <#if product?? && product?has_content>
- <#assign smallImageUrl = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(product, "SMALL_IMAGE_URL", locale, dispatcher, "url")! />
- <#if !smallImageUrl?string?has_content>
- <#assign smallImageUrl = "/images/defaultImage.jpg">
- </#if>
- <#assign productName = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(product, "PRODUCT_NAME", locale, dispatcher, "html")! />
- <#if !productName?string?has_content>
- <#assign productName = Static["org.apache.ofbiz.product.product.ProductContentWrapper"].getProductContentAsText(product, "DESCRIPTION", locale, dispatcher, "html")! />
- </#if>
- <#assign addItemLink = "javascript:addItem('" + product.productId + "', '1', 'Y');">
- <td>
- <ol id="posButton">
- <#assign button = "button" + numButton>
- <li id="${button}" class="notSelectedButton">
- <#if smallImageUrl?string?has_content>
- <a href="${addItemLink}">
- <img src="<@o...@ofbizContentUrl>" align="center" class="cssImgSmall"/>
- </a>
- </#if>
- </li>
- </ol>
- <div class="linkButton">
- <a href="${addItemLink}">
- <b>${productName}</b>
- </a>
- </div>
- <td>
- </#if>
- <#assign numButton = numButton + 1/>
- <#assign cell = cell + 1/>
- <#if cell == 3>
- </tr>
- <#assign cell = 0/>
- </#if>
- </#list>
- <#if cell != 3>
- </tr>
- </#if>
-</table>
-<script type="text/javascript">
- showSelectedButton();
-</script>
-</#if>
diff --git a/webpos/template/catalog/SideDeepCategory.ftl b/webpos/template/catalog/SideDeepCategory.ftl
deleted file mode 100644
index 4ae6d63e8..000000000
--- a/webpos/template/catalog/SideDeepCategory.ftl
+++ /dev/null
@@ -1,82 +0,0 @@
-<#--
-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.
--->
-<#-- variable setup and worker calls -->
-<#if (requestAttributes.topLevelList)??><#assign topLevelList = requestAttributes.topLevelList></#if>
-<#if (requestAttributes.curCategoryId)??><#assign curCategoryId = requestAttributes.curCategoryId></#if>
-
-<#-- looping macro -->
-<#macro categoryList parentCategory category wrapInBox>
- <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")??>
- <#assign categoryName = catContentWrappers[category.productCategoryId].get("CATEGORY_NAME", "html")>
- <#else>
- <#assign categoryName = category.categoryName!>
- </#if>
- <#if catContentWrappers?? && catContentWrappers[category.productCategoryId]?? && catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")??>
- <#assign categoryDescription = catContentWrappers[category.productCategoryId].get("DESCRIPTION", "html")>
- <#else>
- <#assign categoryDescription = category.description!>
- </#if>
- <#if curCategoryId?? && curCategoryId == category.productCategoryId>
- <#assign browseCategoryButtonClass = "browsecategorybuttondisabled">
- <#else>
- <#assign browseCategoryButtonClass = "browsecategorybutton">
- </#if>
- <#if "Y" == wrapInBox>
- <div id="sidedeepcategory">
- <h3><#if categoryDescription?has_content>${categoryDescription}<#else>${categoryName?default("")}</#if></h3>
- <div>
- <div class="browsecategorylist">
- </#if>
- <li class="browsecategorytext">
- <#if parentCategory?has_content>
- <#assign parentCategoryId = parentCategory.productCategoryId/>
- <#else>
- <#assign parentCategoryId = ""/>
- </#if>
- <#assign categoryUrl = "javascript:selectCategory('" + category.productCategoryId + "');"/>
- <a href="${categoryUrl}" class="${browseCategoryButtonClass}"><#if categoryName?has_content>${categoryName}<#else>${categoryDescription?default("")}</#if></a>
- <#if (Static["org.apache.ofbiz.product.category.CategoryWorker"].checkTrailItem(request, category.getString("productCategoryId"))) || (curCategoryId?? && curCategoryId == category.productCategoryId)>
- <#local subCatList = Static["org.apache.ofbiz.product.category.CategoryWorker"].getRelatedCategoriesRet(request, "subCatList", category.getString("productCategoryId"), true)>
- <#if subCatList??>
- <#list subCatList as subCat>
- <ol class="browsecategorylist">
- <@categoryList parentCategory=category category=subCat wrapInBox="N"/>
- </ol>
- </#list>
- </#if>
- </#if>
- </li>
- <#if "Y" == wrapInBox>
- </div>
- </div>
- </div>
- </#if>
-</#macro>
-
-<#if topLevelList?has_content>
-<div id="sidedeepcategory">
- <div>
- <ol class="browsecategorylist">
- <#list topLevelList as category>
- <@categoryList parentCategory=category category=category wrapInBox="N"/>
- </#list>
- </ol>
- </div>
-</div>
-</#if>
diff --git a/webpos/template/customer/EditAddress.ftl b/webpos/template/customer/EditAddress.ftl
deleted file mode 100644
index 82ab1c30f..000000000
--- a/webpos/template/customer/EditAddress.ftl
+++ /dev/null
@@ -1,98 +0,0 @@
-<#--
-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.
--->
-<div id="editAddress" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td width="100%" colspan="4">
- <br />
- </td>
- </tr>
- <tr>
- <td width="15%">
- <b>${uiLabelMap.PartyLastName}</b>
- </td>
- <td width="35%">
- <input type="hidden" id="partyId" name="partyId" value="" />
- <input type="hidden" id="contactMechId" name="contactMechId" value="" />
- <input type="hidden" id="contactMechPurposeTypeId" name="contactMechPurposeTypeId" value="" />
- <input type="text" id="personLastName" name="personLastName" value="" size="40" />
- </td>
- <td width="15%">
- <b>${uiLabelMap.PartyFirstName}</b>
- </td>
- <td width="35%">
- <input type="text" id="personFirstName" name="personFirstName" value="" size="40" />
- </td>
- </tr>
- <tr>
- <td width="15%">
- <b>${uiLabelMap.PartyAddressLine1}</b>
- </td>
- <td width="35%">
- <input type="text" id="personAddress1" name="personAddress1" value="" size="40" />
- </td>
- <td width="15%">
- <b>${uiLabelMap.PartyAddressLine2}</b>
- </td>
- <td width="35%">
- <input type="text" id="personAddress2" name="personAddress2" value="" size="40" />
- </td>
- </tr>
- <tr>
- <td width="15%">
- <b>${uiLabelMap.CommonCountry}</b>
- </td>
- <td width="35%">
- <input type="text" id="countryProvinceGeo" name="countryProvinceGeo" value="" />
- </td>
- <td width="15%">
- <b>${uiLabelMap.PartyState}</b>
- </td>
- <td width="35%">
- <input type="text" id="stateProvinceGeo" name="stateProvinceGeo" value="" />
- </td>
- </tr>
- <tr>
- <td width="15%">
- <b>${uiLabelMap.PartyCity}</b>
- </td>
- <td width="35%">
- <input type="text" id="personCity" name="personCity" value="" size="40" />
- </td>
- <td width="15%">
- <b>${uiLabelMap.PartyPostalCode}</b>
- </td>
- <td width="35%">
- <input type="text" id="personPostalCode" name="personPostalCode" value="" size="7" />
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="4">
- <br />
- </td>
- </tr>
- <tr>
- <td width="100%" colspan="4" align="center">
- <input type="submit" id="editAddressCreateUpdate" name="editAddressCreateUpdate" value="${uiLabelMap.CommonCreate}"/>
-
- <input type="submit" id="editAddressCancel" name="editAddressCancel" value="${uiLabelMap.CommonCancel}"/>
- </td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/includes/Header.ftl b/webpos/template/includes/Header.ftl
deleted file mode 100644
index df7e19162..000000000
--- a/webpos/template/includes/Header.ftl
+++ /dev/null
@@ -1,56 +0,0 @@
-<#--
-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.
--->
-<#-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
-<html xmlns="http://www.w3.org/1999/xhtml">
-<#-- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> -->
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <title><#if title?has_content>${title}<#elseif titleProperty?has_content>${uiLabelMap.get(titleProperty)}</#if>: ${(productStore.storeName)!}</title>
- <#if layoutSettings.shortcutIcon?has_content>
- <link rel="shortcut icon" href="<@o...@ofbizContentUrl>" />
- </#if>
- <#if layoutSettings.javaScripts?has_content>
- <#--layoutSettings.javaScripts is a list of java scripts. -->
- <#list layoutSettings.javaScripts as javaScript>
- <script src="<@o...@ofbizContentUrl>" type="text/javascript"></script>
- </#list>
- </#if>
- <#if layoutSettings.styleSheets?has_content>
- <#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet, AND a component style sheet.-->
- <#list layoutSettings.styleSheets as styleSheet>
- <link rel="stylesheet" href="<@o...@ofbizContentUrl>" type="text/css"/>
- </#list>
- </#if>
- <#-- Append CSS for catalog -->
- <#if catalogStyleSheet??>
- <link rel="stylesheet" href="${catalogStyleSheet}" type="text/css"/>
- </#if>
- <#-- Append CSS for tracking codes -->
- <#if sessionAttributes.overrideCss??>
- <link rel="stylesheet" href="${sessionAttributes.overrideCss}" type="text/css"/>
- </#if>
- <#-- Meta tags if defined by the page action -->
- <#if metaDescription??>
- <meta name="description" content="${metaDescription}"/>
- </#if>
- <#if metaKeywords??>
- <meta name="keywords" content="${metaKeywords}"/>
- </#if>
-</head>
-<body>
\ No newline at end of file
diff --git a/webpos/template/includes/Messages.ftl b/webpos/template/includes/Messages.ftl
deleted file mode 100644
index 2ac048496..000000000
--- a/webpos/template/includes/Messages.ftl
+++ /dev/null
@@ -1,66 +0,0 @@
-<#--
-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.
--->
-
-<#if requestAttributes.errorMessageList?has_content><#assign errorMessageList=requestAttributes.errorMessageList></#if>
-<#if requestAttributes.eventMessageList?has_content><#assign eventMessageList=requestAttributes.eventMessageList></#if>
-<#if requestAttributes.serviceValidationException??><#assign serviceValidationException = requestAttributes.serviceValidationException></#if>
-<#if requestAttributes.uiLabelMap?has_content><#assign uiLabelMap = requestAttributes.uiLabelMap></#if>
-
-<#if !errorMessage?has_content>
- <#assign errorMessage = requestAttributes._ERROR_MESSAGE_!>
-</#if>
-<#if !errorMessageList?has_content>
- <#assign errorMessageList = requestAttributes._ERROR_MESSAGE_LIST_!>
-</#if>
-<#if !eventMessage?has_content>
- <#assign eventMessage = requestAttributes._EVENT_MESSAGE_!>
-</#if>
-<#if !eventMessageList?has_content>
- <#assign eventMessageList = requestAttributes._EVENT_MESSAGE_LIST_!>
-</#if>
-
-<#-- display the error messages -->
-<#if (errorMessage?has_content || errorMessageList?has_content)>
- <div class="errorPosMessage">
- <#if errorMessage?has_content>
- <p>${errorMessage}</p>
- </#if>
- <#if errorMessageList?has_content>
- <#list errorMessageList as errorMsg>
- <p>${errorMsg}</p>
- </#list>
- </#if>
- </div>
-</#if>
-
-<#-- display the event messages -->
-<#if (eventMessage?has_content || eventMessageList?has_content)>
- <div class="errorPosMessage">
- <#if eventMessage?has_content>
- <p>${eventMessage}</p>
- </#if>
- <#if eventMessageList?has_content>
- <#list eventMessageList as eventMsg>
- <p>${eventMsg}</p>
- </#list>
- </#if>
- </div>
-</#if>
-
-<div id="errors" style="display:none" class="errorPosMessage"/>
\ No newline at end of file
diff --git a/webpos/template/manager/CloseTerminal.ftl b/webpos/template/manager/CloseTerminal.ftl
deleted file mode 100644
index a91365cbf..000000000
--- a/webpos/template/manager/CloseTerminal.ftl
+++ /dev/null
@@ -1,57 +0,0 @@
-<#--
-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.
--->
-<div id="closeTerminal" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerCloseTerminalCashAmount}</td>
- <td width="50%" align="left"><input type="text" id="endingDrawerCashAmount" name="endingDrawerCashAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerCloseTerminalCheckAmount}</td>
- <td width="50%" align="left"><input type="text" id="endingDrawerCheckAmount" name="endingDrawerCheckAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerCloseTerminalCcAmount}</td>
- <td width="50%" align="left"><input type="text" id="endingDrawerCcAmount" name="endingDrawerCcAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerCloseTerminalGcAmount}</td>
- <td width="50%" align="left"><input type="text" id="endingDrawerGcAmount" name="endingDrawerGcAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerCloseTerminalOtherAmount}</td>
- <td width="50%" align="left"><input type="text" id="endingDrawerOtherAmount" name="endingDrawerOtherAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="closeTerminalConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="closeTerminalCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="closeTerminalFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/manager/OpenTerminal.ftl b/webpos/template/manager/OpenTerminal.ftl
deleted file mode 100644
index 6b3638ad1..000000000
--- a/webpos/template/manager/OpenTerminal.ftl
+++ /dev/null
@@ -1,41 +0,0 @@
-<#--
-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.
--->
-<div id="openTerminal" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerOpenTerminalDrawingAmount}</td>
- <td width="50%" align="left"><input type="text" id="startingDrawerAmount" name="startingDrawerAmount" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="openTerminalConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="openTerminalCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="openTerminalFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/manager/PaidOutAndIn.ftl b/webpos/template/manager/PaidOutAndIn.ftl
deleted file mode 100644
index 92e4ec8d7..000000000
--- a/webpos/template/manager/PaidOutAndIn.ftl
+++ /dev/null
@@ -1,68 +0,0 @@
-<#--
-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.
--->
-<div id="paidOutAndIn" style="display:none">
- <input type="hidden" id="paidType" name="type"/>
- <table border="0" width="100%">
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td width="50%" align="right">
- <span id="amountPaidIn" style="display:none">${uiLabelMap.WebPosManagerPaidInAmount}</span>
- <span id="amountPaidOut" style="display:none">${uiLabelMap.WebPosManagerPaidOutAmount}</span>
- </td>
- <td width="50%" align="left"><input type="text" id="amountInOut" name="amountInOut" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerPaidOutAndIndReason}</td>
- <td width="50%" align="left">
- <div id="reasonIn" style="display:none">
- <select id="reasIn" name="reasonIn">
- <#list paidReasonIn as reason>
- <option value="${reason.enumId}">${reason.get("description", locale)?default(reason.enumId)}</option>
- </#list>
- </select>
- </div>
- <div id="reasonOut" style="display:none">
- <select id="reasOut" name="reasonOut">
- <#list paidReasonOut as reason>
- <option value="${reason.enumId}">${reason.get("description", locale)?default(reason.enumId)}</option>
- </#list>
- </select>
- </div>
- </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerPaidOutAndIndReasonComment}</td>
- <td width="50%" align="left"><input type="text" id="reasonCommentInOut" name="reasonCommentInOut" value=""/></td>
- </tr>
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="paidOutAndInConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="paidOutAndInCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="paidOutAndInFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/manager/VoidOrder.ftl b/webpos/template/manager/VoidOrder.ftl
deleted file mode 100644
index 71a3cf156..000000000
--- a/webpos/template/manager/VoidOrder.ftl
+++ /dev/null
@@ -1,41 +0,0 @@
-<#--
-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.
--->
-<div id="voidOrder" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosManagerVoidOrderNumber}</td>
- <td width="50%" align="left"><input type="text" id="orderId" name="orderId" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="voidOrderConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="voidOrderCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="voidOrderFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/payment/PayCash.ftl b/webpos/template/payment/PayCash.ftl
deleted file mode 100644
index a92d62437..000000000
--- a/webpos/template/payment/PayCash.ftl
+++ /dev/null
@@ -1,54 +0,0 @@
-<#--
-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.
--->
-<div id="payCash" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosTransactionTotalDue} <span id="cashTotalDue"/></b>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosPayCashTotal} <span id="cashTotalPaid"/></b>
- <a id="removeCashTotalPaid" href="javascript:void(0);"><img src="/images/collapse.gif"></a>
- </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPayCash}</td>
- <td width="50%" align="left">
- <input type="text" id="amountCash" name="amountCash" size="10" value=""/>
- </td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="payCashConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="payCashCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="payCashFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/payment/PayCheck.ftl b/webpos/template/payment/PayCheck.ftl
deleted file mode 100644
index b3b319893..000000000
--- a/webpos/template/payment/PayCheck.ftl
+++ /dev/null
@@ -1,56 +0,0 @@
-<#--
-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.
--->
-<div id="payCheck" style="display:none">
- <table border="0" width="100%">
- <tr rowspan="2">
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosTransactionTotalDue} <span id="checkTotalDue"/></b>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosPayCheckTotal} <span id="checkTotalPaid"/></b>
- <a id="removeCheckTotalPaid" href="javascript:void(0);"><img src="/images/collapse.gif"></a>
- </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPayCheck}</td>
- <td width="50%" align="left"><input type="text" id="amountCheck" name="amountCheck" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPayCheckRefNum}</td>
- <td width="50%" align="left"><input type="text" id="refNumCheck" name="refNum" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="payCheckConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="payCheckCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="payCheckFormServerError"/></div></td>
- </tr>
- </table>
-</div>
diff --git a/webpos/template/payment/PayCreditCard.ftl b/webpos/template/payment/PayCreditCard.ftl
deleted file mode 100644
index cef1be005..000000000
--- a/webpos/template/payment/PayCreditCard.ftl
+++ /dev/null
@@ -1,151 +0,0 @@
-<#--
-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.
--->
-<div id="payCreditCard" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="4"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="4">
- <b>${uiLabelMap.WebPosTransactionTotalDue} <span id="creditCardTotalDue"/></b>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="4">
- <b>${uiLabelMap.WebPosPayCreditCardTotal} <span id="creditCardTotalPaid"/></b>
- <a id="removeCreditCardTotalPaid" href="javascript:void(0);"><img src="/images/collapse.gif"></a>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="4">
- ${uiLabelMap.WebPosPayCreditCardSwipe} <input type="checkbox" id="swipeCard" name="swipeCard" value="Y" checked="checked">
- </td>
- </tr>
- <tr id="showSwipeData">
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardSwipeData}
- </td>
- <td width="75%" align="left" colspan="3">
- <input type="password" id="swipeData" name="swipeData" size="50" autocomplete="off" value=""/>
- </td>
- </tr>
- <tr id="showCreditCardData1" style="display:none">
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardFirstName}
- </td>
- <td width="25%" align="left">
- <input type="text" id="firstName" name="firstName" size="20" maxlength="60" value=""/>
- </td>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardLastName}
- </td>
- <td width="25%" align="left">
- <input type="text" id="lastName" name="lastName" size="20" maxlength="60" value=""/></td>
- </td>
- </tr>
- <tr id="showCreditCardData2" style="display:none">
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardNum}
- </td>
- <td width="25%" align="left">
- <input type="text" id="cardNum" name="cardNum" size="20" maxlength="30" value=""/>
- </td>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardExp}
- </td>
- <td width="25%" align="left">
- <#assign expMonth = "">
- <#assign expYear = "">
- <select id="expMonth" name="expMonth">
- <option value="01" <#if expMonth?default('') == '01'> selected="selected"</#if>>${uiLabelMap.CommonJanuary}</option>
- <option value="02" <#if expMonth?default('') == '02'> selected="selected"</#if>>${uiLabelMap.CommonFebruary}</option>
- <option value="03" <#if expMonth?default('') == '03'> selected="selected"</#if>>${uiLabelMap.CommonMarch}</option>
- <option value="04" <#if expMonth?default('') == '04'> selected="selected"</#if>>${uiLabelMap.CommonApril}</option>
- <option value="05" <#if expMonth?default('') == '05'> selected="selected"</#if>>${uiLabelMap.CommonMay}</option>
- <option value="06" <#if expMonth?default('') == '06'> selected="selected"</#if>>${uiLabelMap.CommonJune}</option>
- <option value="07" <#if expMonth?default('') == '07'> selected="selected"</#if>>${uiLabelMap.CommonJuly}</option>
- <option value="08" <#if expMonth?default('') == '08'> selected="selected"</#if>>${uiLabelMap.CommonAugust}</option>
- <option value="09" <#if expMonth?default('') == '09'> selected="selected"</#if>>${uiLabelMap.CommonSeptember}</option>
- <option value="10" <#if expMonth?default('') == '10'> selected="selected"</#if>>${uiLabelMap.CommonOctober}</option>
- <option value="11" <#if expMonth?default('') == '11'> selected="selected"</#if>>${uiLabelMap.CommonNovember}</option>
- <option value="12" <#if expMonth?default('') == '12'> selected="selected"</#if>>${uiLabelMap.CommonDecember}</option>
- </select>
- <select id="expYear" name="expYear">
- <#assign ccExprYear = requestParameters.expYear!>
- <#if ccExprYear?has_content>
- <option value="${ccExprYear!}">${ccExprYear!}</option>
- </#if>
- ${screens.render("component://common/widget/CommonScreens.xml#ccyears")}
- </select>
- </td>
- </tr>
- <tr>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardType}
- </td>
- <td width="25%" align="left">
- <select id="cardType" name="cardType">
- ${screens.render("component://common/widget/CommonScreens.xml#cctypes")}
- </select>
- </td>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardSecurityCode}
- </td>
- <td width="25%" align="left">
- <input type="text" id="securityCode" name="securityCode" size="5" maxlength="10" value=""/>
- <input type="hidden" name="track2" id="track2"/>
- </td>
- </tr>
- <tr>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCard}
- </td>
- <td width="25%" align="left">
- <input type="text" id="amountCreditCard" name="amountCreditCard" size="10" value=""/>
- </td>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardPostalCode}
- </td>
- <td width="25%" align="left">
- <input type="text" id="postalCode" name="postalCode" value=""/>
- </td>
- </tr>
- <tr>
- <td width="25%" align="right">
- ${uiLabelMap.WebPosPayCreditCardRefNum}
- </td>
- <td width="25%" align="left">
- <input type="text" id="refNumCreditCard" name="refNum" size="10" value=""/>
- </td>
- <td width="50%" colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" colspan="4"> </td>
- </tr>
- <tr>
- <td colspan="4" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="payCreditCardConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="payCreditCardCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="4"><div class="errorPosMessage"><span id="payCreditCardFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/payment/PayGiftCard.ftl b/webpos/template/payment/PayGiftCard.ftl
deleted file mode 100644
index 6212ac25a..000000000
--- a/webpos/template/payment/PayGiftCard.ftl
+++ /dev/null
@@ -1,56 +0,0 @@
-<#--
-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.
--->
-<div id="payGiftCard" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosTransactionTotalDue} <span id="giftCardTotalDue"/></b>
- </td>
- </tr>
- <tr>
- <td width="100%" align="center" colspan="2">
- <b>${uiLabelMap.WebPosPayGiftCardTotal} <span id="giftCardTotalPaid"/></b>
- <a id="removeGiftCardTotalPaid" href="javascript:void(0);"><img src="/images/collapse.gif"></a>
- </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPayGiftCard}</td>
- <td width="50%" align="left"><input type="text" id="amountGiftCard" name="amountGiftCard" size="10" value=""/></td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPayGiftCardRefNum}</td>
- <td width="50%" align="left"><input type="text" id="refNumGiftCard" name="refNum" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="payGiftCardConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="payGiftCardCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="payGiftCardFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/promo/PromoCode.ftl b/webpos/template/promo/PromoCode.ftl
deleted file mode 100644
index 749e17d29..000000000
--- a/webpos/template/promo/PromoCode.ftl
+++ /dev/null
@@ -1,41 +0,0 @@
-<#--
-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.
--->
-<div id="promo" style="display:none">
- <table border="0" width="100%">
- <tr>
- <td colspan="2"> </td>
- </tr>
- <tr>
- <td width="50%" align="right">${uiLabelMap.WebPosPromoCode}</td>
- <td width="50%" align="left"><input type="text" id="promoCode" name="promoCode" size="10" value=""/></td>
- </tr>
- <tr>
- <td colspan="2""> </td>
- </tr>
- <tr>
- <td colspan="2" align="center">
- <input type="submit" value="${uiLabelMap.CommonConfirm}" id="promoCodeConfirm"/>
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="promoCodeCancel"/>
- </td>
- </tr>
- <tr>
- <td colspan="2"><div class="errorPosMessage"><span id="promoCodeFormServerError"/></div></td>
- </tr>
- </table>
-</div>
\ No newline at end of file
diff --git a/webpos/template/search/CustomerAddress.ftl b/webpos/template/search/CustomerAddress.ftl
deleted file mode 100644
index 2aa38d9c3..000000000
--- a/webpos/template/search/CustomerAddress.ftl
+++ /dev/null
@@ -1,121 +0,0 @@
-<#--
-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.
--->
-<div class="screenlet">
- <div class="screenlet-title-bar">
- <ul>
- <li class="h3">
- <a id="billingAddressSelected" href="javascript:void(0);">${uiLabelMap.WebPosBillingAddress}</a>
-
- <a id="shippingAddressSelected" href="javascript:void(0);">${uiLabelMap.WebPosShippingAddress}</a>
- </li>
- </ul>
- <br class="clear" />
- </div>
- <div class="screenlet-body">
- <div id="customerAddress">
- <div id="centerTopBarLeft">
- <input type="hidden" id="billingLocation" name="billingLocation" value="Y"/>
- <input type="hidden" id="shippingLocation" name="shippingLocation" value="N"/>
- <div id="billingAddress">
- <table class="basic-table" cellspacing="0">
- <#if billingPostalAddress??>
- <#if personBillTo??>
- <tr>
- <td><b><#if personBillTo.lastName?has_content>${personBillTo.lastName}</#if> <#if personBillTo.firstName?has_content>${personBillTo.firstName}</#if></b></td>
- </tr>
- </#if>
- <#assign state = billingPostalAddress.getRelatedOne("StateProvinceGeo", false)!/>
- <#assign country = billingPostalAddress.getRelatedOne("CountryGeo", false)!/>
- <tr>
- <td><#if billingPostalAddress.address1?has_content>${billingPostalAddress.address1}</#if></td>
- </tr>
- <tr>
- <td><#if billingPostalAddress.city?has_content>${billingPostalAddress.city},</#if> <#if state?? && state?has_content && state.geoCode?has_content>${state.geoCode}</#if> <#if billingPostalAddress.postalCode?has_content>${billingPostalAddress.postalCode}</#if>
- </td>
- </tr>
- <tr>
- <td><#if country?? && country?has_content &&country.get("geoName", locale)?has_content>${country.get("geoName", locale)}</#if>
- </td>
- </tr>
- <#else>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align="center"><b>${uiLabelMap.WebPosNoPartyInformation}</b></td>
- </tr>
- </#if>
- </table>
- </div>
- <div id="shippingAddress" style="display:none">
- <table class="basic-table" cellspacing="0">
- <#if shippingPostalAddress??>
- <#if personShipTo??>
- <tr>
- <td><b><#if personShipTo.lastName?has_content>${personShipTo.lastName}</#if> <#if personShipTo.firstName?has_content>${personShipTo.firstName}</#if></b></td>
- </tr>
- </#if>
- <#assign state = shippingPostalAddress.getRelatedOne("StateProvinceGeo", false)!/>
- <#assign country = shippingPostalAddress.getRelatedOne("CountryGeo", false)!/>
- <tr>
- <td><#if shippingPostalAddress.address1?has_content>${shippingPostalAddress.address1}</#if></td>
- </tr>
- <tr>
- <td><#if shippingPostalAddress.city?has_content>${shippingPostalAddress.city},</#if> <#if state?? && state?has_content && state.geoCode?has_content>${state.geoCode}</#if> <#if shippingPostalAddress.postalCode?has_content>${shippingPostalAddress.postalCode}</#if>
- </td>
- </tr>
- <tr>
- <td>
- <input type="hidden" id="shipToSelected" value="Y"/>
- <#if country?? && country?has_content && country.get("geoName", locale)?has_content>${country.get("geoName", locale)}</#if>
- </td>
- </tr>
- <#else>
- <tr>
- <td> </td>
- </tr>
- <tr>
- <td align="center"><b>${uiLabelMap.WebPosNoPartyInformation}</b></td>
- </tr>
- </#if>
- </table>
- </div>
- </div>
- <div id="centerTopBarRight" >
- ${screens.render("component://webpos/widget/SearchScreens.xml#Parties")}
- <div id="billingPanel">
- <div> <br /></div>
- <div>
- <br />
- </div>
- </div>
- <div id="shipMethodPanel" style="display:none">
- <div id="shipMethodFormServerError"></div>
- <div>
- <label for="shipMethod"><b>${uiLabelMap.WebPosShippingMethod}</b></label>
- <div id="shipMethodSelection"></div>
- </div>
- </div>
- </div>
- </div>
- </div>
-</div>
-<script type="text/javascript">
- customerAddressSelected();
-</script>
diff --git a/webpos/template/search/SearchParties.ftl b/webpos/template/search/SearchParties.ftl
deleted file mode 100644
index f62a6df95..000000000
--- a/webpos/template/search/SearchParties.ftl
+++ /dev/null
@@ -1,34 +0,0 @@
-<#--
-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.
--->
-<div>
- <input type="hidden" id="partyIdentificationTypeId" name="partyIdentificationTypeId" value="">
- <label for="searchPartyBy"><b> ${uiLabelMap.WebPosSearchBy}</b></label>
- <select id="searchPartyBy" name="searchPartyBy">
- <option value="lastName" selected>${uiLabelMap.PartyLastName}</option>
- <option value="firstName">${uiLabelMap.PartyFirstName}</option>
- <option value="idValue">${uiLabelMap.PartyPartyIdentification}</option>
- </select>
- <br/>
- <input type="text" id="partyToSearch" name="partyToSearch" size="30" maxlength="100">
- <input type="submit" value="${uiLabelMap.CommonSearch}" id="partySearchConfirm"/>
- <br/>
-</div>
-<script type="text/javascript">
- partyKeyEvents();
-</script>
\ No newline at end of file
diff --git a/webpos/template/search/SearchPartiesResults.ftl b/webpos/template/search/SearchPartiesResults.ftl
deleted file mode 100644
index f1db47d4e..000000000
--- a/webpos/template/search/SearchPartiesResults.ftl
+++ /dev/null
@@ -1,87 +0,0 @@
-<#--
-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.
--->
-<div id="searchPartiesResults" style="display:none">
- <form method="post" action="javascript:void(0);" id="SearchPartiesResultsForm" name="SearchPartiesResultsForm">
- <table>
- <tr>
- <td width="12.5%">
- <label for="searchByPartyLastName"><b> ${uiLabelMap.PartyLastName}</b></label>
- </td>
- <td width="12.5%">
- <input type="text" id="searchByPartyLastName" name="searchByPartyLastName"/>
- </td>
- <td width="12.5%">
- <label for="searchByPartyFirstName"><b> ${uiLabelMap.PartyFirstName}</b></label>
- </td>
- <td width="12.5%">
- <input type="text" id="searchByPartyFirstName" name="searchByPartyFirstName"/>
- </td>
- <td width="20%">
- <label for="billingLocation"><b> ${uiLabelMap.WebPosBillingAddress}</b></label>
- </td>
- <td width="5%">
- <input type="checkbox" id="billingLoc" name="billingLoc"/>
- </td>
- <td width="20%">
- <label for="shippingLocation"><b> ${uiLabelMap.WebPosShippingAddress}</b></label>
- </td>
- <td width="5%">
- <input type="checkbox" id="shippingLoc" name="shippingLoc"/>
- </td>
- </tr>
- <tr>
- <td width="12.5%">
- <label for="searchByPartyIdValue"><b> ${uiLabelMap.PartyPartyIdentification}</b></label>
- </td>
- <td width="12.5%">
- <input type="text" id="searchByPartyIdValue" name="searchByPartyIdValue"/>
- </td>
- <td width="50%" colspan="4" style="text-align:center">
- <input type="submit" value="${uiLabelMap.CommonSearch}" id="searchPartiesResultsSearch"/>
-
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="searchPartiesResultsCancel"/>
- </td>
- <td width="25%" colspan="2"></td>
- </tr>
- </table>
- <table cellspacing="0" cellpadding="2" class="basic-table">
- <thead class="searchPartiesResultsHead">
- <tr class="header-row">
- <td> </td>
- <td><b>${uiLabelMap.PartyPartyId}</b></td>
- <td><b>${uiLabelMap.PartyLastName}</b></td>
- <td><b>${uiLabelMap.PartyFirstName}</b></td>
- <td><b>${uiLabelMap.PartyPartyIdentification}</b></td>
- <td><b>${uiLabelMap.PartyAddressLine1}</b></td>
- <td><b>${uiLabelMap.PartyCity}</b></td>
- <td><b>${uiLabelMap.PartyPostalCode}</b></td>
- <td><b>${uiLabelMap.PartyState}</b></td>
- <td><b>${uiLabelMap.CommonCountry}</b></td>
- <td><b>B/S</b></td>
- </tr>
- </thead>
- <tbody id="searchPartiesResultsList" class="searchPartiesResultsCartBody">
- <tr>
- <td colspan="9">
- </td>
- </tr>
- <tbody>
- </table>
- </form>
-</div>
\ No newline at end of file
diff --git a/webpos/template/search/SearchProducts.ftl b/webpos/template/search/SearchProducts.ftl
deleted file mode 100644
index ba12cc12b..000000000
--- a/webpos/template/search/SearchProducts.ftl
+++ /dev/null
@@ -1,39 +0,0 @@
-<#--
-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.
--->
-<form name="SearchProducts" method="post" action="<@o...@ofbizUrl>">
- <div>
- <input type="hidden" id="quantity" name="quantity" value="1" />
- <input type="hidden" id="add_product_id" name="add_product_id" value="${parameters.add_product_id!}" />
- <input type="hidden" id="goodIdentificationTypeId" name="goodIdentificationTypeId" value="" />
- <label for="searchBy"><b> ${uiLabelMap.WebPosSearchBy}</b></label>
- <select id="searchBy" name="searchBy">
- <option value="productName" selected="selected">${uiLabelMap.ProductProductName}</option>
- <option value="productDescription">${uiLabelMap.ProductProductDescription}</option>
- <option value="idValue">${uiLabelMap.ProductGoodIdentification}</option>
- </select>
- <input type="text" id="productToSearch" name="productToSearch" size="28" maxlength="100"/>
- <div id="products" class="autocomplete" style="display:none"></div>
- <br />
- <input type="submit" value="${uiLabelMap.CommonSearch}" id="productSearchConfirm"/>
- </div>
-</form>
-<br />
-<script type="text/javascript">
- document.SearchProducts.productToSearch.focus();
-</script>
\ No newline at end of file
diff --git a/webpos/template/search/SearchProductsResults.ftl b/webpos/template/search/SearchProductsResults.ftl
deleted file mode 100644
index c78f73e62..000000000
--- a/webpos/template/search/SearchProductsResults.ftl
+++ /dev/null
@@ -1,68 +0,0 @@
-<#--
-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.
--->
-<div id="searchProductsResults" style="display:none">
- <form method="post" action="javascript:void(0);" id="SearchProductsResultsForm" name="SearchProductsResultsForm">
- <table>
- <tr>
- <td width="25%">
- <label for="searchByProductIdValue"><b> ${uiLabelMap.ProductGoodIdentification}</b></label>
- </td>
- <td width="25%">
- <input type="hidden" id="goodIdentificationTypeId" name="goodIdentificationTypeId" value="" />
- <input type="text" id="searchByProductIdValue" name="searchByProductIdValue"/>
- </td>
- <td width="25%">
- <label for="searchByProductName"><b> ${uiLabelMap.ProductProductName}</b></label>
- </td>
- <td width="25%">
- <input type="text" id="searchByProductName" name="searchByProductName"/>
- </td>
- </tr>
- <tr>
- <td width="25%">
- <label for="searchByProductDescription"><b> ${uiLabelMap.ProductProductDescription}</b></label>
- </td>
- <td width="25%">
- <input type="text" id="searchByProductDescription" name="searchByProductDescription"/>
- </td>
- <td width="50%" colspan="2" style="text-align:center">
- <input type="submit" value="${uiLabelMap.CommonSearch}" id="searchProductsResultsSearch"/>
-
- <input type="submit" value="${uiLabelMap.CommonCancel}" id="searchProductsResultsCancel"/>
- </td>
- </tr>
- </table>
- <table cellspacing="0" cellpadding="2" class="basic-table">
- <thead class="searchProductsResultsHead">
- <tr class="header-row">
- <td nowrap> </td>
- <td nowrap><b>${uiLabelMap.ProductProductId}</b></td>
- <td nowrap><b>${uiLabelMap.ProductProductName}</b></td>
- <td nowrap><b>${uiLabelMap.ProductProductDescription}</b></td>
- </tr>
- </thead>
- <tbody id="searchProductsResultsList" class="searchProductsResultsCartBody">
- <tr>
- <td colspan="3">
- </td>
- </tr>
- <tbody>
- </table>
- </form>
-</div>
\ No newline at end of file
diff --git a/webpos/template/search/SearchSalesReps.ftl b/webpos/template/search/SearchSalesReps.ftl
deleted file mode 100644
index 49524841f..000000000
--- a/webpos/template/search/SearchSalesReps.ftl
+++ /dev/null
@@ -1,60 +0,0 @@
-<#--
-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.
--->
-<div>
- <div id="SearchSalesRepsList">
- <#if salesReps?? && salesReps?has_content>
- <table id="salesRepsResults" name="salesRepsResults" cellspacing="0" cellpadding="2" class="basic-table">
- <#assign alt_row = false>
- <#list salesReps as salesRep>
- <#assign salesRepInCart = false>
- <#if cartSalesReps?? && cartSalesReps?has_content>
- <#list cartSalesReps as cartSalesRep>
- <#if cartSalesRep == salesRep.partyId>
- <#assign salesRepInCart = true>
- </#if>
- </#list>
- </#if>
- <#assign person = ""/>
- <#if salesRep.lastName?has_content>
- <#assign person = person + (salesRep.lastName).trim() + " "/>
- </#if>
- <#if salesRep.firstName?has_content>
- <#assign person = person + (salesRep.firstName).trim()/>
- </#if>
- <#assign person = person + " (" + salesRep.partyId + ")"/>
- <tr <#if salesRepInCart>class="pos-cart-choose"<#else><#if alt_row>class="pos-cart-even"<#else>class="pos-cart-odd"</#if></#if>>
- <td>
- <#if salesRepInCart>
- <a href="javascript:removeSalesRep('${salesRep.partyId}');">
- ${person}
- </a>
- <#else>
- <a href="javascript:addSalesRep('${salesRep.partyId}');">
- ${person}
- </a>
- </#if>
- </td>
- </tr>
- <#-- toggle the row color -->
- <#assign alt_row = !alt_row>
- </#list>
- </table>
- </#if>
- </div>
-</div>
\ No newline at end of file
diff --git a/webpos/template/shortcuts/Shortcuts.ftl b/webpos/template/shortcuts/Shortcuts.ftl
deleted file mode 100644
index 5307c5553..000000000
--- a/webpos/template/shortcuts/Shortcuts.ftl
+++ /dev/null
@@ -1,97 +0,0 @@
-<#--
-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.
--->
-<table>
- <tr>
- <td>
- <ol id="posShortcut"></ol>
- </td>
- <td>
- <div id="pleaseWait" style="display:none;"> <b>${uiLabelMap.WebPosPleaseWait}</b></div>
- </td>
- </tr>
-</table>
-<script type="text/javascript">
- function activateHotKeys() {
- $(document).keydown(function(e){
- switch (e.keyCode) {
- case 112:
- productToSearchFocus();
- break;
- case 113:
- partyToSearchFocus();
- break;
- case 114:
- payCash();
- break;
- case 115:
- payCheck();
- break;
- case 116:
- //TODO: To be implemented with OFBIZ-5241
- break;
- case 117:
- payGiftCard();
- break;
- case 118:
- payCreditCard();
- break;
- case 119:
- payFinish();
- break;
- case 120:
- itemQuantityFocus();
- break;
- case 121:
- incrementItemQuantity();
- break;
- case 122:
- decrementItemQuantity();
- break;
- case 123:
- emptyCart();
- break;
- case 38:
- keyUp();
- break;
- case 40:
- keyDown();
- break;
- default: return;
- }
- e.preventDefault();
- return false;
- });
- WebPosHotkeys.on("keydown", "f1", productToSearchFocus, "productToSearchFocus()", "${uiLabelMap.WebPosShortcutF1}");
- WebPosHotkeys.on("keydown", "f2", partyToSearchFocus, "partyToSearchFocus()", "${uiLabelMap.WebPosShortcutF2}");
- WebPosHotkeys.on("keydown", "f3", payCash, "payCash()", "${uiLabelMap.WebPosShortcutF3}");
- WebPosHotkeys.on("keydown", "f4", payCheck, "payCheck()", "${uiLabelMap.WebPosShortcutF4}");
- <!--TODO: To be implemented with OFBIZ-5241-->
- <!--WebPosHotkeys.on("keydown", "f5", payPin, "", "${uiLabelMap.WebPosShortcutF5}");-->
- WebPosHotkeys.on("keydown", "f6", payGiftCard, "payGiftCard()", "${uiLabelMap.WebPosShortcutF6}");
- WebPosHotkeys.on("keydown", "f7", payCreditCard, "payCreditCard()", "${uiLabelMap.WebPosShortcutF7}");
- WebPosHotkeys.on("keydown", "f8", payFinish, "payFinish()", "${uiLabelMap.WebPosShortcutF8}");
- WebPosHotkeys.on("keydown", "f9", itemQuantityFocus, "itemQuantityFocus()", "${uiLabelMap.WebPosShortcutF9}");
- WebPosHotkeys.on("keydown", "f10", incrementItemQuantity, "incrementItemQuantity()", "${uiLabelMap.WebPosShortcutF10}");
- WebPosHotkeys.on("keydown", "f11", decrementItemQuantity, "decrementItemQuantity()", "${uiLabelMap.WebPosShortcutF11}");
- WebPosHotkeys.on("keydown", "f12", emptyCart, "emptyCart()", "${uiLabelMap.WebPosShortcutF12}");
- WebPosHotkeys.on("keydown", "up", keyUp, "keyUp()", "${uiLabelMap.WebPosShortcutKeyUp}");
- WebPosHotkeys.on("keydown", "down", keyDown, "keyDown()", "${uiLabelMap.WebPosShortcutKeyDown}");
- updateHotKeys();
- }
-</script>
\ No newline at end of file
diff --git a/webpos/webapp/webpos/WEB-INF/controller.xml b/webpos/webapp/webpos/WEB-INF/controller.xml
deleted file mode 100644
index a26a7b261..000000000
--- a/webpos/webapp/webpos/WEB-INF/controller.xml
+++ /dev/null
@@ -1,535 +0,0 @@
-<!--
- 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.
--->
-
-<site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://ofbiz.apache.org/Site-Conf" xsi:schemaLocation="http://ofbiz.apache.org/Site-Conf http://ofbiz.apache.org/dtds/site-conf.xsd">
- <description>Web Pos Component Site Configuration File</description>
-
- <errorpage>component://common/webcommon/error/Error.ftl</errorpage>
-
- <handler name="java" type="request" class="org.apache.ofbiz.webapp.event.JavaEventHandler"/>
- <handler name="service" type="request" class="org.apache.ofbiz.webapp.event.ServiceEventHandler"/>
- <handler name="service-multi" type="request" class="org.apache.ofbiz.webapp.event.ServiceMultiEventHandler"/>
- <handler name="simple" type="request" class="org.apache.ofbiz.webapp.event.SimpleEventHandler"/>
- <handler name="groovy" type="request" class="org.apache.ofbiz.webapp.event.GroovyEventHandler"/>
- <handler name="jsp" type="view" class="org.apache.ofbiz.webapp.view.JspViewHandler"/>
- <handler name="screen" type="view" class="org.apache.ofbiz.widget.renderer.macro.MacroScreenViewHandler"/>
- <handler name="ftl" type="view" class="org.apache.ofbiz.webapp.ftl.FreeMarkerViewHandler"/>
-
- <!-- Events run from here for the first hit in a visit -->
- <firstvisit>
- <event name="autoLoginCheck" type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="autoLoginCheck"/>
- <event name="checkTrackingCodeCookies" type="java" path="org.apache.ofbiz.marketing.tracking.TrackingCodeEvents" invoke="checkTrackingCodeCookies"/>
- <event name="setDefaultStoreSettings" type="java" path="org.apache.ofbiz.product.product.ProductEvents" invoke="setDefaultStoreSettings"/>
- </firstvisit>
-
- <!-- Events to run on every request before security (chains exempt) -->
- <preprocessor>
- <!-- This event allows affilate/distributor entry on any page -->
- <event name="checkExternalLoginKey" type="java" path="org.apache.ofbiz.webapp.control.ExternalLoginKeysManager" invoke="checkExternalLoginKey"/>
- <event name="setAssociationId" type="java" path="org.apache.ofbiz.ecommerce.misc.ThirdPartyEvents" invoke="setAssociationId"/>
- <event name="checkTrackingCodeUrlParam" type="java" path="org.apache.ofbiz.marketing.tracking.TrackingCodeEvents" invoke="checkTrackingCodeUrlParam"/>
- <event name="checkPartnerTrackingCodeUrlParam" type="java" path="org.apache.ofbiz.marketing.tracking.TrackingCodeEvents" invoke="checkPartnerTrackingCodeUrlParam"/>
- <event name="keepCartUpdated" type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="keepCartUpdated"/>
- </preprocessor>
-
- <after-login>
- <event name="updateAssociatedDistributor" type="java" path="org.apache.ofbiz.ecommerce.misc.ThirdPartyEvents" invoke="updateAssociatedDistributor"/>
- <event name="keepCartUpdated" type="java" path="org.apache.ofbiz.order.shoppingcart.ShoppingCartEvents" invoke="keepCartUpdated"/>
- <!-- after login, get everything from the auto-save list -->
- <event name="restoreAutoSaveList" type="java" path="org.apache.ofbiz.order.shoppinglist.ShoppingListEvents" invoke="restoreAutoSaveList"/>
- <!-- after login and restoring from the auto-save list, save everything to the auto-save list to handle anything that may have already been in the cart before login -->
- <event name="saveCartToAutoSaveList" type="java" path="org.apache.ofbiz.order.shoppinglist.ShoppingListEvents" invoke="saveCartToAutoSaveList"/>
- </after-login>
-
- <!-- Security Mappings -->
- <request-map uri="checkLogin">
- <description>Verify a user is logged in.</description>
- <security https="true" auth="false"/>
- <event type="java" path="org.apache.ofbiz.securityext.login.LoginEvents" invoke="storeCheckLogin"/>
- <response name="success" type="view" value="main"/>
- <response name="requirePasswordChange" type="view" value="requirePasswordChange"/>
- <response name="error" type="view" value="login"/>
- </request-map>
-
- <request-map uri="login">
- <security https="true" auth="false"/>
- <event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="posLogin"/>
- <response name="success" type="request" value="main"/>
- <response name="requirePasswordChange" type="view" value="RequirePasswordChange"/>
- <response name="error" type="view" value="Login"/>
- </request-map>
-
- <request-map uri="logout">
- <security https="true" auth="true"/>
- <event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="logout"/>
- <response name="success" type="request-redirect-noparam" value="main"/>
- <response name="error" type="request-redirect-noparam" value="main"/>
- </request-map>
-
- <request-map uri="autoLogout">
- <security https="true" auth="false"/>
- <event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="autoLoginRemove"/>
- <response name="success" type="request-redirect-noparam" value="main"/>
- <response name="error" type="request-redirect-noparam" value="main"/>
- </request-map>
-
- <request-map uri="requirePasswordChange">
- <security https="true" auth="false"/>
- <response name="success" type="view" value="RequirePasswordChange"/>
- </request-map>
- <!-- End of Security Mappings -->
-
- <!-- Common json reponse events, chain these after events to send json reponses -->
- <!-- Standard json response, For security reason (OFBIZ-5409) tries to keep only the initially called service attributes -->
- <request-map uri="json">
- <security https="false" auth="false" direct-request="false"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="jsonResponseFromRequestAttributes"/>
- <response name="success" type="none"/>
- </request-map>
-
- <request-map uri="getJSONuiLabelArray">
- <security https="false" auth="false"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="getJSONuiLabelArray"/>
- <response name="success" type="none" />
- <response name="error" type="none" />
- </request-map>
-
- <!-- Change theme-->
- <request-map uri="selectTheme">
- <security https="true" auth="true"/>
- <event type="service" invoke="setUserPreference"/>
- <response name="success" type="request" value="setSessionTheme"/>
- <response name="error" type="request" value="main"/>
- </request-map>
- <request-map uri="setSessionTheme">
- <security https="true" auth="true"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionTheme"/>
- <response name="success" type="view-last" value="main"/>
- <response name="error" type="request" value="main"/>
- </request-map>
-
- <!-- Request Mappings -->
- <request-map uri="view">
- <security https="false" auth="false"/>
- <response name="success" type="view" value="main"/>
- </request-map>
-
- <request-map uri="authview">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="main"/>
- </request-map>
-
- <request-map uri="main">
- <security https="false" auth="true"/>
- <event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="existsWebPosSession"/>
- <response name="success" type="view" value="main"/>
- <response name="error" type="view" value="Login"/>
- </request-map>
-
- <request-map uri="Login">
- <security https="false" auth="false"/>
- <event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="posLogin"/>
- <response name="success" type="request" value="main"/>
- <response name="requirePasswordChange" type="view" value="RequirePasswordChange"/>
- <response name="error" type="view" value="Login"/>
- </request-map>
-
- <request-map uri="Logout">
- <security https="false" auth="true"/>
- <event type="java" path="org.apache.ofbiz.webapp.control.LoginWorker" invoke="logout"/>
- <response name="success" type="request-redirect-noparam" value="main"/>
- <response name="error" type="request-redirect-noparam" value="main"/>
- </request-map>
-
- <request-map uri="ListLocales">
- <security https="true" auth="false"/>
- <response name="success" type="view" value="ListLocales" save-last-view="true"/>
- </request-map>
-
- <request-map uri="setSessionLocale">
- <security https="false" auth="false"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
- <response name="success" type="view" value="main"/>
- <response name="error" type="view" value="main"/>
- </request-map>
-
- <request-map uri="ListTimezones">
- <security https="true" auth="true"/>
- <response name="success" type="view" value="ListTimezones" save-last-view="true"/>
- </request-map>
-
- <request-map uri="setSessionTimeZone">
- <security https="true" auth="false"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="setSessionTimeZone"/>
- <response name="success" type="view-last" value="main"/>
- <response name="error" type="request" value="main"/>
- </request-map>
-
- <request-map uri="showHelp">
- <security https="true" auth="true"/>
- <response name="success" type="view" value="showHelp"/>
- </request-map>
-
- <!-- User preference mapping -->
- <request-map uri="setUserPreference">
- <security https="true" auth="true"/>
- <event type="service" invoke="setUserPreference"/>
- <response name="success" type="view-last" value="main"/>
- <response name="error" type="request" value="main"/>
- </request-map>
-
- <request-map uri="ajaxSetUserPreference">
- <security https="true" auth="true"/>
- <event type="service" invoke="setUserPreference"/>
- <response name="success" type="none"/>
- </request-map>
-
- <request-map uri="help">
- <security https="true" auth="true"/>
- <response name="success" type="view" value="help"/>
- </request-map>
-
- <request-map uri="ListVisualThemes">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="ListVisualThemes"/>
- </request-map>
-
- <request-map uri="Category">
- <security https="false" auth="false"/>
- <response name="success" type="view" value="Category"/>
- </request-map>
-
- <request-map uri="Manager">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="Manager"/>
- </request-map>
-
- <request-map uri="Payment">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="Payment"/>
- </request-map>
-
- <request-map uri="CustomerAddress">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="CustomerAddress"/>
- </request-map>
-
- <request-map uri="ShowCart">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="ShowCart"/>
- </request-map>
-
- <request-map uri="ShowCartItemSelected">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="ShowCartItemSelected"/>
- </request-map>
-
- <request-map uri="SearchSalesRepsList">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="SearchSalesRepsList"/>
- </request-map>
-
- <request-map uri="SideDeepCategory">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="SideDeepCategory"/>
- </request-map>
-
- <request-map uri="CategoryDetail">
- <security https="false" auth="true"/>
- <response name="success" type="view" value="CategoryDetail"/>
- </request-map>
-
- <request-map uri="Shutdown">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="shutdown"/>
- <response name="success" type="request" value="Login"/>
- <response name="error" type="request" value="main"/>
- </request-map>
-
- <!-- Ajax requests -->
- <request-map uri="Error">
- <security https="false" auth="false"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="EmptyCart">
- <security https="false" auth="false"/>
- <event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="emptyCartAndClearAutoSaveList"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="GetProductType">
- <security https="false" auth="true"/>
- <event type="java" path="org.apache.ofbiz.webpos.WebPosEvents" invoke="getProductType"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="GetProductAndPrice">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getProductAndPrice"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="GetFormattedAmount">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getFormattedAmount"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="GetFormattedProductFeaturePrice">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getFormattedProductFeaturePrice"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="AddToCart">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="addCartItem"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="SetPartyToCart">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="setPartyToCart"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="GetShipMethods">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="getShipMethods"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="SetShipMethod">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="setShipMethod"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="UpdateCartItem">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="updateCartItem"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="DeleteCartItem">
- <security https="false" auth="false"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="deleteCartItem"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="FindProducts">
- <security https="false" auth="true"/>
- <event type="service" invoke="findProducts"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="FindParties">
- <security https="false" auth="true"/>
- <event type="service" invoke="findParties"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="RemoveSalesRep">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="removeSalesRep"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="AddSalesRep">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/CartEvents.xml" invoke="addSalesRep"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PayCash">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCash"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PayCheck">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCheck"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PayGiftCard">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payGiftCard"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PayCreditCard">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payCreditCard"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="OpenTerminal">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="openTerminal"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="CloseTerminal">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="closeTerminal"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PromoCode">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PromoEvents.xml" invoke="addPromoCode"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="VoidOrder">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="voidOrder"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="ModifyPrice">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="modifyPrice"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PaidOutAndIn">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/ManagerEvents.xml" invoke="paidOutAndIn"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="PayFinish">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="payFinish"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="ClearPayment">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/PaymentEvents.xml" invoke="clearPayment"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="CreateUpdateAddress">
- <security https="false" auth="true"/>
- <event type="simple" path="component://webpos/minilang/CustomerEvents.xml" invoke="createUpdateAddress"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="EditAddress">
- <security https="false" auth="true"/>
- <event type="groovy" path="component://webpos/src/main/groovy/org/apache/ofbiz/webpos/customer/EditAddress.groovy"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
- <request-map uri="ForgotPassword_step1">
- <security https="true" auth="false"/>
- <response name="success" type="view" value="ForgotPassword_step1"/>
- </request-map>
- <request-map uri="ForgotPassword_step2">
- <security auth="false" https="true"></security>
- <response name="success" type="view" value="ForgotPassword_step2" />
- </request-map>
- <request-map uri="ForgotPassword_step3">
- <security https="true" auth="false"/>
- <event type="java" path="org.apache.ofbiz.securityext.login.LoginEvents" invoke="forgotPassword"/>
- <response name="success" type="view" value="Login"/>
- <response name="error" type="view" value="ForgotPassword_step2"/>
- </request-map>
- <!-- end of Ajax requests -->
-
- <!-- Set local from user's browser -->
- <request-map uri="SetTimeZoneFromBrowser">
- <security https="false" auth="false"/>
- <event type="service" invoke="SetTimeZoneFromBrowser"/>
- <response name="success" type="request" value="json"/>
- <response name="error" type="request" value="json"/>
- </request-map>
-
- <request-map uri="getJs" method="get" track-serverhit="false">
- <security https="false" auth="false"/>
- <response name="success" type="request" value="js"/>
- <response name="error" type="request" value="js"/>
- </request-map>
- <request-map uri="js">
- <security https="false" auth="false" direct-request="false"/>
- <event type="java" path="org.apache.ofbiz.common.CommonEvents" invoke="jsResponseFromRequest"/>
- <response name="success" type="none"/>
- </request-map>
-
- <!-- View Mappings -->
- <view-map name="error" type="ftl" page="component://common/webcommon/error/Error.ftl" auth="false"/>
- <view-map name="Error" type="screen" page="component://webpos/widget/WebPosScreens.xml#Main" auth="false"/>
- <view-map name="main" type="screen" page="component://webpos/widget/WebPosScreens.xml#Main" auth="false"/>
- <view-map name="login" type="screen" page="component://webpos/widget/CommonScreens.xml#Login" auth="false"/>
- <view-map name="Login" type="screen" page="component://webpos/widget/CommonScreens.xml#Login" auth="false"/>
- <view-map name="RequirePasswordChange" type="screen" page="component://webpos/widget/CommonScreens.xml#RequirePasswordChange" auth="false"/>
- <view-map name="ListLocales" type="screen" page="component://common/widget/LookupScreens.xml#ListLocales" auth="false"/>
- <view-map name="ListTimezones" type="screen" page="component://common/widget/LookupScreens.xml#ListTimezones"/>
- <view-map name="ListVisualThemes" type="screen" page="component://common/widget/LookupScreens.xml#ListVisualThemes"/>
- <view-map name="help" type="screen" page="component://common/widget/CommonScreens.xml#help"/>
- <view-map name="showHelp" type="screen" page="component://common/widget/HelpScreens.xml#ShowHelp"/>
-
- <view-map name="Manager" type="screen" page="component://webpos/widget/WebPosScreens.xml#Manager"/>
- <view-map name="Payment" type="screen" page="component://webpos/widget/WebPosScreens.xml#Payment"/>
- <view-map name="ShowCart" type="screen" page="component://webpos/widget/CartScreens.xml#ShowCart"/>
- <view-map name="ShowCartItemSelected" type="screen" page="component://webpos/widget/CartScreens.xml#ShowCartItemSelected"/>
- <view-map name="CustomerAddress" type="screen" page="component://webpos/widget/SearchScreens.xml#CustomerAddress"/>
- <view-map name="EditAddress" type="screen" page="component://webpos/widget/CustomerScreens.xml#EditAddress"/>
- <view-map name="SearchSalesRepsList" type="screen" page="component://webpos/widget/SearchScreens.xml#SearchSalesRepsList"/>
- <view-map name="SideDeepCategory" type="screen" page="component://webpos/widget/CatalogScreens.xml#SideDeepCategory"/>
- <view-map name="CategoryDetail" type="screen" page="component://webpos/widget/CatalogScreens.xml#CategoryDetail"/>
- <view-map name="ForgotPassword_step1" type="screen" page="component://webpos/widget/CommonScreens.xml#ForgotPassword_step1" auth="false"/>
- <view-map name="ForgotPassword_step2" type="screen" page="component://webpos/widget/CommonScreens.xml#ForgotPassword_step2" auth="false"/>
- <!-- End of View Mappings -->
-</site-conf>
diff --git a/webpos/webapp/webpos/WEB-INF/web.xml b/webpos/webapp/webpos/WEB-INF/web.xml
deleted file mode 100644
index 6878882fb..000000000
--- a/webpos/webapp/webpos/WEB-INF/web.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?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.
--->
-
-<web-app version="4.0" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
- <display-name>Apache OFBiz - Web Pos</display-name>
- <description>Web Pos component of the Apache OFBiz Project</description>
-
- <context-param>
- <description>A unique ID used to look up the WebSite entity</description>
- <param-name>webSiteId</param-name>
- <param-value>WebStorePos</param-value>
- </context-param>
- <context-param>
- <description>A unique name used to identify/recognize the local dispatcher for the Service Engine</description>
- <param-name>localDispatcherName</param-name>
- <param-value>webpos</param-value>
- </context-param>
- <context-param>
- <description>The Name of the Entity Delegator to use, defined in entityengine.xml</description>
- <param-name>entityDelegatorName</param-name>
- <param-value>default</param-value>
- </context-param>
- <context-param>
- <description>The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.</description>
- <param-name>mainDecoratorLocation</param-name>
- <param-value>component://webpos/widget/CommonScreens.xml</param-value>
- </context-param>
- <context-param>
- <description>The location of the menus file to be used in this webapp; referred to as a context variable in screen def XML files.</description>
- <param-name>mainMenuLocation</param-name>
- <param-value>component://webpos/widget/WebPosMenus.xml</param-value>
- </context-param>
-
- <filter>
- <display-name>ControlFilter</display-name>
- <filter-name>ControlFilter</filter-name>
- <filter-class>org.apache.ofbiz.webapp.control.ControlFilter</filter-class>
- <init-param>
- <param-name>allowedPaths</param-name>
- <param-value>/error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images</param-value>
- </init-param>
- <init-param>
- <param-name>redirectPath</param-name>
- <param-value>/control/main</param-value>
- </init-param>
- </filter>
- <filter>
- <display-name>ContextFilter</display-name>
- <filter-name>ContextFilter</filter-name>
- <filter-class>org.apache.ofbiz.webapp.control.ContextFilter</filter-class>
- </filter>
- <filter>
- <display-name>SameSiteFilter</display-name>
- <filter-name>SameSiteFilter</filter-name>
- <filter-class>org.apache.ofbiz.webapp.control.SameSiteFilter</filter-class>
- </filter>
- <filter-mapping>
- <filter-name>ControlFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>ContextFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
- <filter-mapping>
- <filter-name>SameSiteFilter</filter-name>
- <url-pattern>/*</url-pattern>
- </filter-mapping>
-
- <listener><listener-class>org.apache.ofbiz.webapp.control.ControlEventListener</listener-class></listener>
- <!-- NOTE: not all app servers support mounting implementations of the HttpSessionActivationListener interface -->
- <!-- <listener><listener-class>org.apache.ofbiz.webapp.control.ControlActivationEventListener</listener-class></listener> -->
-
- <!-- this listener will save any abandoned cart info -->
- <listener><listener-class>org.apache.ofbiz.order.shoppingcart.CartEventListener</listener-class></listener>
- <!-- this listener will clean up info -->
- <listener><listener-class>org.apache.ofbiz.webapp.control.LoginEventListener</listener-class></listener>
-
- <servlet>
- <description>Main Control Servlet</description>
- <display-name>ControlServlet</display-name>
- <servlet-name>ControlServlet</servlet-name>
- <servlet-class>org.apache.ofbiz.webapp.control.ControlServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet>
- <description>Catalog (Category/Product) URL Servlet</description>
- <display-name>CatalogUrlServlet</display-name>
- <servlet-name>CatalogUrlServlet</servlet-name>
- <servlet-class>org.apache.ofbiz.product.category.CatalogUrlServlet</servlet-class>
- <load-on-startup>1</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>ControlServlet</servlet-name>
- <url-pattern>/control/*</url-pattern>
- </servlet-mapping>
- <servlet-mapping>
- <servlet-name>CatalogUrlServlet</servlet-name>
- <url-pattern>/products/*</url-pattern>
- </servlet-mapping>
-
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- <welcome-file>index.html</welcome-file>
- <welcome-file>index.htm</welcome-file>
- </welcome-file-list>
-</web-app>
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/CategoryDetail.js b/webpos/webapp/webpos/images/js/CategoryDetail.js
deleted file mode 100644
index 0a2af01e3..000000000
--- a/webpos/webapp/webpos/images/js/CategoryDetail.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/*
-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.
-*/
-function showSelectedButton() {
- jQuery('li.notSelectedButton').each(function(idx) {
- var id = jQuery(this).attr('id');
- if (id != '') {
- id = '#' + id;
- jQuery(id).on('mouseover', function(event) {
- jQuery(id).addClass("selectedButton");
- jQuery(id).removeClass("notSelectedButton");
- });
- jQuery(id).on('mouseout', function(event) {
- jQuery(id).addClass("notSelectedButton");
- jQuery(id).removeClass("selectedButton");
- });
- }
- });
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/ChooseVariant.js b/webpos/webapp/webpos/images/js/ChooseVariant.js
deleted file mode 100644
index 694a37a33..000000000
--- a/webpos/webapp/webpos/images/js/ChooseVariant.js
+++ /dev/null
@@ -1,295 +0,0 @@
-/*
-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.
-*/
-var variantData = null;
-
-jQuery(document).ready(function() {
- jQuery('#variantQuantity').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- variantConfirmed();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#chooseVariantConfirm').on('click', function(event) {
- variantConfirmed();
- return false;
- });
-
- jQuery('#chooseVariantCancel').on('click', function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function variantConfirmed() {
- pleaseWait('Y');
- if (jQuery('#variant').val() == 'Y') {
- var param = 'add_product_id=' + jQuery('#variantProductId').val() + '&quantity=' + jQuery('#variantQuantity').val() +
- '&add_amount=' + jQuery('#amount').val();
- jQuery.ajax({url: 'AddToCart',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfVariantAddItem(data);
- },
- error: function(data) {
- getResultOfVariantAddItem(data);
- }
- });
- } else {
- jQuery.ajax({url: 'AddToCart',
- data: jQuery('#ChooseVariantForm').serialize(),
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfVariantAddItem(data);
- },
- error: function(data) {
- getResultOfVariantAddItem(data);
- }
- });
- }
- pleaseWait('N');
-}
-
-function getResultOfVariantAddItem(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
-
-function chooseVariant(cleanErrors, data) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#chooseVariantFormServerError').html("");
- jQuery('#variantQuantity').val("1");
- }
- variantData = data;
-
- var requireAmount = data.product.requireAmount;
- if (requireAmount == null) {
- requireAmount = "N";
- }
- if (requireAmount == "Y") {
- jQuery('#addAmount').show();
- } else {
- jQuery('#addAmount').hide();
- }
-
- var virtualVariantMethodEnum = data.product.virtualVariantMethodEnum;
- if (virtualVariantMethodEnum == null) {
- virtualVariantMethodEnum = "VV_VARIANTTREE";
- }
- if (virtualVariantMethodEnum == "VV_VARIANTTREE") {
- selectVariant(variantData, 'Y');
- }
- if (virtualVariantMethodEnum == "VV_FEATURETREE") {
- selectFeature(variantData, 'Y', data.product.productId);
- }
-}
-
-function selectVariant(data, firstTime) {
- var variantTree = data.variantTree;
- var variantTreeSize = data.variantTreeSize;
- var featureOrder = data.featureOrder;
- var featureTypes = data.featureTypes;
- var variantSampleList = data.variantSampleList;
- var selectList = "";
- var featureValue = "";
- if (variantTree != undefined && variantTreeSize > 0) {
- if (featureOrder != undefined && featureOrder.length > 0) {
- if (variantSampleList != undefined && variantSampleList.length > 0) {
- if (featureTypes != undefined) {
- var idx = 0;
- var previousFeatureValue = "";
- jQuery.each(featureOrder, function(i, actualFeature) {
- var feature = featureTypes[actualFeature];
- if (idx == 0) {
- selectList = selectList + feature + " ";
- selectList = selectList + "<select id=\"FT" + feature + "\" name=\"FT" + feature + "\">";
- for (i = 0; i < variantSampleList.length; i++) {
- selectList = selectList + "<option"
- if (firstTime == 'N') {
- var selectedFeatureValue = "#FT" + feature;
- featureValue = jQuery(selectedFeatureValue).val();
- if (featureValue == variantSampleList[i]) {
- selectList = selectList + " selected";
- }
- } else {
- featureValue = variantSampleList[0];
- }
- selectList = selectList + ">" + variantSampleList[i] + "</option>";
- }
- selectList = selectList + "</select><br/>";
- } else {
- var features = variantTree[previousFeatureValue];
- selectList = selectList + feature + " ";
- selectList = selectList + "<select id=\"FT" + feature + "\" name=\"FT" + feature + "\">";
- for (var key in features) {
- selectList = selectList + "<option"
- if (firstTime == 'N') {
- var selectedFeatureValue = "#FT" + feature;
- var featureValue = jQuery(selectedFeatureValue).val();
- if (featureValue == key) {
- selectList = selectList + " selected";
- }
- }
- selectList = selectList + ">" + key + "</option>";
- }
- selectList = selectList + "</select><br/>";
- }
- idx++;
- previousFeatureValue = featureValue;
- });
- jQuery('#features').html(selectList);
- var idx = 0;
- var features = variantTree;
- jQuery.each(featureOrder, function(i, actualFeature) {
- var feature = featureTypes[actualFeature];
- featureValue = "FT" + feature;
- jQuery('#' + featureValue).on('change', function(event) {
- selectVariant(variantData, 'N');
- return false;
- });
- var featValue = jQuery('#' + featureValue).val();
- idx++;
- for (var key in features) {
- if (key == featValue) {
- if (idx == featureOrder.length) {
- jQuery('#variantProductId').val(features[key]);
- var param = 'productId=' + jQuery('#variantProductId').val();
- jQuery.ajax({url: 'GetProductAndPrice',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfGetProductAndPrice(data);
- },
- error: function(data) {
- getResultOfGetProductAndPrice(data);
- }
- });
- } else {
- features = features[key];
- }
- }
- }
- });
- }
- }
- }
- }
- jQuery('#variant').val('Y');
- jQuery('#features').show();
- jQuery('#chooseVariant').show();
- jQuery('#variantQuantity').focus();
-}
-
-function selectFeature(data, firstTime, productId) {
- var featureLists = data.featureLists;
- if (featureLists != undefined && featureLists.length > 0) {
- var selectList = "";
- for (i = 0; i < featureLists.length; i++) {
- featureList = featureLists[i];
- for (j = 0; j < featureList.length; j++) {
- var feature = featureList[j];
- if (j == 0) {
- selectList = selectList + feature.description + " ";
- selectList = selectList + "<select id=\"FT" + feature.productFeatureTypeId + "\" name=\"FT" + feature.productFeatureTypeId + "\">";
- } else {
- selectList = selectList + "<option value='";
- selectList = selectList + feature.productFeatureId;
- selectList = selectList + "'>";
- selectList = selectList + feature.description;
- if (feature.price != null) {
- var amount = getFormattedProductFeaturePrice(feature.productFeatureId, "DEFAULT_PRICE", feature.currencyUomId);
- selectList = selectList + " (+ " + amount + ") ";
- }
- selectList = selectList + "</option>";
- }
- }
- selectList = selectList + "</select><br/>";
- }
- jQuery('#variantProductId').val(productId);
- jQuery('#features').html(selectList);
- }
- jQuery('#variant').val('N');
- jQuery('#features').show();
- jQuery('#chooseVariant').show();
- jQuery('#variantQuantity').focus();
-}
-
-function getResultOfGetProductAndPrice(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#chooseVariantFormServerError').update(serverError);
- chooseVariant('N', data);
- } else {
- clearErrorMessages();
- var product = data.product;
- var price = data.price;
- var currencyUomId = data.currencyUomId;
- if (product.productName != null) {
- jQuery('#variantProductDescription').val(product.productName);
- } else if (product.productDescription != null) {
- jQuery('#variantProductDescription').val(product.productDescription);
- } else if (product.longDescription != null) {
- jQuery('#variantProductDescription').val(product.longDescription);
- }
- var formattedPrice = getFormattedAmount(price, currencyUomId);
- jQuery('#variantProductPrice').val(formattedPrice);
- }
-}
-
-function getFormattedProductFeaturePrice(productFeatureIdIn, productPriceTypeIdIn, currencyUomIdIn) {
- var formattedAmount = "";
- var param = 'productFeatureId=' + productFeatureIdIn + '&productPriceTypeId=' + productPriceTypeIdIn + '¤cyUomId=' + currencyUomIdIn;
- jQuery.ajax({url: 'GetFormattedProductFeaturePrice',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- formattedAmount = getResultOfGetFormattedProductFeaturePrice(data);
- },
- error: function(data) {
- formattedAmount = getResultOfGetFormattedProductFeaturePrice(data);
- }
- });
- return formattedAmount;
-}
-
-function getResultOfGetFormattedProductFeaturePrice(data) {
- return data.formattedFeaturePrice;
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/CloseTerminal.js b/webpos/webapp/webpos/images/js/CloseTerminal.js
deleted file mode 100644
index 1c3b967ed..000000000
--- a/webpos/webapp/webpos/images/js/CloseTerminal.js
+++ /dev/null
@@ -1,137 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#endingDrawerCashAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- closeTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#endingDrawerCheckAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- closeTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#endingDrawerCcAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- closeTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#endingDrawerGcAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- closeTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#endingDrawerOtherAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- closeTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#closeTerminalConfirm').on('click', function(event) {
- closeTerminalConfirm();
- return false;
- });
-
- jQuery('#closeTerminalCancel').on('click', function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function closeTerminalConfirm() {
- pleaseWait('Y');
- var param = 'endingDrawerCashAmount=' + jQuery('#endingDrawerCashAmount').val() + '&endingDrawerCheckAmount=' + jQuery('#endingDrawerCheckAmount').val() +
- '&endingDrawerCcAmount=' + jQuery('#endingDrawerCcAmount').val() + '&endingDrawerGcAmount=' + jQuery('#endingDrawerGcAmount').val() +
- '&endingDrawerOtherAmount=' + jQuery('#endingDrawerOtherAmount').val();
- jQuery.ajax({url: 'CloseTerminal',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfCloseTerminal(data);
- },
- error: function(data) {
- getResultOfCloseTerminal(data);
- }
- });
- pleaseWait('N');
-}
-
-function closeTerminal(cleanErrors) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#closeTerminalFormServerError').html("");
- jQuery('#endingDrawerCashAmount').val("");
- jQuery('#endingDrawerCheckAmount').val("");
- jQuery('#endingDrawerCcAmount').val("");
- jQuery('#endingDrawerGcAmount').val("");
- jQuery('#endingDrawerOtherAmount').val("");
- }
- jQuery('#closeTerminal').show();
- jQuery('#endingDrawerCashAmount').focus();
-}
-
-function getResultOfCloseTerminal(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#closeTerminalFormServerError').html(serverError);
- closeTerminal('N');
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/Common.js b/webpos/webapp/webpos/images/js/Common.js
deleted file mode 100644
index 51e845e15..000000000
--- a/webpos/webapp/webpos/images/js/Common.js
+++ /dev/null
@@ -1,221 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- activateHotKeys();
-});
-
-function updateCart() {
- jQuery('#CartList').load('ShowCart');
-}
-
-function updateCustomerAddress() {
- jQuery('#CustomerAddressList').load('CustomerAddress');
-}
-
-function updateCartItemSelected(lineIndex, focusOnQnt) {
- if (lineIndex == null) {
- lineIndex = 0;
- }
- jQuery('#CartItemSelected').load('ShowCartItemSelected', {cartLineIndex:lineIndex, focusOnQuantity:focusOnQnt});
-}
-
-function addItem(product_Id, qnt, updCart) {
- pleaseWait('Y');
- var param = 'productId=' + product_Id;
- jQuery.ajax({url: 'GetProductType',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfCheckProductType(data, product_Id, qnt, updCart);
- },
- error: function(data) {
- getResultOfCheckProductType(data, product_Id, qnt, updCart);
- }
- });
- pleaseWait('N');
-}
-
-function getResultOfCheckProductType(data, productId, qnt, updCart) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- var isVirtual = data.product.isVirtual;
- if (isVirtual == null) {
- isVirtual = "N";
- }
- if (isVirtual == "N") {
- var param = 'add_product_id=' + productId + "&quantity=" + qnt;
- jQuery.ajax({url: 'AddToCart',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfAddItem(data, updCart);
- },
- error: function(data) {
- getResultOfAddItem(data, updCart);
- }
- });
- } else {
- chooseVariant('Y', data);
- }
- }
-}
-
-function getResultOfAddItem(data, updCart) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- if (updCart == "Y") {
- jQuery('#errors').fadeOut('slow');
- updateCart();
- if (data.itemId != undefined) {
- updateCartItemSelected(data.itemId, 'N');
- }
- jQuery('#productToSearch').val('');
- jQuery('#productToSearch').focus();
- }
- }
-}
-
-// Check server side error
-function getServerError(data) {
- var serverErrorHash = [];
- var serverError = "";
- if (data._ERROR_MESSAGE_LIST_ != undefined) {
- serverErrorHash = data._ERROR_MESSAGE_LIST_;
- jQuery.each(serverErrorHash, function(i, error) {
- if (error != undefined) {
- if (error.message != undefined) {
- serverError += error.message;
- } else {
- serverError += error;
- }
- }
- });
- }
- if (data._ERROR_MESSAGE_ != undefined) {
- serverError = data._ERROR_MESSAGE_;
- }
- return serverError;
-}
-
-function hideOverlayDiv() {
- jQuery('#payCash').hide();
- jQuery('#payCheck').hide();
- jQuery('#payGiftCard').hide();
- jQuery('#payCreditCard').hide();
- jQuery('#openTerminal').hide();
- jQuery('#closeTerminal').hide();
- jQuery('#paidOutAndIn').hide();
- jQuery('#promo').hide();
- jQuery('#voidOrder').hide();
- jQuery('#chooseVariant').hide();
- jQuery('#searchProductsResults').hide();
- jQuery('#searchPartiesResults').hide();
- jQuery('#editAddress').hide();
- pleaseWait('N');
-}
-
-function pleaseWait(wait) {
- if (wait == "Y") {
- jQuery('#pleaseWait').show();
- }
- else {
- jQuery('#pleaseWait').hide();
- }
-}
-
-function getFormattedAmount(amountStr, currencyStr) {
- var formattedAmount = "";
- var param = 'amount=' + amountStr + "¤cyId=" + currencyStr;
- jQuery.ajax({url: 'GetFormattedAmount',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- formattedAmount = getResultOfGetFormattedAmount(data);
- },
- error: function(data) {
- formattedAmount = getResultOfGetFormattedAmount(data);
- }
- });
- return formattedAmount;
-}
-
-function getResultOfGetFormattedAmount(data) {
- return data.formattedAmount;
-}
-
-function emptyCart() {
- pleaseWait('Y');
- jQuery.ajax({url: 'EmptyCart',
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfEmptyCart(data);
- },
- error: function(data) {
- getResultOfEmptyCart(data);
- }
- });
- pleaseWait('N');
- return false;
-}
-
-function getResultOfEmptyCart(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- jQuery('#errors').fadeOut('slow');
- updateCart();
- updateCartItemSelected(null, 'N');
- updateCustomerAddress();
- hideOverlayDiv();
- clearSearchResults();
- }
- productToSearchFocus();
-}
-
-function clearSearchResults() {
- jQuery('#productToSearch').val( '');
- jQuery('#partyToSearch').val('');
-}
-
-function checkNull(fieldToCheck) {
- if (fieldToCheck == null) {
- return "";
- } else {
- return fieldToCheck;
- }
-}
-
-function clearErrorMessages() {
- jQuery('#errors').fadeOut('slow');
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/EditAddress.js b/webpos/webapp/webpos/images/js/EditAddress.js
deleted file mode 100644
index 4ca9ef0a0..000000000
--- a/webpos/webapp/webpos/images/js/EditAddress.js
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
-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.
-*/
-var uiLabelJsonObjects = null;
-jQuery(document).ready(function() {
- jQuery('#editAddressCreateUpdate').on('click', function(event) {
- pleaseWait('Y');
- var param = 'partyId=' + jQuery('#partyId').val() + '&firstName=' + jQuery('#personFirstName').val() + '&lastName=' + jQuery('#personLastName').val() +
- '&contactMechId=' + jQuery('#contactMechId').val() + '&contactMechPurposeTypeId=' + jQuery('#contactMechPurposeTypeId').val() +
- '&address1=' + jQuery('#personAddress1').val() + '&address2=' + jQuery('#personAddress2').val() +
- '&countryProvinceGeo=' + jQuery('#countryProvinceGeo').val() + '&stateProvinceGeo=' + jQuery('#stateProvinceGeo').val() +
- '&city=' + jQuery('#personCity').val() + '&postalCode=' + jQuery('#personPostalCode').val();
- jQuery.ajax({url: 'CreateUpdateAddress',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfCreateUpdateAddress(data);
- },
- error: function(data) {
- getResultOfCreateUpdateAddress(data);
- }
- });
- productToSearchFocus();
- pleaseWait('N');
- partySearchAgain();
- return false;
- });
-
- jQuery('#editAddressCancel').on('click', function(event) {
- pleaseWait('Y');
- productToSearchFocus();
- pleaseWait('N');
- jQuery('#searchPartiesResults').show();
- return false;
- });
-
- var labelObject = {
- "CommonUiLabels" : ["CommonCreate", "CommonUpdate"],
- };
-
- getJSONuiLabels(labelObject, function(result){
- uiLabelJsonObjects = result.responseJSON;
- });
-});
-
-function getResultOfCreateUpdateAddress(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#editAddressFormServerError').html(serverError);
- } else {
- productToSearchFocus();
- }
-}
-
-function editAddress(partyIdIn, contactMechIdIn, contactMechPurposeTypeIdIn) {
- var param = 'partyId=' + partyIdIn + '&contactMechId=' + contactMechIdIn + '&contactMechPurposeTypeId=' + contactMechPurposeTypeIdIn;
- jQuery.ajax({url: 'EditAddress',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfEditAddress(data);
- }
- });
- jQuery('#editAddress').show();
- jQuery('#personLastName').focus();
-}
-
-function getResultOfEditAddress(data) {
- jQuery('#partyId').val(data.partyId);
- jQuery('#contactMechId').val(data.contactMechId);
- jQuery('#contactMechPurposeTypeId').val(data.contactMechPurposeTypeId);
- jQuery('#personLastName').val(data.lastName);
- jQuery('#personFirstName').val(data.firstName);
- jQuery('#personAddress1').val(data.address1);
- jQuery('#personAddress2').val(data.address2);
- jQuery('#countryProvinceGeo').val(data.countryGeoId);
- jQuery('#stateProvinceGeo').val(data.stateProvinceGeoId);
- jQuery('#personCity').val(data.city);
- jQuery('#personPostalCode').val(data.postalCode);
- if (data.partyId != "") {
- jQuery('#editAddressCreateUpdate').val(uiLabelJsonObjects.CommonUiLabels[1]);
- } else {
- jQuery('#editAddressCreateUpdate').val(uiLabelJsonObjects.CommonUiLabels[0]);
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/OpenTerminal.js b/webpos/webapp/webpos/images/js/OpenTerminal.js
deleted file mode 100644
index 5c1713d0f..000000000
--- a/webpos/webapp/webpos/images/js/OpenTerminal.js
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#startingDrawerAmount').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- openTerminalConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#openTerminalConfirm').on('click', function(event) {
- openTerminalConfirm();
- return false;
- });
-
- jQuery('#openTerminalCancel').on('click', function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function openTerminalConfirm() {
- pleaseWait('Y');
- var param = 'startingDrawerAmount=' + jQuery('#startingDrawerAmount').val();
- jQuery.ajax({url: 'OpenTerminal',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfOpenTerminal(data);
- },
- error: function(data) {
- getResultOfOpenTerminal(data);
- }
- });
- pleaseWait('N');
-}
-
-function openTerminal(cleanErrors) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#openTerminalFormServerError').html("");
- jQuery('#startingDrawerAmount').val("");
- }
- jQuery('#openTerminal').show();
- jQuery('#startingDrawerAmount').focus();
-}
-
-function getResultOfOpenTerminal(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#openTerminalFormServerError').html(serverError);
- openTerminal('N');
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/PaidOutAndIn.js b/webpos/webapp/webpos/images/js/PaidOutAndIn.js
deleted file mode 100644
index bcf2986c2..000000000
--- a/webpos/webapp/webpos/images/js/PaidOutAndIn.js
+++ /dev/null
@@ -1,110 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#amountInOut').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- paidOutAndInConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#reasonCommentInOut').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- paidOutAndInConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#paidOutAndInConfirm').on('click', function(event) {
- paidOutAndInConfirm();
- return false;
- });
-
- jQuery('#paidOutAndInCancel').on('click', function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function paidOutAndInConfirm() {
- pleaseWait('Y');
- var param = 'type=' + jQuery('#paidType').val() + '&amountInOut=' + jQuery('#amountInOut').val() +
- '&reasonIn=' + jQuery('#reasIn').val() + '&reasonOut=' + jQuery('#reasOut').val() +
- '&reasonCommentInOut=' + jQuery('#reasonCommentInOut').val();
- jQuery.ajax({url: 'PaidOutAndIn',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfPaidOutAndIn(data);
- },
- error: function(data) {
- getResultOfPaidOutAndIn(data);
- }
- });
- pleaseWait('N');
-}
-
-function paidOutAndIn(cleanErrors, paidInOut) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#paidOutAndInFormServerError').html("");
- jQuery('#amountInOut').val("");
- jQuery('#reasonCommentInOut').val("");
- }
- jQuery('#paidType').val(paidInOut);
- jQuery('#paidOutAndIn').show();
- if (paidInOut == 'IN') {
- jQuery('#reasonIn').show();
- jQuery('#amountPaidIn').show();
- jQuery('#reasonOut').hide();
- jQuery('#amountPaidOut').hide();
- } else {
- jQuery('#reasonIn').hide();
- jQuery('#amountPaidIn').hide();
- jQuery('#reasonOut').show();
- jQuery('#amountPaidOut').show();
- }
- jQuery('#amountInOut').focus();
-}
-
-function getResultOfPaidOutAndIn(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#paidOutAndInFormServerError').html(serverError);
- paidOutAndIn('N', jQuery('#paidType').val());
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/PayCash.js b/webpos/webapp/webpos/images/js/PayCash.js
deleted file mode 100644
index cf674a0ad..000000000
--- a/webpos/webapp/webpos/images/js/PayCash.js
+++ /dev/null
@@ -1,117 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#removeCashTotalPaid').click(function(event) {
- pleaseWait('Y');
- var param = 'clearCash=Y&clearCheck=N&clearGift=N&clearCredit=N';
- jQuery.ajax({url: 'ClearPayment',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfCashClearPayment(data);
- },
- error: function(data) {
- getResultOfCashClearPayment(data);
- }
- });
- pleaseWait('N');
- productToSearchFocus();
- return false;
- });
-
- jQuery('#amountCash').keypress(function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- payCashConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#payCashConfirm').click(function(event) {
- payCashConfirm();
- return false;
- });
-
- jQuery('#payCashCancel').click(function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function payCashConfirm() {
- pleaseWait('Y');
- var param = 'amountCash=' + jQuery('#amountCash').val();
- jQuery.ajax({url: 'PayCash',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfPayCash(data);
- },
- error: function(data) {
- getResultOfPayCash(data);
- }
- });
- pleaseWait('N');
-}
-
-function payCash(cleanErrors) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#payCashFormServerError').html("");
- jQuery('#amountCash').val("");
- }
- jQuery('#cashTotalDue').html(jQuery('#totalDueFormatted').val());
- jQuery('#cashTotalPaid').html(jQuery('#totalCashFormatted').val());
- jQuery('#payCash').show();
- jQuery('#amountCash').focus();
- return false;
-}
-
-function getResultOfPayCash(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#payCashFormServerError').html(serverError);
- payCash('N');
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
-
-function getResultOfCashClearPayment(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- clearErrorMessages();
- updateCart();
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/PayCheck.js b/webpos/webapp/webpos/images/js/PayCheck.js
deleted file mode 100644
index 5b5c6f3b5..000000000
--- a/webpos/webapp/webpos/images/js/PayCheck.js
+++ /dev/null
@@ -1,130 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#removeCheckTotalPaid').on('click', function(event) {
- pleaseWait('Y');
- var param = 'clearCash=N&clearCheck=Y&clearGift=Y&clearCredit=N';
- jQuery.ajax({url: 'ClearPayment',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfCashClearPayment(data);
- },
- error: function(data) {
- getResultOfCashClearPayment(data);
- }
- });
- pleaseWait('N');
- productToSearchFocus();
- return false;
- });
-
- jQuery('#amountCheck').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- payCheckConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#refNumCheck').on('keypress', function(event) {
- code = event.keyCode ? event.keyCode : event.which;
- if (code.toString() == 13) {
- payCheckConfirm();
- return false;
- }
- if (code.toString() == 27) {
- productToSearchFocus();
- return false;
- }
- });
-
- jQuery('#payCheckConfirm').on('click', function(event) {
- payCheckConfirm();
- return false;
- });
-
- jQuery('#payCheckCancel').on('click', function(event) {
- productToSearchFocus();
- return false;
- });
-});
-
-function payCheckConfirm() {
- pleaseWait('Y');
- var param = 'amountCheck=' + jQuery('#amountCheck').val() + '&refNum=' + jQuery('#refNumCheck').val();
- jQuery.ajax({url: 'PayCheck',
- data: param,
- type: 'post',
- async: false,
- success: function(data) {
- getResultOfPayCheck(data);
- },
- error: function(data) {
- getResultOfPayCheck(data);
- }
- });
- pleaseWait('N');
-}
-
-function payCheck(cleanErrors) {
- if (cleanErrors == undefined) {
- cleanErrors = "Y";
- }
- if (cleanErrors == "Y") {
- hideOverlayDiv();
- jQuery('#payCheckFormServerError').html("");
- jQuery('#amountCheck').val("");
- jQuery('#refNumCheck').val("");
- }
- jQuery('#checkTotalDue').html(jQuery('#totalDueFormatted').val());
- jQuery('#checkTotalPaid').html(jQuery('#totalCheckFormatted').val());
- jQuery('#payCheck').show();
- jQuery('#amountCheck').focus();
- return false;
-}
-
-function getResultOfPayCheck(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#payCheckFormServerError').html(serverError);
- payCheck('N');
- } else {
- clearErrorMessages();
- updateCart();
- productToSearchFocus();
- }
-}
-
-function getResultOfCheckClearPayment(data) {
- var serverError = getServerError(data);
- if (serverError != "") {
- jQuery('#errors').fadeIn('slow', function() {
- jQuery('#errors').html(serverError);
- });
- } else {
- clearErrorMessages();
- updateCart();
- }
-}
\ No newline at end of file
diff --git a/webpos/webapp/webpos/images/js/PayCreditCard.js b/webpos/webapp/webpos/images/js/PayCreditCard.js
deleted file mode 100644
index 19ac59d77..000000000
--- a/webpos/webapp/webpos/images/js/PayCreditCard.js
+++ /dev/null
@@ -1,241 +0,0 @@
-/*
-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.
-*/
-jQuery(document).ready(function() {
- jQuery('#removeCreditCardTotalPaid').on('click', function(event) {
- pleaseWait('Y');
- var param = 'clearCash=N&clearCheck=N&clearGift=N&clearCredit=Y';
- jQuery.ajax({url: 'ClearPayment',
- data: param,
... 3300 lines suppressed ...