Checked the application on why the data is generated for POS 5 instead of POS 7. Tested it, and as per checking, the 6 POS process is successful and the text file is created, and the POS 7 is successful but the text file is not created. Debugged the application and found out that there is a query in the application that is executed but encountered an error as it returns a 0 value. This table is not updated when a new POS is added to the POS settings. Modified the database and query and tested the application again, as per testing, it is now OK. Checked if the data is correct, as per checking, it is correct.