Bugfixes for Vendor_Payment calibration and additional helper function _journal_cmp