Commonified Recurring for Sales Invoice and Sales Order

@anandpdoshi @nabinhait @rmehta please review and suggest
duplicate. Already defined at the top of the file