Changed checkout_plugin_id to checkout_id and ADSL speed to SUPPLIER speed

This commit is contained in:
Deon George
2013-06-17 22:47:44 +10:00
parent 98a36554ae
commit 1caeed6606
11 changed files with 18 additions and 18 deletions

View File

@@ -154,7 +154,7 @@ abstract class Checkout_Plugin_Paypal extends Checkout_Plugin {
$po->fees_amt = $cno->data['mc_fee'];
$po->total_amt = $cno->data['mc_gross'];
$po->date_payment = strtotime($cno->data['payment_date']);
$po->checkout_plugin_id = $this->co->id;
$po->checkout_id = $this->co->id;
$po->notes = $cno->data['txn_id'];
$po->save();

View File

@@ -11,7 +11,7 @@
*/
class Model_Checkout extends ORM_OSB {
protected $_has_many = array(
'account'=>array('through'=>'account_billing','foreign_key'=>'checkout_plugin_id'),
'account'=>array('through'=>'account_billing','foreign_key'=>'checkout_id'),
'payment'=>array(),
);