DataObjects/Ipshead.php
authorAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 04:58:58 +0000 (12:58 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 30 Mar 2015 04:58:58 +0000 (12:58 +0800)
DataObjects/Ipshead.php

index e3b6618..49dd4cb 100644 (file)
@@ -76,7 +76,7 @@ class Pman_Xtuple_DataObjects_Ipshead extends DB_DataObject
     {
         // check if assigned.
         
-        $ass = DB_DataObject::factory('ipass');
+        $ass = DB_DataObject::factory('ipsass');
         $ass->ipsass_ipshead_id = $this->ipshead_id;
         if ($ass->count()) {
             $roo->jerr("This price list is assigned to a customer - please change that customer to another price list first");