You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Dhiraj Saxena <dh...@gmail.com> on 2008/09/09 13:26:41 UTC

Difference between Sales Order and Purchase Order

Hello All,

Can anyone tell me about "Difference between Sales Order and Purchase Order"
as development point of view.
What things I have to keep in mind when I create any one of them.

Thanks,
Dhiraj

Re: Difference between Sales Order and Purchase Order

Posted by Ravi <ra...@gmail.com>.
hi Dhiraj ,
In my opinion you can make an order and then find out what are the necessary
fields you required for your order. you can make order by following this
https://demo.hotwaxmedia.com/ordermgr/control/orderentry

here you get both sales order and purchase order.

Regards
Ravindra Mandre

Re: Difference between Sales Order and Purchase Order

Posted by jjmbconquista <jj...@yahoo.com.br>.
In general they are similar, you have to look at the code of ofbiz to see how
each one is done.
The field orderTypeId, for example, in order sales is set to SALES_ORDER
while in purchase order is set to 
PURCHASE_ORDER.

see this:

http://svn.apache.org/repos/asf/ofbiz/trunk/applications/order/src/org/ofbiz/order/test/


Dhiraj Saxena wrote:
> 
> Thanks, but Can you please tell me something as per development point of
> view.
> What are the different filds processed while we make any one of them.
> 
> -- 
> Thanks,
> Dhiraj
> 
> On Tue, Sep 9, 2008 at 5:06 PM, jjmbconquista
> <jj...@yahoo.com.br>wrote:
> 
>>
>> Sales order is done by the customer and Purchase Order is done from
>> Company
>> to supplier
>>
>> Dhiraj Saxena wrote:
>> >
>> > Hello All,
>> >
>> > Can anyone tell me about "Difference between Sales Order and Purchase
>> > Order"
>> > as development point of view.
>> > What things I have to keep in mind when I create any one of them.
>> >
>> > Thanks,
>> > Dhiraj
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Difference-between-Sales-Order-and-Purchase-Order-tp19390335p19390487.html
>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/Difference-between-Sales-Order-and-Purchase-Order-tp19390335p19391776.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Difference between Sales Order and Purchase Order

Posted by Dhiraj Saxena <dh...@gmail.com>.
Thanks, but Can you please tell me something as per development point of
view.
What are the different filds processed while we make any one of them.

-- 
Thanks,
Dhiraj

On Tue, Sep 9, 2008 at 5:06 PM, jjmbconquista <jj...@yahoo.com.br>wrote:

>
> Sales order is done by the customer and Purchase Order is done from Company
> to supplier
>
> Dhiraj Saxena wrote:
> >
> > Hello All,
> >
> > Can anyone tell me about "Difference between Sales Order and Purchase
> > Order"
> > as development point of view.
> > What things I have to keep in mind when I create any one of them.
> >
> > Thanks,
> > Dhiraj
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Difference-between-Sales-Order-and-Purchase-Order-tp19390335p19390487.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>

Re: Difference between Sales Order and Purchase Order

Posted by jjmbconquista <jj...@yahoo.com.br>.
Sales order is done by the customer and Purchase Order is done from Company
to supplier

Dhiraj Saxena wrote:
> 
> Hello All,
> 
> Can anyone tell me about "Difference between Sales Order and Purchase
> Order"
> as development point of view.
> What things I have to keep in mind when I create any one of them.
> 
> Thanks,
> Dhiraj
> 
> 

-- 
View this message in context: http://www.nabble.com/Difference-between-Sales-Order-and-Purchase-Order-tp19390335p19390487.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: Difference between Sales Order and Purchase Order

Posted by BJ Freeman <bj...@free-man.net>.
>From a development point of view.
why re-invent the wheel
and
Why not read the code as to how this is done already.
It would also be good if you had an understanding of accounting.
Look in the order component.
applications\order\src\org\ofbiz\order\
a good way to follow this is to find the operation on the demo site
then look in the controller.xml for controller request map
like
    <request-map uri="orderentry">
        <security https="true" auth="true"/>
        <event type="java"
path="org.ofbiz.order.shoppingcart.ShoppingCartEvents"
invoke="routeOrderEntry"/>
        <response name="init" type="view" value="checkinits"/>
        <response name="agreements" type="view" value="orderagreements"/>
        <response name="cart" type="view" value="showcart"/>
        <response name="error" type="view" value="checkinits"/>
    </request-map>
This tells you the code is in

org.ofbiz.order.shoppingcart.ShoppingCartEvents
the method is
routeOrderEntry
if you follow the flow from there you will see show the code handles
Sales and Purchases.

Dhiraj Saxena sent the following on 9/9/2008 4:26 AM:
> Hello All,
> 
> Can anyone tell me about "Difference between Sales Order and Purchase Order"
> as development point of view.
> What things I have to keep in mind when I create any one of them.
> 
> Thanks,
> Dhiraj
>