Cost Center is Required for 'Profit and Loss' While Submitting POS Closing Entry

I managed to resolve the issue after some exploration in ERPNext. I realized that I needed to add the default cost center in the POS Profile, which I had missed earlier. Now that I’ve added the default cost center, everything is working fine. Refer to the attached image for details.