call calc_adjustment_amount function only if docstatus is zero