[interchange-docs] xmldocs - docelic modified refs/MaxQuantityField

docs at icdevgroup.org docs at icdevgroup.org
Mon Apr 28 22:32:44 UTC 2008


User:      docelic
Date:      2008-04-28 22:32:44 GMT
Modified:  refs     MaxQuantityField
Log:
* MaxQuantityField can accept multiple fields

Revision  Changes    Path
1.2                  xmldocs/refs/MaxQuantityField


rev 1.2, prev_rev 1.1
Index: MaxQuantityField
===================================================================
RCS file: /var/cvs/xmldocs/refs/MaxQuantityField,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MaxQuantityField	6 Nov 2006 22:04:40 -0000	1.1
+++ MaxQuantityField	28 Apr 2008 22:32:44 -0000	1.2
@@ -9,7 +9,7 @@
 
 
 __NAME__ synopsis
-<group choice='plain'>
+<group choice='plain' rep='repeat'>
 	<arg choice='plain'>
 		<replaceable>table</replaceable>:<replaceable>column</replaceable>
 	</arg>
@@ -21,8 +21,8 @@
 
 
 __NAME__ description
-The &conf-__FILENAME__; directive specifies the &glos-database;
-and database column containing the maximum allowed order quantity
+The &conf-__FILENAME__; directive specifies the &glos-database;s
+and database columns containing the maximum allowed order quantity
 for an item.
 </para><para>
 When two arguments are supplied (concatenated by a colon, <literal>:</literal>),
@@ -33,6 +33,10 @@
 The code of the item in question must be present in the 
 database (<database class='field'>code</database> column),
 or the quantity will be unlimited.
+</para><para>
+It is possible to specify multiple database fields (separated by commas), 
+in which case the maximum quantity allowed is set to the sum of all quantities
+found.
 __END__
 
 __NAME__ notes
@@ -52,3 +56,10 @@
 </programlisting>
 __END__
 
+
+__NAME__ example: Setting __FILENAME__
+<programlisting>
+MaxQuantityField inventory:quantity, products:on_hand
+</programlisting>
+__END__
+







More information about the docs mailing list