added amount & currency fields for new transaction.

This commit is contained in:
ethem
2005-12-12 17:42:05 +00:00
parent d6ed7dae6a
commit a108dc4af5
+2
View File
@@ -176,6 +176,8 @@ class enrolment_plugin extends enrolment_base
$order->status = AN_STATUS_NONE; // it will be changed...
$order->timeupdated = 0; // cron changes this.
$order->timecreated = $timenow;
$order->amount = $curcost['cost'];
$order->currency = $curcost['currency'];
$order->id = insert_record("enrol_authorize", $order);
if (!$order->id) {
$this->email_to_admin("Error while trying to insert new data", $order);