move invoice frequency from sales table