First, you have to fill Cross Reference table for all your items with Bar Code Type.
Second is to make application for bar code readers. You can make on-line application if you have readers with e.g. Windows Mobile, using web services.
When you make it, when you scan some bar code, this will be automatic filled as item in your documents.