How to Configure a Product with Configurable Attributes

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

How to Configure a Product with Configurable Attributes

rohitpant
Hi All,
               I have the following requirement - When a user selects a product from a shopping cart, user should get prompted to enter some parameters before getting the final list of products. For example -

If you are purchasing steel, you might select a product by name 'Hot Rolled Steel' but then you would also like to enter width, gauge, thickness etc for 'Steel' since these attributes would determine the price of the product.

I am in the process of finding out how this can be done, but if someone has already done this or your thoughts on how can this be done (iam 3 days old to ofbiz) or you could point me to the rite doc maybe.

Would appreciate a reply.

Regards,
Rohit
Reply | Threaded
Open this post in threaded view
|

RE: How to Configure a Product with Configurable Attributes

Nikita Shinde
Hi,

   Have done something similar to this ...

Providing some pointers :

1> Add the attributes width, gauge, thickness etc as ProductFeature &
associate these features with products in ProductFeatureAppl.
2> Write your custom code to calculate the adjustments depending on the
input.
3> Then you can add the calculated adjustment to the product price.


I have'nt tried this with price rules but you can try that too.


Thanks,
Nikita Shinde
Amicon Technologies Pvt. Ltd.
Mumbai.


-----Original Message-----
From: rohitpant [mailto:[hidden email]]
Sent: Wednesday, April 02, 2008 7:56 AM
To: [hidden email]
Subject: How to Configure a Product with Configurable Attributes


Hi All,
               I have the following requirement - When a user selects a
product from a shopping cart, user should get prompted to enter some
parameters before getting the final list of products. For example -

If you are purchasing steel, you might select a product by name 'Hot Rolled
Steel' but then you would also like to enter width, gauge, thickness etc for
'Steel' since these attributes would determine the price of the product.

I am in the process of finding out how this can be done, but if someone has
already done this or your thoughts on how can this be done (iam 3 days old
to ofbiz) or you could point me to the rite doc maybe.

Would appreciate a reply.

Regards,
Rohit

--
View this message in context:
http://www.nabble.com/How-to-Configure-a-Product-with-Configurable-Attribute
s-tp16437473p16437473.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: How to Configure a Product with Configurable Attributes

ladroge
In reply to this post by rohitpant
To configure it go on the main page of the product and mention that the product Hot Rolled Steel
And then create also immaterial product or services width, gauge, thickness with their prices.
You have a button Configuration when you log you on Product catalog module of ERP.
Create a configuration wich will contain all your services as option.

rohitpant wrote
Hi All,
               I have the following requirement - When a user selects a product from a shopping cart, user should get prompted to enter some parameters before getting the final list of products. For example -

If you are purchasing steel, you might select a product by name 'Hot Rolled Steel' but then you would also like to enter width, gauge, thickness etc for 'Steel' since these attributes would determine the price of the product.

I am in the process of finding out how this can be done, but if someone has already done this or your thoughts on how can this be done (iam 3 days old to ofbiz) or you could point me to the rite doc maybe.

Would appreciate a reply.

Regards,
Rohit
Reply | Threaded
Open this post in threaded view
|

Re: How to Configure a Product with Configurable Attributes

Sumit Pandit-3
In reply to this post by Nikita Shinde
Rohit ,
In addition to Nikita's comment you can try to add the Configurable PC
in your cart. I wish it will help you. the productId is *PC001.

Sumit
*Nikita Shinde wrote:

> Hi,
>
>    Have done something similar to this ...
>
> Providing some pointers :
>
> 1> Add the attributes width, gauge, thickness etc as ProductFeature &
> associate these features with products in ProductFeatureAppl.
> 2> Write your custom code to calculate the adjustments depending on the
> input.
> 3> Then you can add the calculated adjustment to the product price.
>
>
> I have'nt tried this with price rules but you can try that too.
>
>
> Thanks,
> Nikita Shinde
> Amicon Technologies Pvt. Ltd.
> Mumbai.
>
>
> -----Original Message-----
> From: rohitpant [mailto:[hidden email]]
> Sent: Wednesday, April 02, 2008 7:56 AM
> To: [hidden email]
> Subject: How to Configure a Product with Configurable Attributes
>
>
> Hi All,
>                I have the following requirement - When a user selects a
> product from a shopping cart, user should get prompted to enter some
> parameters before getting the final list of products. For example -
>
> If you are purchasing steel, you might select a product by name 'Hot Rolled
> Steel' but then you would also like to enter width, gauge, thickness etc for
> 'Steel' since these attributes would determine the price of the product.
>
> I am in the process of finding out how this can be done, but if someone has
> already done this or your thoughts on how can this be done (iam 3 days old
> to ofbiz) or you could point me to the rite doc maybe.
>
> Would appreciate a reply.
>
> Regards,
> Rohit
>
>  

Reply | Threaded
Open this post in threaded view
|

Multiple Supplier Prices

SkipDever
Has anyone given any thought to or better yet, has any work been done on the
issue of multiple supplier prices.  For example, you might get price 1 for
quantity 1, a lower price for 10x, and a still lower price for 100x.

I have come up with my own scheme (SupplierProductCost) based on the
ProductPrice table (but related to SupplierProduct instead of Product).  I
am about to embark on wholesale changes to the Requirements code to
implement this.  However, I thought I'd ask to see if others have done or
thought about it.

If there has been, I'll move this over to the dev mailing list.

Skip


No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Re: Multiple Supplier Prices

BJ Freeman
Here is what I worked on.
a basic service that ecas are set to for rules on best supplier.
The includes Price, based on quanity, deliver based on quanity,
Discounts based on quanity and payment.


skip@thedevers sent the following on 4/2/2008 5:49 PM:

> Has anyone given any thought to or better yet, has any work been done on the
> issue of multiple supplier prices.  For example, you might get price 1 for
> quantity 1, a lower price for 10x, and a still lower price for 100x.
>
> I have come up with my own scheme (SupplierProductCost) based on the
> ProductPrice table (but related to SupplierProduct instead of Product).  I
> am about to embark on wholesale changes to the Requirements code to
> implement this.  However, I thought I'd ask to see if others have done or
> thought about it.
>
> If there has been, I'll move this over to the dev mailing list.
>
> Skip
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
> 10:13 AM
>
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Multiple Supplier Prices

David E Jones
In reply to this post by SkipDever

There is already a field on the SupplierProduct entity for quantity  
breaks.

-David


On Apr 2, 2008, at 6:49 PM, skip@thedevers wrote:

> Has anyone given any thought to or better yet, has any work been  
> done on the
> issue of multiple supplier prices.  For example, you might get price  
> 1 for
> quantity 1, a lower price for 10x, and a still lower price for 100x.
>
> I have come up with my own scheme (SupplierProductCost) based on the
> ProductPrice table (but related to SupplierProduct instead of  
> Product).  I
> am about to embark on wholesale changes to the Requirements code to
> implement this.  However, I thought I'd ask to see if others have  
> done or
> thought about it.
>
> If there has been, I'll move this over to the dev mailing list.
>
> Skip
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
> 3/31/2008
> 10:13 AM
>

Reply | Threaded
Open this post in threaded view
|

RE: Multiple Supplier Prices

SkipDever
Yep, saw that, but how about when you get a special promotional price or you
get a discount from list price for a quantity or you have an agreement for a
price when the order exceeds a dollar value.

I have written a service that gets the lowest price so I can have promo
prices.

I am writing an Economic Ordering Quantity (E.O.Q. in retail parlance)
routine that needs to know all the possible available costs for the
computation to be successful in ording the quantity that results in the
highest profitability for the item.

SupplierProduct suffices for 95% of my needs, but I have a few costs that
are agreement based (I can manually convert the "discount from list" ones by
supplying the quantity 1 price and let the operator do the math).

I was hoping for something as comprehensive as the price calculation
routines that exist for the shopping cart and the sales price.

With some luck, lots of folks will be using Ofbiz and that will include some
of our suppliers who will offer us the price flexibility found in the sale
prices for Ofbiz which of course become our costs.

Thanks for the insite though, it is always appreciated.

Skip

-----Original Message-----
From: David E Jones [mailto:[hidden email]]
Sent: Wednesday, April 02, 2008 8:14 PM
To: [hidden email]
Subject: Re: Multiple Supplier Prices



There is already a field on the SupplierProduct entity for quantity
breaks.

-David


On Apr 2, 2008, at 6:49 PM, skip@thedevers wrote:

> Has anyone given any thought to or better yet, has any work been
> done on the
> issue of multiple supplier prices.  For example, you might get price
> 1 for
> quantity 1, a lower price for 10x, and a still lower price for 100x.
>
> I have come up with my own scheme (SupplierProductCost) based on the
> ProductPrice table (but related to SupplierProduct instead of
> Product).  I
> am about to embark on wholesale changes to the Requirements code to
> implement this.  However, I thought I'd ask to see if others have
> done or
> thought about it.
>
> If there has been, I'll move this over to the dev mailing list.
>
> Skip
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Re: Multiple Supplier Prices

Jacopo Cappellato-3
You can also associate the SupplierProduct records to the Agreement  
entities (see the fields in the SupplierProduct entity; you may also  
define more than one agreement with your supplier; there are also  
screens to manage this information)

This may help,

Jacopo

On Apr 3, 2008, at 6:17 AM, skip@thedevers wrote:

> Yep, saw that, but how about when you get a special promotional  
> price or you
> get a discount from list price for a quantity or you have an  
> agreement for a
> price when the order exceeds a dollar value.
>
> I have written a service that gets the lowest price so I can have  
> promo
> prices.
>
> I am writing an Economic Ordering Quantity (E.O.Q. in retail parlance)
> routine that needs to know all the possible available costs for the
> computation to be successful in ording the quantity that results in  
> the
> highest profitability for the item.
>
> SupplierProduct suffices for 95% of my needs, but I have a few costs  
> that
> are agreement based (I can manually convert the "discount from list"  
> ones by
> supplying the quantity 1 price and let the operator do the math).
>
> I was hoping for something as comprehensive as the price calculation
> routines that exist for the shopping cart and the sales price.
>
> With some luck, lots of folks will be using Ofbiz and that will  
> include some
> of our suppliers who will offer us the price flexibility found in  
> the sale
> prices for Ofbiz which of course become our costs.
>
> Thanks for the insite though, it is always appreciated.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Wednesday, April 02, 2008 8:14 PM
> To: [hidden email]
> Subject: Re: Multiple Supplier Prices
>
>
>
> There is already a field on the SupplierProduct entity for quantity
> breaks.
>
> -David
>
>
> On Apr 2, 2008, at 6:49 PM, skip@thedevers wrote:
>> Has anyone given any thought to or better yet, has any work been
>> done on the
>> issue of multiple supplier prices.  For example, you might get price
>> 1 for
>> quantity 1, a lower price for 10x, and a still lower price for 100x.
>>
>> I have come up with my own scheme (SupplierProductCost) based on the
>> ProductPrice table (but related to SupplierProduct instead of
>> Product).  I
>> am about to embark on wholesale changes to the Requirements code to
>> implement this.  However, I thought I'd ask to see if others have
>> done or
>> thought about it.
>>
>> If there has been, I'll move this over to the dev mailing list.
>>
>> Skip
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG.
>> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
>> 3/31/2008
>> 10:13 AM
>>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
> 3/31/2008
> 10:13 AM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
> 3/31/2008
> 10:13 AM
>

Reply | Threaded
Open this post in threaded view
|

RE: Multiple Supplier Prices

SkipDever
Thanks Jacopo, I'll check that out more carefully before I proceed.

Skip

-----Original Message-----
From: Jacopo Cappellato [mailto:[hidden email]]
Sent: Wednesday, April 02, 2008 10:39 PM
To: [hidden email]
Subject: Re: Multiple Supplier Prices


You can also associate the SupplierProduct records to the Agreement
entities (see the fields in the SupplierProduct entity; you may also
define more than one agreement with your supplier; there are also
screens to manage this information)

This may help,

Jacopo

On Apr 3, 2008, at 6:17 AM, skip@thedevers wrote:

> Yep, saw that, but how about when you get a special promotional
> price or you
> get a discount from list price for a quantity or you have an
> agreement for a
> price when the order exceeds a dollar value.
>
> I have written a service that gets the lowest price so I can have
> promo
> prices.
>
> I am writing an Economic Ordering Quantity (E.O.Q. in retail parlance)
> routine that needs to know all the possible available costs for the
> computation to be successful in ording the quantity that results in
> the
> highest profitability for the item.
>
> SupplierProduct suffices for 95% of my needs, but I have a few costs
> that
> are agreement based (I can manually convert the "discount from list"
> ones by
> supplying the quantity 1 price and let the operator do the math).
>
> I was hoping for something as comprehensive as the price calculation
> routines that exist for the shopping cart and the sales price.
>
> With some luck, lots of folks will be using Ofbiz and that will
> include some
> of our suppliers who will offer us the price flexibility found in
> the sale
> prices for Ofbiz which of course become our costs.
>
> Thanks for the insite though, it is always appreciated.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Wednesday, April 02, 2008 8:14 PM
> To: [hidden email]
> Subject: Re: Multiple Supplier Prices
>
>
>
> There is already a field on the SupplierProduct entity for quantity
> breaks.
>
> -David
>
>
> On Apr 2, 2008, at 6:49 PM, skip@thedevers wrote:
>> Has anyone given any thought to or better yet, has any work been
>> done on the
>> issue of multiple supplier prices.  For example, you might get price
>> 1 for
>> quantity 1, a lower price for 10x, and a still lower price for 100x.
>>
>> I have come up with my own scheme (SupplierProductCost) based on the
>> ProductPrice table (but related to SupplierProduct instead of
>> Product).  I
>> am about to embark on wholesale changes to the Requirements code to
>> implement this.  However, I thought I'd ask to see if others have
>> done or
>> thought about it.
>>
>> If there has been, I'll move this over to the dev mailing list.
>>
>> Skip
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG.
>> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
>> 3/31/2008
>> 10:13 AM
>>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

RE: Multiple Supplier Prices

SkipDever
In reply to this post by Jacopo Cappellato-3
Thanks Jacopo, I'll check that out more carefully before I proceed.

Skip

-----Original Message-----
From: Jacopo Cappellato [mailto:[hidden email]]
Sent: Wednesday, April 02, 2008 10:39 PM
To: [hidden email]
Subject: Re: Multiple Supplier Prices


You can also associate the SupplierProduct records to the Agreement
entities (see the fields in the SupplierProduct entity; you may also
define more than one agreement with your supplier; there are also
screens to manage this information)

This may help,

Jacopo

On Apr 3, 2008, at 6:17 AM, skip@thedevers wrote:

> Yep, saw that, but how about when you get a special promotional
> price or you
> get a discount from list price for a quantity or you have an
> agreement for a
> price when the order exceeds a dollar value.
>
> I have written a service that gets the lowest price so I can have
> promo
> prices.
>
> I am writing an Economic Ordering Quantity (E.O.Q. in retail parlance)
> routine that needs to know all the possible available costs for the
> computation to be successful in ording the quantity that results in
> the
> highest profitability for the item.
>
> SupplierProduct suffices for 95% of my needs, but I have a few costs
> that
> are agreement based (I can manually convert the "discount from list"
> ones by
> supplying the quantity 1 price and let the operator do the math).
>
> I was hoping for something as comprehensive as the price calculation
> routines that exist for the shopping cart and the sales price.
>
> With some luck, lots of folks will be using Ofbiz and that will
> include some
> of our suppliers who will offer us the price flexibility found in
> the sale
> prices for Ofbiz which of course become our costs.
>
> Thanks for the insite though, it is always appreciated.
>
> Skip
>
> -----Original Message-----
> From: David E Jones [mailto:[hidden email]]
> Sent: Wednesday, April 02, 2008 8:14 PM
> To: [hidden email]
> Subject: Re: Multiple Supplier Prices
>
>
>
> There is already a field on the SupplierProduct entity for quantity
> breaks.
>
> -David
>
>
> On Apr 2, 2008, at 6:49 PM, skip@thedevers wrote:
>> Has anyone given any thought to or better yet, has any work been
>> done on the
>> issue of multiple supplier prices.  For example, you might get price
>> 1 for
>> quantity 1, a lower price for 10x, and a still lower price for 100x.
>>
>> I have come up with my own scheme (SupplierProductCost) based on the
>> ProductPrice table (but related to SupplierProduct instead of
>> Product).  I
>> am about to embark on wholesale changes to the Requirements code to
>> implement this.  However, I thought I'd ask to see if others have
>> done or
>> thought about it.
>>
>> If there has been, I'll move this over to the dev mailing list.
>>
>> Skip
>>
>>
>> No virus found in this outgoing message.
>> Checked by AVG.
>> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
>> 3/31/2008
>> 10:13 AM
>>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Re: How to Configure a Product with Configurable Attributes

rohitpant
In reply to this post by Sumit Pandit-3
hi Sumit,
                 Thakx for the tip. In order to calculate the price of the configurable item, do we have to write the code or is there something avaliable OOTB which can be used. What do you feel is the best way to go about it.
in the attached image , ideally whaen the user clikcs on some button the cost of the product should be calculated and appear at the Amount text box ( marked in red )

Regards,
Rohit

Sumit Pandit-3 wrote
Rohit ,
In addition to Nikita's comment you can try to add the Configurable PC
in your cart. I wish it will help you. the productId is *PC001.

Sumit
*Nikita Shinde wrote:
> Hi,
>
>    Have done something similar to this ...
>
> Providing some pointers :
>
> 1> Add the attributes width, gauge, thickness etc as ProductFeature &
> associate these features with products in ProductFeatureAppl.
> 2> Write your custom code to calculate the adjustments depending on the
> input.
> 3> Then you can add the calculated adjustment to the product price.
>
>
> I have'nt tried this with price rules but you can try that too.
>
>
> Thanks,
> Nikita Shinde
> Amicon Technologies Pvt. Ltd.
> Mumbai.
>
>
> -----Original Message-----
> From: rohitpant [mailto:rohitpant@gmail.com]
> Sent: Wednesday, April 02, 2008 7:56 AM
> To: user@ofbiz.apache.org
> Subject: How to Configure a Product with Configurable Attributes
>
>
> Hi All,
>                I have the following requirement - When a user selects a
> product from a shopping cart, user should get prompted to enter some
> parameters before getting the final list of products. For example -
>
> If you are purchasing steel, you might select a product by name 'Hot Rolled
> Steel' but then you would also like to enter width, gauge, thickness etc for
> 'Steel' since these attributes would determine the price of the product.
>
> I am in the process of finding out how this can be done, but if someone has
> already done this or your thoughts on how can this be done (iam 3 days old
> to ofbiz) or you could point me to the rite doc maybe.
>
> Would appreciate a reply.
>
> Regards,
> Rohit
>
>  
Reply | Threaded
Open this post in threaded view
|

Discovering Program Flow

SkipDever
In reply to this post by BJ Freeman
I am writing purchase orders, and then receiving them.  As part of that
process, an Invoice is being created when the items are received  I see a
shipment and shipmentItems created, .ItemIssuance and related, InventoryItem
and Detail, and several others.

For the life of me, I cannot see what code is being called to create the
Invoice.  This is not the first time I ran into this.

I have searched all the routines called directly and the ecas two levels
down so far, but still cannot find out how the invoice is being created.

Can someone tell me what is the best way and/or resources to use to discover
how these things happen when you can't trace through the code.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Re: Discovering Program Flow

David E Jones

New stuff: Webtools -> Artifact Info

-David


On Apr 3, 2008, at 5:17 PM, skip@thedevers wrote:

> I am writing purchase orders, and then receiving them.  As part of  
> that
> process, an Invoice is being created when the items are received  I  
> see a
> shipment and shipmentItems created, .ItemIssuance and related,  
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create  
> the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two  
> levels
> down so far, but still cannot find out how the invoice is being  
> created.
>
> Can someone tell me what is the best way and/or resources to use to  
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
> 3/31/2008
> 10:13 AM
>

Reply | Threaded
Open this post in threaded view
|

RE: Discovering Program Flow

SkipDever
Thanks David

Alas, I am stuck with a version from the first of the year (591699). We are
nearly in production now and I cannot get an update until probably September
or later when I'll have time to recertify it.

On the other hand, I found what I needed to know by searching in the log
files with info turned on.

Thanks though

Skip



-----Original Message-----
From: David E Jones [mailto:[hidden email]]
Sent: Thursday, April 03, 2008 5:41 PM
To: [hidden email]
Subject: Re: Discovering Program Flow



New stuff: Webtools -> Artifact Info

-David


On Apr 3, 2008, at 5:17 PM, skip@thedevers wrote:

> I am writing purchase orders, and then receiving them.  As part of
> that
> process, an Invoice is being created when the items are received  I
> see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create
> the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two
> levels
> down so far, but still cannot find out how the invoice is being
> created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:
> 3/31/2008
> 10:13 AM
>


No virus found in this incoming message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Full of Questions

SkipDever
In reply to this post by David E Jones
I have a request to print checks on a printer attached to a local Windows
workstation.  I can install a flavor of Linux if I need to.

The customer wants to print check runs on a high speed printer attached to
this workstation, typically 200 to 500 each run.

Has anyone done this already?

What occured to me was a javascript routine that talked to the server using
ajax, but I am aware of no javascript objects that deal with the printer
(but then again, I am javascript challenged).

I will almost certainly have a similiar request printing bar code labels by
the thousands on a barcode printer.

The only choice I can see is a java application talking SOAP to the server.
However, I am hoping for another solution so things will have a more
integrated feel.

Skip
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
10:13 AM

Reply | Threaded
Open this post in threaded view
|

Re: Full of Questions

Jacopo Cappellato-3
You can also define the printer (as a lan/remote printer) in the  
server in which OFBiz runs and then submit the print request to that  
printer (we have a service intended to do this).
If I am not wrong, there is an example of this pattern in the find  
orders screen (with a drop down that shows you the available printers,  
maybe commented out... but from there you should find the code).

Jacopo


On Apr 4, 2008, at 3:16 AM, skip@thedevers wrote:

> I have a request to print checks on a printer attached to a local  
> Windows
> workstation.  I can install a flavor of Linux if I need to.
>
> The customer wants to print check runs on a high speed printer  
> attached to
> this workstation, typically 200 to 500 each run.
>
> Has anyone done this already?
>
> What occured to me was a javascript routine that talked to the  
> server using
> ajax, but I am aware of no javascript objects that deal with the  
> printer
> (but then again, I am javascript challenged).
>
> I will almost certainly have a similiar request printing bar code  
> labels by
> the thousands on a barcode printer.
>
> The only choice I can see is a java application talking SOAP to the  
> server.
> However, I am hoping for another solution so things will have a more
> integrated feel.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date:  
> 3/31/2008
> 10:13 AM
>

Reply | Threaded
Open this post in threaded view
|

Re: Discovering Program Flow

Mridul Pathak-2
In reply to this post by SkipDever
Hi,    The best way to trace the process is to watch the consol log properly
and you may go through the control flow, and put debug statements in
different methods to debug the code.  Now moving to your problem, I tried to
trace the flow for Purchase Order and was able to trace where exactly the
call is made for creating Invoice while receiving the purchase order.
    On following the consol log carefully I found that after processing
receiveInventory and createShipmentReceipt, on updateShipment service
createInvoiceFromShipment is triggered as an ECA.  And after that
capturePaymentFromInvoice service is triggered as an ECA on
createInvoiceForOrder. The service createInvoiceForOrder is called inline
from createInvoicesFromShipments service which again is called inline from
creatInvoicesFromShipment service.
     I'll like to suggest you to debug the process to understand it better,
because this is a very complicated process and I think just reading out the
code may not be of much help.


On Fri, Apr 4, 2008 at 4:47 AM, skip@thedevers <[hidden email]> wrote:

> I am writing purchase orders, and then receiving them.  As part of that
> process, an Invoice is being created when the items are received  I see a
> shipment and shipmentItems created, .ItemIssuance and related,
> InventoryItem
> and Detail, and several others.
>
> For the life of me, I cannot see what code is being called to create the
> Invoice.  This is not the first time I ran into this.
>
> I have searched all the routines called directly and the ecas two levels
> down so far, but still cannot find out how the invoice is being created.
>
> Can someone tell me what is the best way and/or resources to use to
> discover
> how these things happen when you can't trace through the code.
>
> Skip
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.519 / Virus Database: 269.22.1/1352 - Release Date: 3/31/2008
> 10:13 AM
>
>


--
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[hidden email]
__________________________________
Office : 509.855.4113
Mobile : +919425926892
Reply | Threaded
Open this post in threaded view
|

Re: Full of Questions

Bilgin Ibryam
In reply to this post by Jacopo Cappellato-3
BTW using FC6 with configured printers, I cannot see the printers  in
find orders screen.

Any ideas what could be the reason and how to fix it?

Bilgin

Reply | Threaded
Open this post in threaded view
|

Re: Full of Questions

Jacopo Cappellato-3
Hi Bilgin,

I'd suggest to have a look at the findPrinters.bsh script, in the  
content application, that is the one that is used to get the list of  
printers (it just uses the javax.print.* api).

Jacopo

On Apr 4, 2008, at 10:49 AM, Bilgin Ibryam wrote:
> BTW using FC6 with configured printers, I cannot see the printers  in
> find orders screen.
>
> Any ideas what could be the reason and how to fix it?
>
> Bilgin
>

12