---
title: "CreateInvoices"
canonical: "https://docs.dk.is/space/DEV/10354808/CreateInvoices"
format: markdown
---
This function creates an Invoices from all [TInvoice](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355773) supplied in the array

## Parameters

Used to call the function

1. arr - Array of [TInvoice](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355773)
2. doPost - boolean

## Returns

Returns the following

- NONE

 

> ℹ️ if **doPost** is set as false the invoice has not been booked and will <u>not</u> get a invoice number and the function return 0

 

 

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | **Related issues** |  |
> | --- | --- |