Perpetual inventory and P&L Statement

When First i set up my instance i enabled perpetual inventory but now i disabled this option.
when enabled perpetual inventory purchase only reflects in profit and loss statement when book sales against this.
to correct this i disabled perpetual inventory but still previous entries remains same because its posting done as per perpetual inventory system. and the problem is it creates wrong p&l statement.