ERP Next | apply_discount_on is overwritten

The apply discount on field is overwritten by “Grand Total”.
I have changed “Net Total” to be the deafult.
I save the doc with “Net Total”
The payload when saving the doc goes as “Net Total” but the response comes in as “Grand Total”

Not sure what’s happening - may be I changed a setting but not able to find it.

Your help will be much appreciated.
Thanks :slight_smile: