unit test in ofbiz
Hi All: i can find few document for unit test. -- 叶双明
Re: Simplified Chinese characters are displayed as square boxes in POS
It's a common problem for awt i18n. Set the fontname to null to let jre choose the default name for you. For example, you can change Font titleFont = new Font(fontName, fontStyle, fontSize); to Font titleFont = new Font(null, fontStyle, fontSize); in specialpurpose/pos/src/org/ofbiz/pos/component/Operator.java. Rebuild and try again. Good luck, Shi Jinghai/Beijing Langhua Ltd. 在 2009-09-27日的 20:53 -0700,ngterry写道: > Hi, > > I am using Windows XP Simplified Chinese Version SP3, Sun JDK5.0 Update 20. > I want to run Apache Ofbiz POS; however, the Chinese characters (zh) in > PosUiLabels.xml are all displayed as square boxes in POS panel. > > I have tested run Ofbiz in Mac OS X and the Simplified Chinese are displayed > normally, and other languages can also be displayed in Windows XP. > > I think there should be some settings in fontconfig.properties in > %JAVA_HOME%\jre\lib that I can work on. But I don't know what is going > wrong. > > I have copied the font SimSun.ttf to %JAVA_HOME%\jre\lib\fonts. > > What should I do? > > Regards, > Terence
Simplified Chinese characters are displayed as square boxes in POS
Hi, I am using Windows XP Simplified Chinese Version SP3, Sun JDK5.0 Update 20. I want to run Apache Ofbiz POS; however, the Chinese characters (zh) in PosUiLabels.xml are all displayed as square boxes in POS panel. I have tested run Ofbiz in Mac OS X and the Simplified Chinese are displayed normally, and other languages can also be displayed in Windows XP. I think there should be some settings in fontconfig.properties in %JAVA_HOME%\jre\lib that I can work on. But I don't know what is going wrong. I have copied the font SimSun.ttf to %JAVA_HOME%\jre\lib\fonts. What should I do? Regards, Terence -- View this message in context: http://www.nabble.com/Simplified-Chinese-characters-are-displayed-as-square-boxes-in-POS-tp25640293p25640293.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: Accounting transaction : GlAccountType
Hi Chris I'm not sure what response you're looking for here. Is there some functionality that you are looking for that you want to check if it's linked to the 'Complete transactions fields'...? I'm sure that you could move and re-label this button to be somewhere else on the screen. I suppose it depends on how you want to use it. Thanks Sharan Chris Snow-3 wrote: > > Hi Sharan, > > What else does the "Complete Transaction Fields" button do? Perhaps a > button under the GlAccountType field labeled "Get 'Gl Account Id' for > Account Type" would be useful? > > Many thanks, > > Chris > > Sharan-F wrote: >> Hi Chris >> >> I agree with Carsten – I see this as a feature and not a bug. I'll tell >> you >> my reasoning. >> >> The GL account defaults are the way to setup which accounts >> (GLAccountIds) >> you want specific transaction types (GL Account Types) to map to. This >> also >> helps to automate where transactions are posted to and if setup correctly >> you should have minimal transactions falling into the error (ie Error >> Journal). >> >> For an accounting transaction, if you enter a GLAccountType and the >> GLAccountId is blank and then use the 'Complete transaction fields' >> instead >> of the 'Verify transaction' - you will see that the system will >> automatically pick up the mapping from GL account defaults if they exist >> and >> will fill the GLAccountId that corresponds to the GLAccountType. >> >> There will be situations where you may want to change the GLAccountType >> in >> an accounting transaction and by doing that, it will need to map to a >> different GLAccountId. So for example - if you dont know the account >> number >> (GL account Id) but you do know what type of transaction it is >> (GLAccountType) then the current system gives you the option to change >> it, >> update it, and then use the 'Complete transactions fields' to >> automatically >> bring in the correct GLAccount Id. (if the mapping has been setup!) >> >> If on the other hand your business is not concerned with knowing what >> type >> of transaction has been processed and just wants to focus on the >> GLAccountId >> itself then that is also an option... so in this case you can leave the >> GLAccountType blank and fill in the GLAccountId manually. >> >> So I think having both these fields available here adds to the >> flexibility >> of OFBiz. >> >> Thanks >> Sharan >> >> Carsten Schinzer wrote: >> >>> This can only be considered a bug, if there is a mechanism to hook in >>> General Ledger configurations other than the default. >>> >>> Some more detail: >>> If you want to use a different GL setup, then there must be a mechanism >>> to >>> configure default accounts for certain transactions that have financial >>> implications, e.g. inventory additions/retrieval, sales etc. >>> >>> The above mechanism uses either a specific account or the account type >>> mapping. >>> >>> I personally find the account type mapping an easy way to do such a >>> default >>> mapping since it avoids to (re-)configure each and every transactional >>> service and instead focalize the configuration work to the accounting >>> application if the GL is changed. >>> >>> As most of my statements are based on assumptions and experience made >>> through config, it would be good if someone of the "experienced crowd" >>> could >>> verify these and add a comment here as well. However, in this context, I >>> cannot agree that the above is a bug; IMHO it's rather a feature. >>> >>> Regards >>> >>> >>> Carsten >>> >>> >>> 2009/9/25 Chris Snow >>> >>> I think this is a bug, but I wanted some feedback on it before I raised a JIRA issue... Any comments anyone? Chris Snow wrote: > Hi Jacopo, > > It seems that you must provide a glAccountTypeId, or a glAccountId for > a > transaction entry. If neither are set when you verify a transaction, > the > following error message is given (on the demo system): > > "Gl account id is not set for [1] or mapping not found for account > type" > > If you don't provide a glAccountId, and only provide a > glAccountTypeId, > is > there a mapping somewhere to map the two id's? It appears that > AcctgTransService.xml is not doing the mapping, it's only checking for > glAccountId? > > > > > > Many thanks in advance, > > Chris > > Jacopo Cappellato wrote: > > >> Hi >> Chris, >> >> usually the glAccountTypeId is passed to the service in order to >> retrieve >> the proper glAccountId (this is done with a series of lookup on GL >> mapping >> entities) >> >> Regards, >> >> Jacopo >> >> On Sep 21, 2009, at 7:28 AM, snowc wrote: >> >> >> >>> When adding a transaction entry, there are fields for GlAccountType >>> a
Re: [Improvement Request] Return error message in Authorize.NET API
Ok Jacques, I've done it here : https://issues.apache.org/jira/browse/OFBIZ-2973 I posted another message some days ago on the user list with the title "Problem configure Authorize.NET SSL certificate". No answer right now, maybe you can have a quick look at it. Thanks ! Cimballi On Sun, Sep 27, 2009 at 1:42 AM, Jacques Le Roux wrote: > Feel free to suggest a patch in Jira > http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices > > Thanks > > Jacques > > From: "Cimballi" >> >> Hi, >> >> Continuing my tests with Authorize.NET, I noticed a problem. >> When I try to authorize a payment with an invalid credit card number, >> the call to "PaymentGatewayServices.authOrderPayments" returns FAILED >> but the messages are empty. It should be interesting to have the error >> message or the error code in the response to this call. >> >> Cimballi >> > >
Re: Ecommerce Search (Unable to find products)
Just a thought, Verify if the keyword you are using for the search is present in the List of Keywords for the product in the Catalog Manager by going thru Keywords tab for the product. - YOKEPOWER On Thu, Sep 24, 2009 at 3:01 PM, Ancheta, Fred wrote: > Greetings! > > I am currently working on getting search to work as it does in the > Ecommerce > application. I have already set up a Default Search Category to hold all > of > the products in. Now when I go to search, I get no results at all. Ive > even tried adding the products to the Demo Default Search category in > Ecommerce and searching on the Ecommerce site, but none of the products I > add can be found. Am I missing something here? > > Also, rather than adding products to the Default Search Category, am I able > to simply add existing categories as children and make them searchable? > This way, I don't have to continue to copy products from one category into > another. Instead, I could just copy the categories holding those products > into the search category. > > Thanks in advanced. >
Re: EntitySync RMI error
Hi Deyan, It would be very valuable if you could post an article on wiki about your experience with this. Don't worry about where to put it, I will eventually take care to put it under FAQ... TIA Jacques From: "Deyan Tsvetanov" I found an issue though: If the connection gets dropped during sync : - the client ( POS ) prints connection reset by peer - the server ( MCS ) sync status remains to running. - the next sync does not start because MCS complains there is another sync running already. "Reset run status" from webtools -> entity sync status helps. I'll investigate further and log a bug, although the solution seems pretty simple - looks like a swallowed IOException, which should be handled by re-setting the sync status. CHeers, DEyan -Original Message- From: Deyan Tsvetanov Reply-to: user@ofbiz.apache.org To: user@ofbiz.apache.org Subject: Re: EntitySync RMI error Date: Sat, 26 Sep 2009 11:22:55 +0300 Got it ! Seems that the previous exception was coming from the MCS ( server ) . When I stopped the server I started getting the exception I kind of like more :) Message: Exception calling remote pull and report EntitySync service with name: remotePullAndReportEntitySyncDataRmi; org.ofbiz.service.Gene ricServiceException: RMI Error (Connection refused to host: 192.168.1.100; nested exception is: java.net.ConnectException: Connection refused: connect) So the problem was at the server side - RMIIF env var in startofbiz.sh wasn't set , so ofbiz was trying to get RMI host IP by resolving the hostname . The misleading things for me was that: 1) no any sign in the MCS logs that somebody is trying to connect and the MCS itself can not connect to its own RMI registry. 2) no any difference in the exceptions text on the POS ( client ) side: the 2 exceptions ( local one - can not connect to 192.168.1.100 and the remote one - can not connect to 127.0.0.1 ) look the same :) So issue is solved, sorry for bothering :) -- deyan -Original Message- From: Deyan Tsvetanov Reply-to: user@ofbiz.apache.org To: user@ofbiz.apache.org Subject: Re: EntitySync RMI error Date: Sat, 26 Sep 2009 09:52:55 +0300 During startup I get: 2009-09-26 08:46:31,905 (default-invoker-Thread-10) [ AbstractEngine.java:73 :INFO ] Loaded Service Locations : [main-rmi=rmi://127.0.0. 1:1099/RMIDispatcher, main-http=http://127.0.0.1:8080/webtools/control/httpService, entity-sync-rmi=rmi://192.168.1.100:1099/RMIDispatcher, entity-sync-http=http://192.168.1.100:8080/webtools/control/httpService, rita-rmi=rmi://127.0.0.1:1099/RMIDispatcher, eedcc-test=http://127. 0.0.1:8080/webtools/control/httpService] entity-sync-rmi seems to be ok ... -Original Message- From: Deyan Tsvetanov Reply-to: user@ofbiz.apache.org To: user@ofbiz.apache.org Subject: EntitySync RMI error Date: Sat, 26 Sep 2009 09:22:23 +0300 Hi guys, I'm trying to configure RMI entity sync. I'm following http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example What I've done so far: 1) entity-sync-rmi to rmi://192.168.1.100:1099/RMIDispatcher 2) set RMIIF=-Djava.rmi.server.hostname=127.0.0.1 ( as per the example ). 3) I've imported the entity sync groups, SandJobs, etc. However when the sync starts ( on the POS instance ) I get the following error: Exception calling remote pull and report EntitySync service with name: remotePullAndReportEntitySyncDataRmi; org.ofbiz.service.GenericServic eException: RMI Invocation Error (Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect) Exception: org.ofbiz.service.GenericServiceException Message: RMI Invocation Error (Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect) cause - Exception: java.rmi.ConnectException Message: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect cause - Exception: java.net.ConnectException Message: Connection refused: connect stack trace --- It insists connecting to 127.0.0.1 no matter what I type in serviceengine.xml. Any help would be appreciated :) Thanks in advance, Deyan
Re: Shipment address in checkout process
Hi Simon, This is possible, AFAIK shipping address is not required for Digital and Service goods. You may need to write your custom front-end checkout for such products. -- Thanks & Regards Mridul Pathak Hotwax Media http://www.hotwaxmedia.com mridul.pat...@hotwaxmedia.com - direct: +91 - 942.592.6892 On Fri, Sep 25, 2009 at 8:51 PM, Simon Hutchinson < simon.hutchin...@ixxus.co.uk> wrote: > Hi, > > Is it possible to prevent the requirement of a shipping address in the > checkout process for specific products (e.g Digital products made available > for download). > > Thans > > Simon >