tracing OrderAdjustment trying to figure out how it works

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

tracing OrderAdjustment trying to figure out how it works

Patrick-4
Everytime I create an OrderHeader, it is somehow automatically
associated with the only OrderAdjustment row in my DB.

OrderReadHelper.java
orderheader.getRelated("OrderAdjustment");  //always returns the
OrderAdjustment row, why?

Also, when I create a new OrderAdjustment using webtools I can't
create an amount.  I understand not being able to edit the amount for
BI reasons like BJ said, but I don't understand how I am supposed to
create new OrderAdjustments if I can't access that field.  Thanks in
advance, I'm rather confused.  Patrick
Reply | Threaded
Open this post in threaded view
|

Re: tracing OrderAdjustment trying to figure out how it works

Scott Gray-2
You may need to restate the question, it doesn't really make sense to me.

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 16/04/2010, at 7:07 AM, Patrick wrote:

> Everytime I create an OrderHeader, it is somehow automatically
> associated with the only OrderAdjustment row in my DB.
>
> OrderReadHelper.java
> orderheader.getRelated("OrderAdjustment");  //always returns the
> OrderAdjustment row, why?


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: tracing OrderAdjustment trying to figure out how it works

BJ Freeman
In reply to this post by Patrick-4
this helps in tracing.
https://demo-stable.ofbiz.apache.org/webtools/control/ArtifactInfo
put in
OrderAdjustment
You will see what is returned with getrelated
take a look at createOrderAdjustment
https://demo-stable.ofbiz.apache.org/webtools/control/ArtifactInfo?type=service&uniqueId=createOrderAdjustment
I clicked on recreateOrderAdjustments
https://demo-stable.ofbiz.apache.org/webtools/control/ArtifactInfo?type=service&uniqueId=recreateOrderAdjustments
you will notice that is has ECA associated with it.
http://ofbiz.apache.org/docs/services.html#ECAs

as far as webtools you might look at the
framework/webtools/webapp/webtools/entity/EditEntity.ftl

=========================
BJ Freeman
http://bjfreeman.elance.com
Strategic Power Office with Supplier Automation <http://www.businessesnetwork.com/automation/viewforum.php?f=93>
Specialtymarket.com <http://www.specialtymarket.com/>

Systems Integrator-- Glad to Assist

Chat  Y! messenger: bjfr33man
Linkedin
<http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro>


Patrick sent the following on 4/15/2010 12:07 PM:

> Everytime I create an OrderHeader, it is somehow automatically
> associated with the only OrderAdjustment row in my DB.
>
> OrderReadHelper.java
> orderheader.getRelated("OrderAdjustment");  //always returns the
> OrderAdjustment row, why?
>
> Also, when I create a new OrderAdjustment using webtools I can't
> create an amount.  I understand not being able to edit the amount for
> BI reasons like BJ said, but I don't understand how I am supposed to
> create new OrderAdjustments if I can't access that field.  Thanks in
> advance, I'm rather confused.  Patrick
>