Create invoices + fixes when contract is signed