---
title: "GetCustomerItemDiscounts"
canonical: "https://docs.dk.is/space/DEV/10355012/GetCustomerItemDiscounts"
format: markdown
---
This function is used to return a [TInvoice](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355773) that has all the calculated prices based on discount rules defined in the dkSystem

Example of rules that do apply are

- special offers
- [TItem](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355270) discount
- [TCustomer](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355262) discount
- Contract prices
- Quanity based pricing
- Others....

## Parameters

Used to call the function

1. inv - [TInvoice](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355773)

## Returns

Returns the following

- [TInvoice](https://dkdocs.atlassian.net/wiki/spaces/DEV/pages/10355773)

 

## Related articles



> Macro (contentbylabel)

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