Convert deal to invoice in Books with either button or closed/won workflow

Convert deal to invoice in Books with either button or closed/won workflow

Hi, is there a deluge function that converts deals directly to Books? Trying to map products from deals to the line item in books. The existing integration between crm and books only map the total deal and total amount. I am able to convert deal to invoice within crm base on some of the topics found in the community but not directly to books. Any help is appreciated.