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

Posted by Nicolas Malin (Jira) on
URL: http://ofbiz.116.s1.nabble.com/jira-Created-OFBIZ-51-SequenceNum-for-ProdAssocs-when-using-QuickAddVariants-tp168764p168771.html

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

Jacopo Cappellato commented on OFBIZ-51:
----------------------------------------

Hi Scott,

even if I'm not sure to understand the usefulness of ordering the variants, I think that adding the sequenceNum as an optional input parameter to the "quickCreateVariant" service is fine.
But why changing the getVariantCombinations service to return that arbitrary sequence?
If you simply want to generate the sequence that reflects the same order of combinations returned by the service, wouldn't be better to generate a default sequence in the form of the QuickAddVariant.ftl (using a simple counter in the form)?

Jacopo

> 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