Fix RT 80389: properly generate xml for multiple lineItems in a transaction

Hi fayland,

This is a fix for the bug report in RT#80389 (https://rt.cpan.org/Public/Bug/Display.html?id=80389). It bit me today (and actually saved my ass, because I accidentally had duplicate items).

Thanks!
rhesa