Hi Serge, My apologies for the late reply.
Currently OFBiz doesn't have an integration for BPEL, allowing for complex business rules to be invoked/executed on state changes of orders (given particular attributes) or on the classification of the customer within the store. However, as shown in [1] you can set the base order state in the orders section. [1] https://demo-trunk.ofbiz.apache.org/catalog/control/EditProductStore?productStoreId=9000 Met vriendelijke groet, Pierre Smits *Proud* *contributor** of* Apache OFBiz <https://ofbiz.apache.org/> since 2008 (without privileges) *Apache Directory <https://directory.apache.org>, PMC Member* Apache Incubator <https://incubator.apache.org>, committer Apache Steve <https://steve.apache.org>, committer On Thu, Oct 14, 2021 at 12:17 PM Bs Serge <[email protected]> wrote: > Hi Pierre, > > Sorry for the late reply, and thank you for your thorough reply > > Maybe this is configured in the Catalog module, but does it mean that in > OFBiz those business policies and rules regarding order approval can be > defined and enforced? Or does it require some custom development? > > Like saying: orders of this particular store or sales channel must be paid > before delivery like it is on many e-commerce sites. > > Regarding the withdrawal, I don't think there is an issue, because, in my > case, it's a credit card financial account and when I authorize and capture > the payment for the order, the amount gets withdrawn automatically, but I > can do that even after the order was approved. > > Best Regards, > > On Fri, Oct 8, 2021 at 2:04 PM Pierre Smits <[email protected]> > wrote: > > > Hi Serge, > > > > I don't believe this is related to lacking accounting skills ;-) > > > > The (functional) reasoning why an order (I presume you're talking about a > > sales order) can get approved while not having been paid for lies in > > application of business policies and rules. These can dictate, for > > instance, that an order can be paid on deliver of the goods ordered, or a > > credit is granted by allowing to pay the invoice of the order after 30 > days > > (payment term = 30 days net). > > > > Regarding the second aspect in your mail, the issue seems two-fold: > > > > 1. order is created with payment through a financial account, and the > > balance of the financial account is enough to pay for the order. This > is > > holding enough merit to approve the order. > > 2. order is created with payment through a financial account, but the > > balance is not enough to pay for the order. In this case it should not > > be > > possible to approve the order (automatically). But there could still > be > > merit in approving the order given the size of it compared to overall > > business done with the customer (the trust aspect). > > > > That the amount not being withdrawn from the financial account may be a > > technical issue. If you feel this is the case with ootb functionality of > > OFBiz, please register a ticket in our JIRA. > > > > Best regards, > > > > Pierre Smits > > > > ORRTIZ.COM <http://www.orrtiz.com> > > OFBiz based solutions & services > > > > On Fri, Oct 8, 2021 at 10:51 AM Bs Serge <[email protected]> wrote: > > > > > Hi, > > > > > > Maybe I lack some accounting skills, > > > > > > But why can an order get approved when it has not been paid for? > > > > > > I create an order to be paid by a party's financial account, the > balance > > is > > > enough, but their order can be approved and the amount will not be > > > withdrawn from the account automatically. > > > > > > Best Regards, > > > > > >
