diff --git a/application/classes/lnapp/table.php b/application/classes/lnapp/table.php
index d2fdf4d3..501c5113 100644
--- a/application/classes/lnapp/table.php
+++ b/application/classes/lnapp/table.php
@@ -16,7 +16,7 @@ class lnApp_Table {
if (is_array($d) AND isset($d[$key]))
$x = $d[$key];
// If the key is a method, we need to eval it
- elseif (preg_match('/\(/',$key))
+ elseif (preg_match('/\(/',$key) OR preg_match('/-\>/',$key))
eval("\$x = \$d->$key;");
elseif (preg_match('/^__VALUE__$/',$key))
$x = $d;
diff --git a/application/classes/ormosb.php b/application/classes/ormosb.php
index e1a4097d..a38e876c 100644
--- a/application/classes/ormosb.php
+++ b/application/classes/ormosb.php
@@ -19,6 +19,9 @@ abstract class ORMOSB extends ORM {
protected $_created_column = array('column'=>'date_orig','format'=>TRUE);
protected $_updated_column = array('column'=>'date_last','format'=>TRUE);
+ // Our attribute values that need to be stored as serialized
+ protected $_serialize_column = array();
+
public function rules() {
return array(
'id'=>array(
@@ -93,6 +96,7 @@ abstract class ORMOSB extends ORM {
return TRUE;
}
+ // @todo Change this to be called by array_blob functions
public static function serialize_array(ORM $model,$field,$value) {
if (is_null($value))
return TRUE;
@@ -105,25 +109,51 @@ abstract class ORMOSB extends ORM {
}
public function __get($column) {
- // If the column is a blob, we'll decode it automatically
- if (array_key_exists($column,$this->_table_columns) AND $this->_table_columns[$column]['data_type'] == 'blob' AND (! isset($this->_table_columns[$column]['auto_convert']) OR ! $this->_table_columns[$column]['auto_convert'])) {
+ if (array_key_exists($column,$this->_table_columns)) {
- // In case our blob hasnt been saved as one.
- try {
- $this->_object[$column] = $this->blob($this->_object[$column]);
- }
- catch(Exception $e) {
- // @todo Log this exception
- echo Kohana_Exception::text($e), "\n";
- echo debug_print_backtrace();
+ // If the column is a blob, we'll decode it automatically
+ if ($this->_table_columns[$column]['data_type'] == 'blob' AND (! isset($this->_table_columns[$column]['auto_convert']) OR ! $this->_table_columns[$column]['auto_convert'])) {
+
+ // In case our blob hasnt been saved as one.
+ try {
+ $this->_object[$column] = $this->blob($this->_object[$column]);
+ }
+ catch(Exception $e) {
+ // @todo Log this exception
+ echo Kohana_Exception::text($e), "\n";
+ echo debug_print_backtrace();
+ }
+
+ $this->_table_columns[$column]['auto_convert'] = TRUE;
}
- $this->_table_columns[$column]['auto_convert'] = TRUE;
+ // If the column is a serialized object, we'll unserialize it.
+ if (in_array($column,$this->_serialize_column) AND (! isset($this->_table_columns[$column]['unserialized']) OR ! $this->_table_columns[$column]['unserialized'])) {
+
+ // In case our object hasnt been saved as serialized.
+ try {
+ $this->_object[$column] = unserialize($this->_object[$column]);
+ }
+ catch(Exception $e) {
+ // @todo Log this exception
+ echo Kohana_Exception::text($e), "\n";
+ echo debug_print_backtrace();
+ }
+
+ $this->_table_columns[$column]['unserialized'] = TRUE;
+ }
}
return parent::__get($column);
}
+ public function keyget($column,$key=NULL) {
+ if (is_null($key) OR ! is_array($this->$column))
+ return $this->$column;
+ else
+ return array_key_exists($key,$this->$column) ? $this->{$column}[$key] : NULL;
+ }
+
public function save(Validation $validation = NULL) {
// Find any fields that have changed, and that are blobs, and encode them.
if ($this->_changed)
diff --git a/application/classes/staticlist.php b/application/classes/staticlist.php
index 61e8d607..6acc55b9 100644
--- a/application/classes/staticlist.php
+++ b/application/classes/staticlist.php
@@ -47,6 +47,13 @@ abstract class StaticList {
return $table[$id];
}
+ /**
+ * Lists our available keys
+ */
+ public static function keys() {
+ return array_keys(static::factory()->table());
+ }
+
/**
* Renders form input
*
diff --git a/application/views/yaml/page.php b/application/views/yaml/page.php
index 32e254e5..7ed4586f 100644
--- a/application/views/yaml/page.php
+++ b/application/views/yaml/page.php
@@ -51,7 +51,7 @@
-
+
diff --git a/modules/adsl/classes/model/product/plugin/adsl.php b/modules/adsl/classes/model/product/plugin/adsl.php
index 928857af..963c9068 100644
--- a/modules/adsl/classes/model/product/plugin/adsl.php
+++ b/modules/adsl/classes/model/product/plugin/adsl.php
@@ -28,6 +28,10 @@ class Model_Product_Plugin_ADSL extends Model_Product_Plugin {
),
);
+ public function admin_update() {
+ return '';
+ }
+
// Our required abstract methods
public function feature_summary() {
// @todo This view should render based on the the results of this::allowance();
diff --git a/modules/adsl/classes/model/service/plugin/adsl.php b/modules/adsl/classes/model/service/plugin/adsl.php
index e36e6d25..a892a26f 100644
--- a/modules/adsl/classes/model/service/plugin/adsl.php
+++ b/modules/adsl/classes/model/service/plugin/adsl.php
@@ -67,6 +67,10 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
return Config::date(strtotime(sprintf('+%s months',$this->contract_term),$this->service_connect_date));
}
+ public function hasOffpeak() {
+ return ((is_null($this->product()->base_down_offpeak) OR $this->product()->base_down_offpeak) AND (is_null($this->product()->base_up_offpeak) OR $this->product()->base_up_offpeak)) ? TRUE : FALSE;
+ }
+
/**
* This function will return the months that have traffic data.
* This array can be used in a select list to display the traffic for that month
diff --git a/modules/adsl/views/service/admin/list/adslservices_body.php b/modules/adsl/views/service/admin/list/adslservices_body.php
deleted file mode 100644
index e8255bbb..00000000
--- a/modules/adsl/views/service/admin/list/adslservices_body.php
+++ /dev/null
@@ -1,12 +0,0 @@
-
+ hasOffPeak() AND $so->offpeak_start AND $so->offpeak_end) { ?>
+
+
Offpeak Period
+
offpeak_start,$so->offpeak_end); ?>
+
+
diff --git a/modules/domain/classes/model/product/plugin/domain.php b/modules/domain/classes/model/product/plugin/domain.php
index c7f2b6c5..7374d84e 100644
--- a/modules/domain/classes/model/product/plugin/domain.php
+++ b/modules/domain/classes/model/product/plugin/domain.php
@@ -16,6 +16,7 @@ class Model_Product_Plugin_Domain extends Model_Product_Plugin {
}
// Our required abstract methods
+ public function admin_update() {}
public function feature_summary() {}
// @todo This is not used, but should be.
diff --git a/modules/export/classes/quicken.php b/modules/export/classes/quicken.php
index 5a8e80b7..a9311752 100644
--- a/modules/export/classes/quicken.php
+++ b/modules/export/classes/quicken.php
@@ -50,6 +50,9 @@ class Quicken extends OSBExport {
# Payments
foreach ($inv->_payments as $payitem) {
+ if (! $payitem->AMOUNT)
+ continue;
+
$export .= "!TRNS\t";
$export .= implode("\t",$payitem->keys())."\n";
$export .= "TRNS\t";
diff --git a/modules/invoice/classes/controller/task/invoice.php b/modules/invoice/classes/controller/task/invoice.php
index 649c988d..3b04f54c 100644
--- a/modules/invoice/classes/controller/task/invoice.php
+++ b/modules/invoice/classes/controller/task/invoice.php
@@ -62,8 +62,9 @@ class Controller_Task_Invoice extends Controller_Task {
$days = ORM::factory('invoice')->config('REMIND_DUE');
foreach (ORM::factory('invoice')->list_due(time()+86400*$days) as $io) {
+ // @todo Use another option to supress reminders
// If we have already sent a reminder, we'll skip to the next one.
- if ($io->remind($key) AND (is_null($x=$this->request->param('id')) OR $x != 'again'))
+ if (($io->remind($key) AND (is_null($x=$this->request->param('id')) OR $x != 'again')) OR ($io->account->invoice_delivery != 1))
continue;
// Send our email
@@ -115,8 +116,9 @@ class Controller_Task_Invoice extends Controller_Task {
$key = 'remind_overdue_'.$notice;
foreach (ORM::factory('invoice')->list_overdue_billing(time()-86400*$days,FALSE) as $io) {
+ // @todo Use another option to supress reminders
// If we have already sent a reminder, we'll skip to the next one.
- if ($io->remind($key) AND (is_null($x) OR $x != 'again'))
+ if (($io->remind($key) AND (is_null($x=$this->request->param('id')) OR $x != 'again')) OR ($io->account->invoice_delivery != 1))
continue;
// Send our email
@@ -148,16 +150,17 @@ class Controller_Task_Invoice extends Controller_Task {
/**
* Generate our services invoices, based on the service next invoice date
*
- * @param int ID Service ID to generate invoice for (optional)
+ * @param int ID Service ID to generate invoice for (optional) - multiple services colon separated
*/
public function action_services() {
// Used to only process X invoices in a row.
$max = ORM::factory('invoice')->config('GEN_INV_MAX');
-
- $action = array();
- $snd = array(); // Our service next billing dates that need to be updated if this is successful.
+ // Our service next billing dates that need to be updated if this is successful.
+ $snd = array();
+ // Our charges that need to be updated if this is successful.
+ $chgs = array();
+ // If we are invoicing a specific service
$sid = is_null($this->request->param('id')) ? NULL : explode(':',$this->request->param('id'));
-
// Sort our service by account_id, then we can generate 1 invoice.
$svs = ORM::factory('service')->list_invoicesoon()->as_array();
Sort::MAsort($svs,'account_id,date_next_invoice');
@@ -189,22 +192,19 @@ class Controller_Task_Invoice extends Controller_Task {
$io->status = TRUE;
}
- $ppa = $so->product->get_price_array();
- // @todo Need to check our recurr_weekday configuration for items that need to be pro-rated and items that are billed on absolute dates.
$pdata = Period::details($so->recur_schedule,$so->product->price_recurr_weekday,$so->date_next_invoice,TRUE);
- $iio = $io->add_item();
+ $iio = $io->add_item();
$iio->service_id = $so->id;
$iio->product_id = $so->product_id;
$iio->quantity = $pdata['prorata'];
- $iio->item_type = 0;
+ $iio->item_type = 0; // Service Billing
$iio->discount_amt = null; // @todo
- $iio->price_type = $so->product->price_type; // @todo Do we need this?
- // @todo Might be a better way to do this
- $iio->price_base = $so->price ? $so->price : (isset($ppa[$so->recur_schedule]['price_base']) ? $ppa[$so->recur_schedule]['price_base'] : 0);
+ $iio->price_type = $so->product->price_type;
+ $iio->price_base = $so->price();
$iio->recurring_schedule = $so->recur_schedule;
- $iio->date_start = $pdata['start_time']; // @todo
- $iio->date_stop = $pdata['end_time']; // @todo
+ $iio->date_start = $pdata['start_time'];
+ $iio->date_stop = $pdata['end_time'];
// Our service next billing date, if this invoice generation is successful.
$snd[$so->id] = $pdata['end_time']+86400;
@@ -217,7 +217,6 @@ class Controller_Task_Invoice extends Controller_Task {
foreach ($c->find_all() as $co) {
$iio = $io->add_item();
-
$iio->service_id = $co->service_id;
$iio->product_id = $co->product_id;
$iio->charge_id = $co->id;
@@ -229,11 +228,11 @@ class Controller_Task_Invoice extends Controller_Task {
$iio->date_stop = $co->date_orig; // @todo
// @todo Temp
+ // We'll mark any charges as temporarily processed, although they should be set to status=1 later.
$co->status=2;
$co->save();
+ array_push($chgs,$co->id);
}
-
- array_push($action,(string)$so->id);
}
// Save our invoice.
@@ -243,13 +242,22 @@ class Controller_Task_Invoice extends Controller_Task {
}
// Update our service next billing dates.
+ // @todo Catch any update errors
foreach ($snd as $sid=>$date) {
$so = ORM::factory('service',$sid);
$so->date_next_invoice = $date;
$so->save();
}
- $this->response->body(_('Services Invoiced: ').join('|',$action));
+ // Update any processed charges as such
+ // @todo Catch any update errors
+ foreach ($chgs as $cid) {
+ $co = ORM::factory('charge',$cid);
+ $co->status=1;
+ $co->save();
+ }
+
+ $this->response->body(_('Services Invoiced: ').join('|',array_keys($snd)));
}
public function action_send() {
@@ -270,8 +278,8 @@ class Controller_Task_Invoice extends Controller_Task {
$max_count = 0;
foreach ($i->find_all() as $io) {
- // If we have already sent a reminder, we'll skip to the next one.
- if ($io->remind($key) AND (is_null($x) OR $x != 'again'))
+ // If we have already sent a reminder or we dont email invoices we'll skip to the next one.
+ if (($io->remind($key) AND (is_null($x) OR $x != 'again')) OR ($io->account->invoice_delivery != 1))
continue;
// If we have issued the max number of invoices this round, finish.
@@ -303,7 +311,7 @@ class Controller_Task_Invoice extends Controller_Task {
// @todo Record email log id if possible.
if ($et->send()) {
$io->print_status = 1;
- $io->set_remind($key,time());
+ $io->set_remind($key,time(),($x=='again' ? TRUE : FALSE));
array_push($action,(string)$io);
}
}
diff --git a/modules/invoice/classes/model/invoice.php b/modules/invoice/classes/model/invoice.php
index 9d23bfab..61662ae4 100644
--- a/modules/invoice/classes/model/invoice.php
+++ b/modules/invoice/classes/model/invoice.php
@@ -445,9 +445,13 @@ class Model_Invoice extends ORMOSB {
// If our value is null, we'll remove it.
if (is_null($value) AND isset($remind[$key]))
unset($remind[$key]);
- elseif ($add)
+ elseif ($add) {
+ if (! is_array($a=$remind[$key]))
+ $remind[$key] = array($a);
+
$remind[$key][] = $value;
- else
+
+ } else
$remind[$key] = $value;
$this->reminders = serialize($remind);
diff --git a/modules/payment/classes/controller/admin/payment.php b/modules/payment/classes/controller/admin/payment.php
index 655740f1..ce107f26 100644
--- a/modules/payment/classes/controller/admin/payment.php
+++ b/modules/payment/classes/controller/admin/payment.php
@@ -206,6 +206,7 @@ class Controller_Admin_Payment extends Controller_TemplateDefault_Admin {
}
public function action_addbulk() {
+ // @todo This needs to come from the DB.
$supported = array(
'ezypay'=>'Ezypay',
);
diff --git a/modules/product/classes/controller/admin/product.php b/modules/product/classes/controller/admin/product.php
index 5514b063..e3d8786c 100644
--- a/modules/product/classes/controller/admin/product.php
+++ b/modules/product/classes/controller/admin/product.php
@@ -12,17 +12,41 @@
*/
class Controller_Admin_Product extends Controller_TemplateDefault_Admin {
protected $secure_actions = array(
+ 'ajaxtranslateform'=>TRUE,
'list'=>TRUE,
+ 'update'=>TRUE,
+ 'view'=>TRUE,
);
+ public function action_ajaxtranslateform() {
+ $this->auto_render = FALSE;
+
+ $po = ORM::factory('product',$this->request->param('id'));
+
+ if (! $this->request->is_ajax() OR ! $po->loaded() OR ! isset($_REQUEST['key']))
+ $this->response->body(_('Unable to find translate data'));
+
+ else {
+
+ $pto = $po->product_translate->where('language_id','=',$_REQUEST['key'])->find();
+
+ $this->response->body(View::factory($this->viewpath())->set('pto',$pto));
+ }
+ }
+
/**
* Show a list of products
*/
public function action_list() {
+ if ($this->request->param('id'))
+ $prods = ORM::factory('product')->list_category($this->request->param('id'),FALSE);
+ else
+ $prods = ORM::factory('product')->order_by('active DESC,prod_plugin_file')->find_all();
+
Block::add(array(
'title'=>_('Customer Products'),
'body'=>Table::display(
- ORM::factory('product')->order_by('active DESC,prod_plugin_file')->find_all(),
+ $prods,
25,
array(
'id'=>array('label'=>'ID','url'=>'product/view/'),
@@ -43,5 +67,78 @@ class Controller_Admin_Product extends Controller_TemplateDefault_Admin {
)),
));
}
+
+ /**
+ * Edit a product configuration
+ */
+ public function action_update() {
+ $po = ORM::factory('product',$this->request->param('id'));
+
+ if (! $po->loaded())
+ Request::current()->redirect('welcome/index');
+
+ if ($_POST) {
+ if (isset($_POST['product_translate']['id']) AND ($pto=ORM::factory('product_translate',$_POST['product_translate']['id'])) AND $pto->loaded())
+ if (! $pto->values($_POST['product_translate'])->update()->saved())
+ throw new Kohana_Exception('Failed to save updates to product_translate data for record :record',array(':record'=>$po->id()));
+
+ if (! $po->values($_POST)->update()->saved())
+ throw new Kohana_Exception('Failed to save updates to product data for record :record',array(':record'=>$so->id()));
+ }
+
+ Block::add(array(
+ 'title'=>sprintf('%s %s:%s',_('Update Product'),$po->id,$po->name()),
+ 'body'=>View::factory($this->viewpath())
+ ->set('po',$po)
+ ->set('mediapath',Route::get('default/media'))
+ ->set('plugin_form',$po->admin_update()),
+ ));
+
+ Script::add(array('type'=>'stdin','data'=>'
+ $(document).ready(function() {
+ $("select[name=language_id]").change(function() {
+ // Send the request and update sub category dropdown
+ $.ajax({
+ type: "GET",
+ data: "key="+$(this).val(),
+ dataType: "html",
+ cache: false,
+ url: "'.URL::site('admin/product/ajaxtranslateform/'.$po->id).'",
+ timeout: 2000,
+ error: function(x) {
+ alert("Failed to submit");
+ },
+ success: function(data) {
+ $("div[id=translate]").replaceWith(data);
+ }
+ });
+ });
+ });
+ '));
+ }
+
+ public function action_view() {
+ $po = ORM::factory('product',$this->request->param('id'));
+
+ Block::add(array(
+ 'title'=>sprintf('%s: %s',_('Current Services Using this Product'),$po->name()),
+ 'body'=>Table::display(
+ ORM::factory('service')->where('product_id','=',$po->id)->find_all(),
+ 25,
+ array(
+ 'id'=>array('label'=>'ID','url'=>'user/service/view/'),
+ 'account->accnum()'=>array(),
+ 'account->name()'=>array('label'=>'Account'),
+ 'name()'=>array('label'=>'Details'),
+ 'active'=>array('label'=>'Active'),
+ 'price(TRUE,TRUE)'=>array('label'=>'Price','align'=>'right'),
+ ),
+ array(
+ 'page'=>TRUE,
+ 'type'=>'select',
+ 'form'=>'user/service/view',
+ )),
+ ));
+ }
}
?>
diff --git a/modules/product/classes/controller/product.php b/modules/product/classes/controller/product.php
index c65bbb40..48c2cfb6 100644
--- a/modules/product/classes/controller/product.php
+++ b/modules/product/classes/controller/product.php
@@ -42,6 +42,8 @@ class Controller_Product extends Controller_TemplateDefault {
Request::current()->redirect('welcome/index');
Breadcrumb::name($this->request->uri(),$cat->name);
+ Breadcrumb::url('product','product/categorys');
+ Breadcrumb::url('product/category','product/categorys');
Block::add(array(
'title'=>sprintf('%s: %s',_('Category'),$cat->name),
@@ -68,6 +70,7 @@ class Controller_Product extends Controller_TemplateDefault {
Request::current()->redirect('product_category/index');
Breadcrumb::name($this->request->uri(),$po->product_translate->find()->name);
+ Breadcrumb::url('product','product/categorys');
// Work out our category id for the control line
if (! empty($_GET['cid'])) {
@@ -78,6 +81,7 @@ class Controller_Product extends Controller_TemplateDefault {
Request::current()->redirect('product_category/index');
Breadcrumb::name('product/view',$co->name);
+ Breadcrumb::url('product/view','product/category/'.$co->id);
}
Block::add(array(
diff --git a/modules/product/classes/model/product.php b/modules/product/classes/model/product.php
index d2f2b9fb..28241442 100644
--- a/modules/product/classes/model/product.php
+++ b/modules/product/classes/model/product.php
@@ -41,6 +41,19 @@ class Model_Product extends ORMOSB {
),
);
+ // Our attributes that are arrays, we'll convert/unconvert them
+ protected $_serialize_column = array(
+ 'price_group',
+ );
+
+ public function rules() {
+ return array_merge(parent::rules(),array(
+ 'price_group'=>array(
+ array('ORMOSB::serialize_array',array(':model',':field',':value')),
+ ),
+ ));
+ }
+
/**
* Return the object of the product plugin
*/
@@ -81,14 +94,14 @@ class Model_Product extends ORMOSB {
// @todo Need to work out our default groups elsewhere, not in product
// All users are members of the all user group "0"
$groups = array(0);
- $pg = unserialize($this->price_group);
if (Auth::instance()->logged_in())
foreach (Auth::instance()->get_user()->group->find_all() as $go)
array_push($groups,$go->id);
// Work out the best price for the user
$price = array();
- foreach (unserialize($this->price_group) as $bill_freq => $pg) {
+ if (is_array($this->price_group))
+ foreach ($this->price_group as $bill_freq => $pg) {
if (isset($pg['show']) AND $pg['show'])
foreach ($groups as $gid) {
if (! empty($pg[$gid])) {
@@ -133,6 +146,50 @@ class Model_Product extends ORMOSB {
echo '';
}
+ /**
+ * Enable the plugin to store data
+ */
+ public function admin_update() {
+ if (is_null($plugin = $this->plugin()))
+ return NULL;
+ else
+ return $plugin->admin_update();
+ }
+
+ /**
+ * Is price shown for a specific period
+ */
+ public function isPriceShown($p) {
+ $x = $this->keyget('price_group',$p);
+
+ return (isset($x['show']) AND $x['show']) ? TRUE : FALSE;
+ }
+
+ /**
+ * Return the configured price groups for this product
+ */
+ public function availPriceGroups() {
+ // @todo This needs to be worked out dynamically
+ return array(0,2);
+ }
+
+ /**
+ * Return the available pricing options
+ */
+ public function availPriceOptions() {
+ // @todo This needs to be worked out dynamically
+ return array('price_base','price_setup');
+ }
+
+ /**
+ * Return the price for the particle group and price option for the period
+ */
+ public function price($grp,$period,$option) {
+ $x = $this->keyget('price_group',$period);
+
+ return isset($x[$grp][$option]) ? $x[$grp][$option] : NULL;
+ }
+
/**
* List the number of services using this product
*/
@@ -151,14 +208,20 @@ class Model_Product extends ORMOSB {
* Return the products for a given category
* @todo This shouldnt be here.
*/
- public function list_category($cat) {
+ public function list_category($cat,$active=TRUE) {
$results = array();
- foreach ($this->where('active','=',TRUE)->find_all() as $po) {
+ if ($active)
+ $cats = $this->where('active','=',TRUE);
+ else
+ $cats = $this;
+
+ foreach ($cats->find_all() as $po) {
if ($c = unserialize($po->avail_category) AND in_array($cat,$c))
array_push($results,$po);
}
+ Sort::MAsort($results,'position,price_base');
return $results;
}
}
diff --git a/modules/product/classes/model/product/category/translate.php b/modules/product/classes/model/product/category/translate.php
new file mode 100644
index 00000000..d68324bb
--- /dev/null
+++ b/modules/product/classes/model/product/category/translate.php
@@ -0,0 +1,20 @@
+array(),
+ );
+}
+?>
diff --git a/modules/product/classes/model/product/plugin.php b/modules/product/classes/model/product/plugin.php
index 7d0dd142..d341984f 100644
--- a/modules/product/classes/model/product/plugin.php
+++ b/modules/product/classes/model/product/plugin.php
@@ -14,6 +14,12 @@ abstract class Model_Product_Plugin extends ORMOSB {
// Reset any sorting that may be defined in our parent
protected $_sorting = array();
+ /**
+ * The admin_update should be implemented in plugins.
+ * It is used to update the plugin specific product information
+ */
+ abstract public function admin_update();
+
/**
* The feature summary should be implemented in plugins.
* It is displayed on the product overview page, as a summary of the products features.
diff --git a/modules/product/classes/model/product/translate.php b/modules/product/classes/model/product/translate.php
index e19e93e5..c5451349 100644
--- a/modules/product/classes/model/product/translate.php
+++ b/modules/product/classes/model/product/translate.php
@@ -11,6 +11,8 @@
* @license http://dev.osbill.net/license.html
*/
class Model_Product_Translate extends ORMOSB {
+ protected $_updated_column = FALSE;
+
protected $_belongs_to = array(
'product'=>array(),
);
diff --git a/modules/product/views/product/admin/ajaxtranslateform.php b/modules/product/views/product/admin/ajaxtranslateform.php
new file mode 100644
index 00000000..36570791
--- /dev/null
+++ b/modules/product/views/product/admin/ajaxtranslateform.php
@@ -0,0 +1,15 @@
+id); ?>
+
- prod_plugin_file && method_exists($record->prod_plugin_file,'feature_summary')) {
- // @todo This doesnt work, it needs to be product_plugin_xx class
- $pio = new $record->prod_plugin_file;
- echo '