About automatic purchase order ship and receive

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

About automatic purchase order ship and receive

Larry.Liu
Hi all,

We have implement automatically purchase order ship and receive

by the follow step,

1. Create a customize service and invoke service quickShipPurchaseOrder and
receiveInventoryProduct

2. Add a customize eca service as below to invoke this new defined service.

<eca service="*changeOrderItemStatus*" event="*commit*">
  <condition field-name="*statusId*" operator="*equals*" value="*
ITEM_APPROVED*" />
  <action service="*automaticReceivePurchaseOrder*" mode="*sync*" />
</eca>

So does anybody also did this kind of change before and can u advice us that
whether there would be any impact to the out-of-the-box process for this
change?

Regards,
Liu Xiangqian

Wizitsoft Information Technology Ltd.
www.wizitsoft.com | (86) 010-62670653 ext 614
Reply | Threaded
Open this post in threaded view
|

Re: About automatic purchase order ship and receive

Divesh Dutta
Hello Liu,
         Now in OFBiz , When Purchase Order is placed, Order is in
ORDER_CREATED status and item in order is in ITEM_CREATED status. So
when user clicks on link of  "Approve Order" then, Order is in
ORDER_APPROVED status and item in Order is in ITEM_APPROVED status. So
according to your service when ever user Clicks on Approve Order link,
Shipment will be created automatically and Inventory will also be
received automatically. And if receive is successfull then Order will be
in Complete status. But if user approves the order and if he wish to
edit items or add more items in order after that. Then your service will
be  killing this process.
                                      Presently if User clicks on
Approve Order then an option occurs for "Quick Receive Purchase Order".
This is a multi process step where Shipment is created first and then
Order items are received for this Shipment. So to automate this process,
we can have functionality like when user clicks on "Quick Receive
Purchase Order" then quickShipPurchaseOrder and receiveInventoryProduct
should be called automatically. And so this multi step process can be
reduced to single step process.
                                       Lets see what community says on this.

Thanks
-Divesh


> Hi all,
>
> We have implement automatically purchase order ship and receive
>
> by the follow step,
>
> 1. Create a customize service and invoke service quickShipPurchaseOrder and
> receiveInventoryProduct
>
> 2. Add a customize eca service as below to invoke this new defined service.
>
> <eca service="*changeOrderItemStatus*" event="*commit*">
>   <condition field-name="*statusId*" operator="*equals*" value="*
> ITEM_APPROVED*" />
>   <action service="*automaticReceivePurchaseOrder*" mode="*sync*" />
> </eca>
>
> So does anybody also did this kind of change before and can u advice us that
> whether there would be any impact to the out-of-the-box process for this
> change?
>
> Regards,
> Liu Xiangqian
>
> Wizitsoft Information Technology Ltd.
> www.wizitsoft.com | (86) 010-62670653 ext 614
>
>  

Reply | Threaded
Open this post in threaded view
|

Re: About automatic purchase order ship and receive

BJ Freeman
In reply to this post by Larry.Liu
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

ECA is to modify or update an Entity, like re-calc the grand total of an
order in the orderheader.
SCA is when you want to perform operations based on some other event
like a service update.
So yours should be an SCA
Should review how a SCA works.
Looks like you may be doing Dropshipper.
if your using the trunk have you reviewed The dropshipper code.

Larry.Liu sent the following on 3/2/2009 10:34 PM:

> Hi all,
>
> We have implement automatically purchase order ship and receive
>
> by the follow step,
>
> 1. Create a customize service and invoke service quickShipPurchaseOrder and
> receiveInventoryProduct
>
> 2. Add a customize eca service as below to invoke this new defined service.
>
> <eca service="*changeOrderItemStatus*" event="*commit*">
>   <condition field-name="*statusId*" operator="*equals*" value="*
> ITEM_APPROVED*" />
>   <action service="*automaticReceivePurchaseOrder*" mode="*sync*" />
> </eca>
>
> So does anybody also did this kind of change before and can u advice us that
> whether there would be any impact to the out-of-the-box process for this
> change?
>
> Regards,
> Liu Xiangqian
>
> Wizitsoft Information Technology Ltd.
> www.wizitsoft.com | (86) 010-62670653 ext 614
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJrQ1trP3NbaWWqE4RAph6AJ9wMWNCdIFiuT7hRQBec8K/HKOcIwCgtN2y
sdGlso9kyck9JZfeHFX0yYI=
=jtvl
-----END PGP SIGNATURE-----
Reply | Threaded
Open this post in threaded view
|

Re: About automatic purchase order ship and receive

Larry.Liu
Hi Freeman,

As you adviced, it's better to do this in SCA rather than ECA and give an
example of dropshipper, but we have search throught the latest trunk of
Ofbiz, but didn't find any code related to dropshipper, can you please give
any advice on where do these code located?

BTW: by SCA, do you mean service condition action, just common service?

Thanks

Regards,
Liu Xiangqian

Wizitsoft Information Technology Ltd.
www.wizitsoft.com | (86) 010-62670653 ext 614


On Tue, Mar 3, 2009 at 6:58 PM, BJ Freeman <[hidden email]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> ECA is to modify or update an Entity, like re-calc the grand total of an
> order in the orderheader.
> SCA is when you want to perform operations based on some other event
> like a service update.
> So yours should be an SCA
> Should review how a SCA works.
> Looks like you may be doing Dropshipper.
> if your using the trunk have you reviewed The dropshipper code.
>
> Larry.Liu sent the following on 3/2/2009 10:34 PM:
> > Hi all,
> >
> > We have implement automatically purchase order ship and receive
> >
> > by the follow step,
> >
> > 1. Create a customize service and invoke service quickShipPurchaseOrder
> and
> > receiveInventoryProduct
> >
> > 2. Add a customize eca service as below to invoke this new defined
> service.
> >
> > <eca service="*changeOrderItemStatus*" event="*commit*">
> >   <condition field-name="*statusId*" operator="*equals*" value="*
> > ITEM_APPROVED*" />
> >   <action service="*automaticReceivePurchaseOrder*" mode="*sync*" />
> > </eca>
> >
> > So does anybody also did this kind of change before and can u advice us
> that
> > whether there would be any impact to the out-of-the-box process for this
> > change?
> >
> > Regards,
> > Liu Xiangqian
> >
> > Wizitsoft Information Technology Ltd.
> > www.wizitsoft.com | (86) 010-62670653 ext 614
> >
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFJrQ1trP3NbaWWqE4RAph6AJ9wMWNCdIFiuT7hRQBec8K/HKOcIwCgtN2y
> sdGlso9kyck9JZfeHFX0yYI=
> =jtvl
> -----END PGP SIGNATURE-----
>
Reply | Threaded
Open this post in threaded view
|

Re: About automatic purchase order ship and receive

BJ Freeman
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dropshipper items must be in the Dropshipper Category.
https://demo.hotwaxmedia.com/catalog/control/EditCategory?productCategoryId=dropShip
you can find info in
applications\product\data\ProductTypeData.xml
PRODRQM_DS
PRODRQM_DSQOH
also
DROP_SHIPMENT as a shipment.shipmentTypeId

SCA=service Condition Action.
However in researching a link for you I found
http://docs.ofbiz.org/display/OFBTECH/Service+Engine+Guide
Now refrers to it as a Event Condition action.


Larry.Liu sent the following on 3/5/2009 12:05 AM:

> Hi Freeman,
>
> As you adviced, it's better to do this in SCA rather than ECA and give an
> example of dropshipper, but we have search throught the latest trunk of
> Ofbiz, but didn't find any code related to dropshipper, can you please give
> any advice on where do these code located?
>
> BTW: by SCA, do you mean service condition action, just common service?
>
> Thanks
>
> Regards,
> Liu Xiangqian
>
> Wizitsoft Information Technology Ltd.
> www.wizitsoft.com | (86) 010-62670653 ext 614
>
>
> On Tue, Mar 3, 2009 at 6:58 PM, BJ Freeman <[hidden email]> wrote:
>
> ECA is to modify or update an Entity, like re-calc the grand total of an
> order in the orderheader.
> SCA is when you want to perform operations based on some other event
> like a service update.
> So yours should be an SCA
> Should review how a SCA works.
> Looks like you may be doing Dropshipper.
> if your using the trunk have you reviewed The dropshipper code.
>
> Larry.Liu sent the following on 3/2/2009 10:34 PM:
>>>> Hi all,
>>>>
>>>> We have implement automatically purchase order ship and receive
>>>>
>>>> by the follow step,
>>>>
>>>> 1. Create a customize service and invoke service quickShipPurchaseOrder
> and
>>>> receiveInventoryProduct
>>>>
>>>> 2. Add a customize eca service as below to invoke this new defined
> service.
>>>> <eca service="*changeOrderItemStatus*" event="*commit*">
>>>>   <condition field-name="*statusId*" operator="*equals*" value="*
>>>> ITEM_APPROVED*" />
>>>>   <action service="*automaticReceivePurchaseOrder*" mode="*sync*" />
>>>> </eca>
>>>>
>>>> So does anybody also did this kind of change before and can u advice us
> that
>>>> whether there would be any impact to the out-of-the-box process for this
>>>> change?
>>>>
>>>> Regards,
>>>> Liu Xiangqian
>>>>
>>>> Wizitsoft Information Technology Ltd.
>>>> www.wizitsoft.com | (86) 010-62670653 ext 614
>>>>
>>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJsAhErP3NbaWWqE4RAiaQAJ0eikObjxeIepRQnPWd2TPwEqmN/ACgrqtM
3aOhYWShKBhyHeLPcp1MGmo=
=aIK+
-----END PGP SIGNATURE-----