Hi,
Your Rounding value as per the document is coming as -.40 which would be booked as credit only.
The Rounding value is based on the calculation. If the calculated value is more than 0.50, then it would be positive rounding and booked as debit and if less then 0.50, then negative as credit.
Please check your Rounding settings for the currency.
Kind Regards,
Jitin
SAP Business One Forum Team