Jacopo Cappellato 536c8a546d Some minor refactorings to the way the billing account is set in the cart: now it is sufficient to set the billing account id using the setBillingAccount* methods (already available) and it is no more necessary to set the payment method to EXT_BILLACT in the cart.
In fact the correct OrderPaymentPreference for the billing account is created by the cart when the order is created (if a billingAccountId is set).
So now, if you want to add a billing account to the cart you can simply do this:
   cart.setBillingAccount(billingAccountId, maxAmount);
and you can remove the billing account from the cart with:
   cart.setBillingAccount(null, 0.0);

This also fixes a bug that was happening when a billing account was selected and an error was returned (no credit available): the EXTBILLACT method was left in the cart, leading to an incorrect order.


git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@489337 13f79535-47bb-0310-9956-ffa450edef68
2006-12-21 12:12:28 +00:00
2006-07-21 07:02:43 +00:00
2006-07-21 07:02:43 +00:00
2006-07-21 07:02:43 +00:00
2006-12-12 07:46:06 +00:00
2006-07-21 07:02:43 +00:00
2006-07-21 07:02:43 +00:00

Welcome to Apache OFBiz!

If you have a release build all you need to run OFBiz is a 1.4 or 1.5 series
JDK (not just the JRE, the full J2SDK).
Once that is properly setup just run the executable jar file
that comes with OFBiz, which is ofbiz.jar. To do this on the
command line you would run:

java -jar ofbiz.jar

There are also start scripts for Windows and Unix-based
operating systems, namely startofbiz.bat and startofbiz.sh.

Once OFBiz starts, you can look at the demo storefront at:
http://localhost:8080/ecommerce/

and the administration interface at:
http://localhost:8080/webtools/

You can log in with the user "admin" and password "ofbiz".

For more details about running a build, or for information on
getting, building, and running the source please see the 
Apache OFBiz Setup Guide:

http://incubator.apache.org/ofbiz/docs/setup.html

Note that running with the default configuration uses an
embedded Java database (Apache Derby), and embedded application
server components such as Tomcat, Geronimo (transaction manager), etc.

To prepare OFBiz for production use the Basic Production Setup Guide
is a great place to start. It is available here:

http://docs.ofbiz.org/x/j

For additional resources please see the OFBiz web site.

Enjoy!

S
Description
No description provided
Readme Apache-2.0
638 MiB
Languages
Java 66.9%
FreeMarker 15.3%
Groovy 10.5%
JavaScript 4.6%
CSS 2.1%
Other 0.4%