Forums / All Other Contributions/Addons / Business Activity Report 1.5.0 Support Thread

Business Activity Report 1.5.0 Support Thread

Started by gharls on 29 Apr 2009, 12:34 PM · Views: 7,147

Results 1 to 20 of 24
28 Jun 2009, 5:08 PM
#2
ehkho avatar

ehkho

New Zenner

Join Date:
Jun 2009
Posts:
5
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

Old database added to new installation of ZenCart Version: 1.3.8
Mods installed: Admin Profiles and Business Activity Report
Custom template

Warning: Division by zero in /home/USERNAME*/public_html/igotluckyskraps.com/ADMINFOLDER*/DG_BusActivity.php on line 204

*changed here for obvious reasons lol

The problem started on the very first search.

Also, is there an uninstall proceedure?

Thanks

4 Jul 2009, 11:06 PM
#3
mooomers avatar

mooomers

New Zenner

Join Date:
Mar 2009
Posts:
33
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

i'm probably not doing something right. i got the business activity to installed, and when i click on the 'details' button, i get this on the page :

Records Displayed Below are Stored in Database Table "dg_businessTS_detail"
1146 Table 'yabycosm_zc1.dg_businessTS_detail' doesn't exist
in:
[TRUNCATE dg_businessTS_detail]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

does that mean i didn't install the module correctly?

For account and tax purposes, i actually need the report to show the taxes separately. Here in canada we have 2 taxes and my accountant needs to see them as separate colums as they filed separately. Is there a way to do that?

thanks!

14 Jul 2009, 4:05 AM
#4
dkhoward avatar

dkhoward

New Zenner

Join Date:
May 2009
Posts:
15
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

I got the same error when trying to view the details. Evidently there is a mistake in the SQL script that creates the new datafiles. I can't find it.

HEY GHARLS. You listening guy!? We need a little help here.
:cry:

14 Jul 2009, 11:11 PM
#5
shartlesville avatar

shartlesville

New Zenner

Join Date:
Jul 2009
Location:
Roswell, NM, USA
Posts:
103
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

I installed and it works but it shows $0.00 tax and $0.00 coupons no matter what the timeframe and I know several have used coupons and many paid tax. Any idea why it isn't picking up that info?

Thanks!

Blessings,
Krisann

I donate to the Zen Team do you?
My current project: BestSewingDeals.com;

14 Jul 2009, 11:14 PM
#6
shartlesville avatar

shartlesville

New Zenner

Join Date:
Jul 2009
Location:
Roswell, NM, USA
Posts:
103
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

EhKho:

Also, is there an uninstall proceedure?

There are no file overwrites so you could just delete them and then look at the new table that was added and perform a "Drop Table" query in the DB

Or if you did a backup first (as it says you should, :wink:) you could just reinstall the backup version.

Blessings,
Krisann

I donate to the Zen Team do you?
My current project: BestSewingDeals.com;

17 Jul 2009, 8:59 PM
#7
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

My apologies for the delay in response. I no longer support this product, yet I will research your issues.

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

17 Jul 2009, 9:26 PM
#8
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

EhKho:

Old database added to new installation of ZenCart Version: 1.3.8
Mods installed: Admin Profiles and Business Activity Report
Custom template

Warning: Division by zero in /home/USERNAME*/public_html/igotluckyskraps.com/ADMINFOLDER*/DG_BusActivity.php on line 204

*changed here for obvious reasons lol

The problem started on the very first search.

Also, is there an uninstall proceedure?

Thanks

One generally cannot experience a division by 0 error in this part of the report unless there is no sales data at all for the date range entered. A very inelegant error message, I admit, and I will address in the new version due soon.

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

17 Jul 2009, 10:04 PM
#9
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

mooomers:

i'm probably not doing something right. i got the business activity to installed, and when i click on the 'details' button, i get this on the page :

Records Displayed Below are Stored in Database Table "dg_businessTS_detail"
1146 Table 'yabycosm_zc1.dg_businessTS_detail' doesn't exist
in:
[TRUNCATE dg_businessTS_detail]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

does that mean i didn't install the module correctly?

For account and tax purposes, i actually need the report to show the taxes separately. Here in canada we have 2 taxes and my accountant needs to see them as separate colums as they filed separately. Is there a way to do that?

thanks!

  1. You must execute the SQL script that comes with the report. Instructions can be found in the README file.

  2. Is your Zen Cart customized to separately capture and store both tax amounts? If so, I can perhaps give you a suggestion as to how to modify the report code to include both ... redesigning the report layout will be a messy job.

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

17 Jul 2009, 10:10 PM
#10
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

dkhoward:

I got the same error when trying to view the details. Evidently there is a mistake in the SQL script that creates the new datafiles. I can't find it.

HEY GHARLS. You listening guy!? We need a little help here.
:cry:

Easy does it ... we're all very busy and sometimes items slip past me from time to time.

Could you please relate to me the message that you see when you run the script within the Install SQL Patches module?

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

17 Jul 2009, 10:18 PM
#11
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

shartlesville:

I installed and it works but it shows $0.00 tax and $0.00 coupons no matter what the timeframe and I know several have used coupons and many paid tax. Any idea why it isn't picking up that info?

Thanks!

Blessings,
Krisann

Your case sounds the most baffling ... based on the SELECT SQL that resides behind the report, it's 'supposedly' impossible not to pick up tax on the order line.

First things first ... do you know how to use SQL against your database? (We can also communicate via e-mail; I'm at [email protected]).

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

17 Jul 2009, 11:49 PM
#12
shartlesville avatar

shartlesville

New Zenner

Join Date:
Jul 2009
Location:
Roswell, NM, USA
Posts:
103
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

gharls:

Your case sounds the most baffling ... based on the SELECT SQL that resides behind the report, it's 'supposedly' impossible not to pick up tax on the order line.

First things first ... do you know how to use SQL against your database? (We can also communicate via e-mail; I'm at [email protected]).

I can do basic stuff :wink: what did you have in mind?

I mean, I can copy, paste, and click 'go' :lol: I can also usually search through to find what I'm looking for if I know approximately what table something should be in.

I am running zcv1.3.8a in case it matters. :-)

I donate to the Zen Team do you?
My current project: BestSewingDeals.com;

21 Jul 2009, 4:51 PM
#13
gharls avatar

gharls

New Zenner

Join Date:
Dec 2008
Posts:
25
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

shartlesville:

I can do basic stuff :wink: what did you have in mind?

I mean, I can copy, paste, and click 'go' :lol: I can also usually search through to find what I'm looking for if I know approximately what table something should be in.

I am running zcv1.3.8a in case it matters. :-)

If not too much a bother, would you please cut and paste the following SQL statement into your phpAdmin query tool for your database, hit the GO button, and then send me a picture of your query results. I'm at [email protected].

SELECT date(a.date_purchased) orderdate, count(a.orders_id) ordercount, max(b.value) ordermax, sum(round(b.value, 2)) subtotal, IFNULL(sum(round(c.value, 2)),0) coupons, IFNULL(sum(round(d.value, 2)),0) discounts, sum(round(a.order_tax, 2)) tax, IFNULL(sum(round(e.value, 2)),0) shipping, sum(a.order_total) ordertotal FROM orders a JOIN orders_total b ON a.orders_id=b.orders_id AND b.class='ot_subtotal' LEFT JOIN orders_total c ON a.orders_id=c.orders_id AND c.class='ot_coupon' LEFT JOIN orders_total d ON a.orders_id=d.orders_id AND d.class='ot_gv' LEFT JOIN orders_total e ON a.orders_id=e.orders_id AND e.class='ot_shipping' WHERE date_purchased >= '2009-01-01' AND date_purchased < DATE_ADD('2009-07-31', INTERVAL 1 DAY) GROUP BY orderdate

Thanks.

GHarls@}-',--
**DataGrange Design Studio**
Web Design and Consulting

4 Aug 2009, 5:33 PM
#14
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

[QUOTE=gharls;756315]1. You must execute the SQL script that comes with the report. Instructions can be found in the README file.

I'm having the same problem. When I hit Detail I get a message that the dg_businessTS_detail table doesn't exist.

I've run the SQL. I've checked in my SQL and the table is there but it's empty.

What am I doing wrong? Or more importantly....how do I fix it?

Anyone's help is appreciated here. In the meantime I'm going to remove all the files and start over again. I'll post if that works...

Thanks!
Bekah

4 Aug 2009, 6:00 PM
#15
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

[QUOTE=rleepac;764620]> gharls:

  1. You must execute the SQL script that comes with the report. Instructions can be found in the README file.

I'm having the same problem. When I hit Detail I get a message that the dg_businessTS_detail table doesn't exist.

I've run the SQL. I've checked in my SQL and the table is there but it's empty.

What am I doing wrong? Or more importantly....how do I fix it?

Anyone's help is appreciated here. In the meantime I'm going to remove all the files and start over again. I'll post if that works...

Thanks!
Bekah

Figured it out. For some reason a prefix of zen_ was added to the name of the table when I ran the SQL patch - so it kept saying the table wasn't there. I renamed the table in my SQL taking out the zen_ from the beginning and it works now. Yay!

Bekah

4 Aug 2009, 8:11 PM
#16
rleepac avatar

rleepac

New Zenner

Join Date:
Jan 2009
Posts:
44
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

Got a question about getting this data out to a csv file.

I look up the info in my store/admin and it says: Records Displayed Below are Stored in Database Table "dg_businessTS_detail

So I go into my SQL database and open that table and it is exactly as it says. But, I want to be able to pull ALL the information from my search but instead it only puts in the 20 records that are showing on the search results (detail) page.

How do I get all the data instead of just 20 records at a time?

Thanks,
Bekah

16 Dec 2009, 7:40 PM
#17
jcit avatar

jcit

New Zenner

Join Date:
Nov 2009
Posts:
6
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

mooomers:

i'm probably not doing something right. i got the business activity to installed, and when i click on the 'details' button, i get this on the page :

Records Displayed Below are Stored in Database Table "dg_businessTS_detail"
1146 Table 'yabycosm_zc1.dg_businessTS_detail' doesn't exist
in:
[TRUNCATE dg_businessTS_detail]
If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

does that mean i didn't install the module correctly?

I had this happen when I installed BAR. The problem is that "zen" (default) gets suffixed in MySQL, making the call wrong.

Here's the fix for the basic (zen) install:

In the DG_BusActDetail.php change line 115 from:

$truncate = "TRUNCATE dg_businessTS_detail";

to

$truncate = "TRUNCATE zen_dg_businessTS_detail";

and also do the same on line 189:

$insert = "INSERT INTO zen_dg_businessTS_detail (order_date, orders_id, customers_name, payment_method, subtotal, coupon, discount, tax, shipping, order_total) VALUES ('" . $dataset->fields['orderdate'] . "', " . $dataset->fields['orders_id'] . ", '" . $dataset->fields['customers_name'] . "', '". $dataset->fields['payment_method'] . "', " . $dataset->fields['subtotal'] . ", " . $dataset->fields['coupons'] . ", " . $dataset->fields['discounts'] . ", " . $dataset->fields['tax'] . ", " . $dataset->fields['shipping'] . ", " . $dataset->fields['ordertotal'] . ")";

Cheers.

31 Dec 2009, 5:28 AM
#18
mooomers avatar

mooomers

New Zenner

Join Date:
Mar 2009
Posts:
33
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

gharls:

  1. You must execute the SQL script that comes with the report. Instructions can be found in the README file.

  2. Is your Zen Cart customized to separately capture and store both tax amounts? If so, I can perhaps give you a suggestion as to how to modify the report code to include both ... redesigning the report layout will be a messy job.

Hi!

  1. I did, but it's still giving me the same error.

  2. That would be fantastic!! Anything to make tax time less stressful would be awesome~

The way my taxes are setup in zencart is like this:
Priority Tax Class Zone Tax Rate
1 GST & PST Class Canada GST zone 5%
1 GST & PST Class Ontario PST Zone 8%

does this help?

29 Mar 2010, 12:14 AM
#19
seancon1 avatar

seancon1

New Zenner

Join Date:
Sep 2007
Posts:
19
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

i was having a problem with "[INSERT INTO dg_businessTS_detail" and found a customer had an apostrophe in his name,
i corrected it by adding mysql_real_escape_string() to the customers name in the insert query.

changed line 189

$insert = "INSERT INTO dg_businessTS_detail (order_date, orders_id, customers_name, payment_method, subtotal, coupon, discount, tax, shipping, order_total) VALUES ('" . $dataset->fields['orderdate'] . "', " . $dataset->fields['orders_id'] . ", '" . $dataset->fields['customers_name'] . "', '". $dataset->fields['payment_method'] . "', " . $dataset->fields['subtotal'] . ", " . $dataset->fields['coupons'] . ", " . $dataset->fields['discounts'] . ", " . $dataset->fields['tax'] . ", " . $dataset->fields['shipping'] . ", " . $dataset->fields['ordertotal'] . ")";

to

$insert = "INSERT INTO dg_businessTS_detail (order_date, orders_id, customers_name, payment_method, subtotal, coupon, discount, tax, shipping, order_total) VALUES ('" . $dataset->fields['orderdate'] . "', " . $dataset->fields['orders_id'] . ", '" . mysql_real_escape_string($dataset->fields['customers_name']) . "', '". $dataset->fields['payment_method'] . "', " . $dataset->fields['subtotal'] . ", " . $dataset->fields['coupons'] . ", " . $dataset->fields['discounts'] . ", " . $dataset->fields['tax'] . ", " . $dataset->fields['shipping'] . ", " . $dataset->fields['ordertotal'] . ")";

probably should correct this elsewhere so it gets properly inserted, but that's for another post!

hope this helps someone,

Sean

4 May 2010, 10:37 AM
#20
icebox_coolers avatar

icebox_coolers

New Zenner

Join Date:
Mar 2010
Posts:
7
Plugin Contributions:
0

Re: Business Activity Report 1.5.0 Support Thread

Hi,

When I run the SQL patch I receive the following errors
Warning: file() [function.file]: open_basedir restriction in effect. File(/tmp/php_upload/phpDnOeA3) is not within the allowed path(s): (VIRTUAL_DOCUMENT_ROOT:/usr/local/lib/php:/usr/local/lib/ph:/home/chroot_lib/phplib/:/usr/local/bin/) in /home/c-web/cf/fb/ iceboxcoolers.com.au / public / www / admin / sqlpatch.php on line 693

Warning: file(/tmp/php_upload/phpDnOeA3) [function.file]: failed to open stream: Operation not permitted in /home/c-web/cf/fb/ iceboxcoolers.com.au / public / www / admin/sqlpatch.php on line 693

Anyone have any idas on how to fix this ?
Alan