Removed order quantity.
authorIain Patterson <me@iain.cx>
Thu, 18 Apr 2013 16:09:36 +0000 (12:09 -0400)
committerIain Patterson <me@iain.cx>
Thu, 18 Apr 2013 16:13:05 +0000 (12:13 -0400)
Orders refer to parcel size and contents.  Quantity isn't used.

lib/order.php
propel/schema.xml

index 20e5719..426606b 100644 (file)
     echo "</select></td>\n";
     echo "</tr>\n";
 
-    /* Quantity. */
-    echo "<tr>\n";
-    echo "  <td>Quantity (kg)</td>\n";
-    echo "  <td>"; input("quantity", sprintf("%0.2f", $order->getQuantity() / 1000)); echo "</td>\n";
-    echo "</tr>\n";
-
     /* Parcel type. */
     echo "<tr>\n";
     echo "  <td>Parcel size</td>\n";
       $order->setRequesterId($requester_id);
       $order->setBeneficiaryId($beneficiary_id);
       $order->setHubId($hub_id);
-      $order->setQuantity($quantity * 1000);
       $order->setParcel($parcel);
 
       /* XXX: begin/commit */
index 0c35e97..1f423dd 100644 (file)
     <column name="requester_id" type="integer" required="true"/>
     <column name="beneficiary_id" type="integer" required="true"/>
     <column name="hub_id" type="integer" required="false"/>
-    <column name="quantity" type="integer" required="true"/>
     <column name="parcel" type="integer" required="true"/>
     <foreign-key foreignTable="Contact" phpName="Requester" refPhpName="Requester">
       <reference local="requester_id" foreign="id"/>