Why is the HSN summary not matching with B2B and B2C, if the HSN code is already added to all products?

If a credit note/sales return is created, the sale return value will be deducted from the sales value under the respective HSN code in the HSN summary.

Please note that the B2B report will display only B2B sales invoices, while the B2C report will display only B2C sales invoices.

Example: