I created a button for printing item label for Inbound shipment record. But I faced an issue while click button in the Inbound shipment record. If the record has no item receipt, it will show an error and shows all standard printing item labels comes blank. I found a solution to why it happens.
Bar code printing is controlled by a User Task Preference.
Navigate to Transactions > Management > Print Checks and Forms > Items Labels > Print Name/Number Bar Code.
Mark this checkbox and print a label there to save the change. Moving forward, the Item Label will show Bar Code when printed either from the Print Item Labels Page or Item Page.