Orders refer to parcel size and contents. Quantity isn't used.
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 */
<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"/>