Why BR-27 Fails
Discount or return lines are encoded with a negative PriceAmount instead of using a negative InvoicedQuantity or a line/document allowance.
How to Fix BR-27
- Make BT-146 positive (or 0) and represent credit/return lines via negative quantity (BT-129) or a document/line AllowanceCharge.