The Rounding Issue

Regarding rounding numbers to two decimal places, if we round the total value before tax for each item separately, we encounter an issue where the final total invoice amount, including tax, does not match the total of all items, including tax, as priced in the store. However, if we do not perform any rounding and instead round the entire invoice at the final step of its creation, the numbers match exactly. But, if we do this we always receive a warning 202 from the Zakat authority after sharing the invoice with the platform, instead of an acceptance without warnings (200). What is the solution, and is it acceptable to ignore these warnings?

Salam,
Please share an XML here to verify. thanks