commercial invoice function