Hello all
I was looking at
http://forums.opengoo.org/index.php?topic=1494.0and thought I'd give it a try
I added a column to og_billing_categories called default_currency
I added the fields in add.php and index.php
I added the functions inBaseBillingCategory.class.php and the parameter in BillingController.class.php.
But the field is not updated in the table, and if I enter the currency manually, it does not appear on the pages.
Anyone know what I'm doing wrong?
I added the functions
function getDefaultCurrency() {
return $this->getColumnValue('default_currency');
} // getDefaultCurrency()
function setDefaultCurrency($value) {
return $this->setColumnValue('default_currency', $value);
} // setDefaultCurrency)
in BaseBillingCategory.class.php
I added this in BillingController.class.php, wherever relevant
'default_currency' => '',
And changed the line where the $ was hardcoded in billing/index.php to
<td style="text-align: center;padding:5px;padding-left:10px;padding-right:10px;"><?php echo clean($billing->getDefaultCurrency()) ?></td>
<td style="text-align: center;padding:5px;padding-left:10px;padding-right:10px;"><?php echo clean($billing->getDefaultValue()) ?></td>
What else needs to be done for it to take effect?