# Exports

## Client Exports

<details>

<summary>GetBills</summary>

This export can be used to obtain all pending bills that a user has

```lua
exports['origen_masterjob']:GetBills()
```

</details>

<details>

<summary>ShowBills</summary>

This export can be used in case you want to open the invoice menu externally

```lua
exports['origen_masterjob']:ShowBills()
```

</details>

***

## Server Exports

<details>

<summary>GetBusiness</summary>

This export can be used to obtain the information of a specific business through its id

```lua
exports['origen_masterjob']:GetBusiness(businessId)
```

</details>

<details>

<summary>GetBusinesses</summary>

This export can be used to obtain the list of all businesses and their respective information

```lua
exports['origen_masterjob']:GetBusinesses()
```

</details>

<details>

<summary>GetEmployeesOnDuty</summary>

This export can be used to obtain the list of employees on duty at a business using its id

```lua
exports['origen_masterjob']:GetEmployeesOnDuty(businessId)
```

</details>

<details>

<summary>GetBusinessMoney</summary>

This export can be used to obtain the amount of money in a business's fund using its id

```
exports['origen_masterjob']:GetBusinessMoney(businessId)
```

</details>

<details>

<summary>AddBusinessMoney</summary>

This export can be used to add money to the business's fund using its id and the desired amount to add

```lua
exports['origen_masterjob']:AddBusinessMoney(businessId, amountToAdd)
```

</details>

<details>

<summary>RemoveBusinessMoney</summary>

This export can be used to remove money from the business's fund using its id and the desired amount to remove

```lua
exports['origen_masterjob']:RemoveBusinessMoney(businessId, amountToRemove)
```

</details>
