You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "David E. Jones (JIRA)" <ji...@apache.org> on 2007/08/16 13:15:30 UTC

[jira] Commented: (OFBIZ-1198) Canceling rental and digital product orders is broken

    [ https://issues.apache.org/jira/browse/OFBIZ-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12520207 ] 

David E. Jones commented on OFBIZ-1198:
---------------------------------------

I'm looking into this now.

The patch you sent isn't a good solution because it would result in incorrect tax being added. It's nice to not have errors thrown, but there is also the concern of having correct results for this sort of thing.

Using the facility address for a digital order would result in incorrect taxes. Where a shipping address isn't available the billing address should be used, and when that is not available no tax should be applied. There is logic for this in other places so we'll have to add it here too.

BTW, using the facility address is fine for POS or physical store order in general because that is where the sale took place, but that isn't true for digital goods and the like purchased over the internet.

Anyway, I'll hopefully have this soon.

> Canceling rental and digital product orders is broken
> -----------------------------------------------------
>
>                 Key: OFBIZ-1198
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1198
>             Project: OFBiz
>          Issue Type: Bug
>          Components: order
>    Affects Versions: SVN trunk
>            Reporter: Bilgin Ibryam
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: tax.patch
>
>
> Hi all,
> Currently orders that do not have shipping address (orders that contains only digital and rental products) cannot be can canceled.
> The generated error is:
>      [java] 2007-08-12 15:30:49,640 (http-0.0.0.0-8443-Processor3) [  ServiceDispatcher.java:410:ERROR] Service Error [calcTax]: The address(es) used for tax calculation did not have State/Province or Country or other tax jurisdiction values set, so we cannot determine the taxes to charge.
>      [java] 2007-08-12 15:30:49,640 (http-0.0.0.0-8443-Processor3) [    TransactionUtil.java:291:WARN ]
>      [java] ---- exception report ----------------------------------------------------------
>      [java] [TransactionUtil.setRollbackOnly] Calling transaction setRollbackOnly; this stack trace shows where this is happening:
>      [java] Exception: java.lang.Exception
>      [java] Message: Service Error [calcTax]: The address(es) used for tax calculation did not have State/Province or Country or other tax jurisdiction values set, so we cannot determine the taxes to charge.
>      [java] ---- stack trace ---------------------------------------------------------------
>      [java] java.lang.Exception: Service Error [calcTax]: The address(es) used for tax calculation did not have State/Province or Country or other tax jurisdiction values set, so we cannot determine the taxes to charge.
>      [java] org.ofbiz.entity.transaction.TransactionUtil.setRollbackOnly(TransactionUtil.java:291)
>      [java] org.ofbiz.entity.transaction.TransactionUtil.rollback(TransactionUtil.java:238)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:414)
>      [java] org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:210)
>      [java] org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:136)
>      [java] org.ofbiz.order.order.OrderServices.recalcOrderTax(OrderServices.java:1381)
> The applied patch fixes the bug.
> Regards,
> Bilgin  Ibryam

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.