{"action":"created","issue":{"url":"https://api.github.com/repos/rossaddison/import_transactions/issues/1","labels_url":"https://api.github.com/repos/rossaddison/import_transactions/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/rossaddison/import_transactions/issues/1/comments","events_url":"https://api.github.com/repos/rossaddison/import_transactions/issues/1/events","html_url":"https://github.com/rossaddison/import_transactions/issues/1","id":79075596,"number":1,"title":"no inventory items defined in the system.","user":{"login":"alvin101","id":260486,"avatar_url":"https://avatars.githubusercontent.com/u/260486?v=3","gravatar_id":"","url":"https://api.github.com/users/alvin101","html_url":"https://github.com/alvin101","followers_url":"https://api.github.com/users/alvin101/followers","following_url":"https://api.github.com/users/alvin101/following{/other_user}","gists_url":"https://api.github.com/users/alvin101/gists{/gist_id}","starred_url":"https://api.github.com/users/alvin101/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvin101/subscriptions","organizations_url":"https://api.github.com/users/alvin101/orgs","repos_url":"https://api.github.com/users/alvin101/repos","events_url":"https://api.github.com/users/alvin101/events{/privacy}","received_events_url":"https://api.github.com/users/alvin101/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-21T16:42:02Z","updated_at":"2015-05-23T21:26:59Z","closed_at":null,"body":"after upgrade to latest scripts and trying to use General Journal Processing,  I now get this error:\r\n\r\n`  There are no inventory items defined in the system.\r\n/home4/aljotwoc/public_html/fa/includes/ui/ui_msgs.inc:14:\ttrigger_error('There are no inventory items defined in the system.','256')\r\n/home4/aljotwoc/public_html/fa/includes/data_checks.inc:277:\tdisplay_error('There are no inventory items defined in the system.','1')\r\n/home4/aljotwoc/public_html/fa/modules/import_transactions/import_transactions.php:128:\tcheck_db_has_stock_items('There are no inventory items defined in the system.') `\r\n\r\nWhat do you think the problem is here?\r\n\r\nI get this under show SQL:\r\n\r\nBEGIN\r\nSELECT counter, type, type_no, amount FROM 0_gl_trans ORDER BY counter DESC LIMIT 1\r\nSELECT COUNT(*) FROM 0_stock_master"},"comment":{"url":"https://api.github.com/repos/rossaddison/import_transactions/issues/comments/104945753","html_url":"https://github.com/rossaddison/import_transactions/issues/1#issuecomment-104945753","issue_url":"https://api.github.com/repos/rossaddison/import_transactions/issues/1","id":104945753,"user":{"login":"rossaddison","id":8538339,"avatar_url":"https://avatars.githubusercontent.com/u/8538339?v=3","gravatar_id":"","url":"https://api.github.com/users/rossaddison","html_url":"https://github.com/rossaddison","followers_url":"https://api.github.com/users/rossaddison/followers","following_url":"https://api.github.com/users/rossaddison/following{/other_user}","gists_url":"https://api.github.com/users/rossaddison/gists{/gist_id}","starred_url":"https://api.github.com/users/rossaddison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rossaddison/subscriptions","organizations_url":"https://api.github.com/users/rossaddison/orgs","repos_url":"https://api.github.com/users/rossaddison/repos","events_url":"https://api.github.com/users/rossaddison/events{/privacy}","received_events_url":"https://api.github.com/users/rossaddison/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T21:26:59Z","updated_at":"2015-05-23T21:26:59Z","body":"Hi Alvin,\nYou could remove line 126 from import_transactions.php\n\ncheck_db_has_stock_items(_(\"There are no inventory items defined in the system.\"));\n\n\nbut you will inevitably have to define a service item as a product item if you are using the Sales Order / Sales Invoices procedure.\n\nOr you could go Setup->System and General GL Setup>Inventory->Allow negative inventory.\n\nTry these and hopefully they will give a good result.\n\nRoss\n\n\nOn May 21, 2015, Alvin <notifications@github.com> wrote:\n> after upgrade to latest scripts and trying to use General Journal Processing, I now get this error:\n> There are no inventory items defined in the system.\n> /home4/aljotwoc/public_html/fa/includes/ui/ui_msgs.inc:14: trigger_error('There are no inventory items defined in the system.','256')\n> /home4/aljotwoc/public_html/fa/includes/data_checks.inc:277: display_error('There are no inventory items defined in the system.','1')\n> /home4/aljotwoc/public_html/fa/modules/import_transactions/import_transactions.php:128: check_db_has_stock_items('There are no inventory items defined in the system.')\n> What do you think the problem is here?—\n> Reply to this email directly or view it on GitHub <https://github.com/rossaddison/import_transactions/issues/1>.\n> \n"}}