https://blog.probooks.com/posts/integrating-sales-finance-invoicing/