Problem with Donor Edit

  • Dale Brackin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 9 months ago #22869 by Dale Brackin
Problem with Donor Edit was created by Dale Brackin
When I edit a donor transaction on the back end (administration) the amount of the donation changes to $1. I can re-edit and change it back, but it looks like a problem. :)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #22917 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Problem with Donor Edit
Hi

That's strange. I just checked and could not see the issue ? Could you please explain step by step what I need to do to see the issue ?

Tuan

Please Log in or Create an account to join the conversation.

  • Dale Brackin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #22983 by Dale Brackin
Replied by Dale Brackin on topic Re: Problem with Donor Edit
I clicked on the last name field to edit the entry. I changed the campaign. I saved the entry with the Save button.

From the donor list, I can see the amount has changed from $1410 to $1.

I can repeat the same steps, change the campaign back to the correct one and change the amount back to $1410. When I save the entry, the amount is now correct again.

I try not to ask easy questions. :laugh:

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #22996 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Problem with Donor Edit
Ah

I think I understand the reason of this error now. This issue only happens with donation record has amount greater than 1000. The solution for this issue is as follow :

1. Open the file administrator/components/com_jdonation/views/donor/tmpl/default.php

2. Find the code below :
Code:
<?php echo $this->config->currency_symbol ; ?><input type="text" class="inputbox" name="amount" value="<?php echo $this->item->amount > 0 ? number_format($this->item->amount, 2) : ""; ?>" size="7" />

3. Change it to :
Code:
<?php echo $this->config->currency_symbol ; ?><input type="text" class="inputbox" name="amount" value="<?php echo $this->item->amount > 0 ? round($this->item->amount, 2) : ""; ?>" size="7" />

After that, the issue should be sorted. Thanks for reporting it, I will update the download package with this fix later today

Regards,

Tuan
The following user(s) said Thank You: Dale Brackin

Please Log in or Create an account to join the conversation.

  • Dale Brackin
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #23009 by Dale Brackin
Replied by Dale Brackin on topic Re: Problem with Donor Edit
That fixed it! Thank you very much!

How will I know when a new version is available?

Dale

Please Log in or Create an account to join the conversation.

Moderators: Dang Thuc DamDang Dam