Auto fill transaction descriptions.

This commit is contained in:
James Cole
2015-03-27 13:16:14 +01:00
parent e94194e28b
commit 12542d8f63
6 changed files with 46 additions and 15 deletions

View File

@@ -8,6 +8,16 @@ if ($('input[name="revenue_account"]').length > 0) {
$('input[name="revenue_account"]').typeahead({source: data});
});
}
if ($('input[name="description"]').length > 0 && what != undefined) {
$.getJSON('json/transaction-journals/' + what).success(function (data) {
$('input[name="description"]').typeahead({source: data});
});
}
if ($('input[name="category"]').length > 0) {
$.getJSON('json/categories').success(function (data) {
$('input[name="category"]').typeahead({source: data});