debugging save-invoice