I've found it easier to use a google spreadsheet to manage invoices and have that generate entries that I copy to my ledger file, rather than using my ledger file to create invoices.
--https://www.reddit.com/r/plaintextaccounting/comments/1ghzpud/simple_invoice_management_for_plain_text
Screenshots cc'd here for easier viewing: