'location_netable' => 1,
);
}
-
+ function initDatabase($roo)
+ {
+
+ if ($this->count()) {
+ echo "location exists - SKIP\n";
+ return;
+ }
+ $cust = DB_DataObject::Factory('custinfo');
+ $cc = $cust->count() ;
+ if ($cc != 1) {
+ echo "location create - needs 1 custinfo - got $cc\n";
+ return;
+ }
+ $cust->find(true);
+
+ $this->setFrom(array(
+ 'location_name' => 'Warehouse',
+ 'location_descrip' => 'Warehouse',
+ 'location_cust_id' => $cust->pid()
+ ));
+ $this->insert();
+ }
function beforeInsert($q,$roo)
{