echo "\n<br>" . htmlspecialchars($address->getPostcode());
echo "</p>\n";
+ $notes = $order->getNotes();
+ if ($notes) {
+ echo "<p><strong>Notes:</strong>\n";
+ echo htmlspecialchars($notes);
+ echo "</p>\n";
+ }
+
echo "<hr>\n\n";
}
}
echo "</td>\n";
echo "</tr>\n";
+ /* Notes. */
+ echo "<tr>\n";
+ echo " <td>Notes</td>\n";
+ echo " <td>"; textarea("notes", $order->getNotes()); echo "</td>\n";
+ echo "</tr>\n";
+
/* Driver. */
echo "<tr>\n";
echo " <td>Driver</td>\n";
for ($i = count($parcel_sizes); $i < count($parcel_contents); $i++) {
if ($_POST['parcel_' . $i] == "on") $parcel |= (1 << $i);
}
+ $notes = $_POST['notes'];
if ($date) {
list($y, $m, $d) = explode('-', $date);
$order->setBeneficiaryId($beneficiary_id);
$order->setHubId($hub_id);
$order->setParcel($parcel);
+ $order->setNotes($notes);
/* XXX: begin/commit */
try {
<column name="beneficiary_id" type="integer" required="true"/>
<column name="hub_id" type="integer" required="false"/>
<column name="parcel" type="integer" required="true"/>
+ <column name="notes" type="longvarchar" lazyLoad="true"/>
<foreign-key foreignTable="Contact" phpName="Requester" refPhpName="Requester">
<reference local="requester_id" foreign="id"/>
</foreign-key>