some times tax value is not updated in orderPriceInfo object, though it shows some tax value in orderTaxPriceInfo object.Also, totalShipping value is not included in orderTotal.
Not able to reproduce this to see under what conditions it is happening like that.
Do any one is having idea when it happens, and what is the solution for this.
It is a little strange, because you said that sometimes the item is not updated, but you aren't able to reproduce it.
First, I suggest you try to debug /atg/commerce/pricing/TaxPricingEngine and ShippingPricingEngine components, try to reproduce the issue and then paste the debug log in this post.
Second, have you customized tax or shipping components or any order components? If yes, tell us what was customized.
Hope it helps.
The pricing system supports a handful of pricing operations. There is a sequence that consists of pricing the items, then shipping, and then tax. Two of the most common pricing operations are ORDER_SUBTOTAL and ORDER_TOTAL. ORDER_SUBTOTAL includes item pricing but does not include shipping and tax calculations. ORDER_TOTAL calculates everything. The SUBTOTAL operation can be useful if you want to display promotion discounted prices on product detail pages or if you want to display item prices on the shopping cart page, where shipping information probably isn't known yet.
Some of the /atg/commerce/order/purchase form handlers are configured with pricing operations. For example, CartModifierFormHandler has addToOrderPricingOp and modifyOrderPricingOp properties. Both default to ORDER_SUBTOTAL. Perhaps you're noticing that the tax is missing when then last thing that repriced the order was an add to cart action. You can reconfigure the form handler properties if you want shipping and tax to be calculated all the time. Note that the extra calculations can be a waste of time. Tax calculation is often handled by an external service, so repeated calls will increase the time required and may also increase business costs.