Previously, when a foreign invoice with a cash discount was paid, the cash discount amount was incorrectly posted to the RGOL account in the GL batch, resulting in a balance discrepancy on the supplier details screen. This issue has now been resolved.