Coding for POS for item details

Please help with the code to print the following fields in one line in POS invoice
item.qty rate amount