Login  Register

[jira] Commented: (OFBIZ-51) SequenceNum for ProdAssocs when using QuickAddVariants

Posted by Nicolas Malin (Jira) on Jun 25, 2006; 10:31am
URL: http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-51-SequenceNum-for-ProdAssocs-when-using-QuickAddVariants-tp168764p168770.html

    [ http://issues.apache.org/jira/browse/OFBIZ-51?page=comments#action_12417666 ]

Scott Gray commented on OFBIZ-51:
---------------------------------

Hi Jacopo

Sorting the variants allows for the display of the variant summary data in a logical sequence
ie. http://issues.apache.org/jira/browse/OFBIZ-46
as an apparel manufacturer, garment sizes displayed out of sequence would make little sense when viewed as a group.  Sequencing is already available for the product associations, this patch just applies some default values to them.

The reason for altering the service was that I thought I needed to try and maintain separation between the data and the template.  It seemed logical that if thats where the variant's productId came from, the sequenceNum came from there as well.  Whatever you think is best is fine by me.

I had asked on the dev list about using the rowCount of the multi form to generate the sequenceNum parameter but Si thought this was a bad idea (although after reading his comment again I'm wondering if I have misunderstood)
http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-dev/200606.mbox/%3c449C521F.4050008@...%3e

Regards
Scott

> SequenceNum for ProdAssocs when using QuickAddVariants
> ------------------------------------------------------
>
>          Key: OFBIZ-51
>          URL: http://issues.apache.org/jira/browse/OFBIZ-51
>      Project: The Open For Business Project
>         Type: Improvement

>   Components: product
>     Versions: SVN trunk
>     Reporter: Scott Gray
>  Attachments: VarProdAssocSeqNum-final.patch
>
> Hi
> The attached patch inserts values in the sequenceNum field on the Variant -> Virtual product associations when using the Quick Add Variants screen.  The sequenceNum is generated in the same order as the feature combinations displayed on screen, this seems to be the best way to sequence the ProdAssocs by default and certainly (in my case at least) beats no default sequencing.
> Regards
> Scott

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira