Posted by tchurch on August 6, 2009 at 6:20pm
4 followers
Jump to:
| Project: | Storm |
| Version: | 6.x-1.23 |
| Component: | Storm Expenses |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
When I create an expense record, the provider field has no information in it.
Where should this be coming from? I have several organisations created and ticked as provider (and customer).
Comments
#1
Looking at the code it uses itself as a reference. So it will list any provider that has been set before on an expense.
#2
we'll get this in the documentation...
#3
As an alternative, should @Magnity wish to explore it, changing the
stormexpense_autocompletefunction instormexpense.admin.incto the following will list all active providers that the user has access permissions forfunction stormexpense_autocomplete($string = '') {
$matches = array();
if ($string) {
$s = "SELECT n.title FROM {node} AS n INNER JOIN {stormorganization} AS sor ON n.vid=sor.vid WHERE n.status=1 AND n.type='stormorganization' AND sor.isprovider=1 AND sor.isactive=1";
$where = array("LOWER(title) LIKE LOWER('%s%%')");
$s = stormorganization_access_sql($s, $where);
$s = db_rewrite_sql($s);
$result = db_query_range($s, $string, 0, 10);
while ($pro = db_fetch_object($result)) {
$matches[$pro->title] = check_plain($pro->title);
}
}
drupal_json($matches);
}
#4
Yes - that'd be a useful change.
#5
Committed.
I've also added a brief note to the Storm Expense section of the README.txt, but this needs a lot of work to expand still.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.