Donate Share

webERP web-based ERP Accounting

Tracker: Bugs

5 Check for tax province in locations table fails. - ID: 2889094
Last Update: Settings changed ( tim_schofield )

TaxProvinces.php
Version - 3.11
Line 120
$sql= "SELECT COUNT(*) FROM locations WHERE taxprovinceid " . LIKE . " '" .
$OldTaxProvinceName . "'";

Before a tax province is deleted a check occurs to insure the province is
not in use before deleting. The check fails and as a result tax provinces
can be deleted even though locations still exist that use the province
record. I could be wrong but it appears the reason the fail occurs is
because the PHP sql string is malformed at the LIKE and perhaps should
be...
$sql= "SELECT COUNT(*) FROM locations WHERE taxprovinceid LIKE '" .
$OldTaxProvinceName . "'";

Bryan


Bryan Nielsen ( burnin1965 ) - 2009-10-29 22:25

5

Closed

Fixed

Tim Schofield

None

None

Public


Comment ( 1 )

Date: 2009-11-12 11:53
Sender: tim_schofieldProject Admin

Thanks Bryan, that line was completely wrong on closer inspection. I have
corrected it and uploaded to svn.

Thanks
Tim



Attached File

No Files Currently Attached

Changes ( 5 )

Field Old Value Date By
status_id Open 2009-11-12 11:53 tim_schofield
resolution_id None 2009-11-12 11:53 tim_schofield
assigned_to nobody 2009-11-12 11:53 tim_schofield
allow_comments 1 2009-11-12 11:53 tim_schofield
close_date - 2009-11-12 11:53 tim_schofield