modified im_payment_after_create callback implementation take paid_amount into account when checking whether the invoice has been partially paid (new-2.tcl in intranet-payments does not change the status of the invoice except to mark it as completely paid