World-Three-Technologies / Masxaro-Prototype

Other
8 stars 4 forks source link

search function #10

Closed Rafe closed 13 years ago

Rafe commented 13 years ago

search function should take search keyword and return receipt with keyword mainly focus on location and item name

and api should look like:

$control->searchReceipt($acc,"Harry Potter");

about the receipt_item, just return the matched item name will be good for now.

yaxing commented 13 years ago

ok...then don't u need to search based on other conditions? like time duration?

yaxing commented 13 years ago

I added a new API as key_search in receiptOperation for what you mentioned. Plz check whether it is what you need.

Rafe commented 13 years ago

typo in sql, Receipt.class.php line 544

 $acc = isset($acc) ? "(^$acc%)" : "(.*)";

should be

 $acc = isset($acc) ? "(^$acc*)" : "(.*)";

fixed on master, and other is fine.

yaxing commented 13 years ago

Thank you, this is a typo, instead of %, I should use $, I already changed it on master.

ghost commented 13 years ago

Should this issue be closed?