Issue #24224:normalize margin calculations
Merge pull request #421 from garyhgohoos/24224

Issue #24224:normalize margin calculations

requires https://github.com/xtuple/xtuple/pull/1714