# fluent-support/1.4.0/app/Hooks/DataValidation/AccountingRestrictions.php

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version 1.4.0. 24 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/1.4.0/code/app/Hooks/DataValidation/AccountingRestrictions.php
- Raw: https://pluginprobe.com/plugins/fluent-support/1.4.0/raw/app/Hooks/DataValidation/AccountingRestrictions.php
- Modified: 2021-11-12T14:57:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-support/1.4.0/code/app/Hooks/DataValidation/AccountingRestrictions.php#L10-L20`.

```php
<?php

namespace FluentSupport\App\Hooks\DataValidation;

use FluentSupport\Framework\Support\Arr;

class AccountingRestrictions
{
    public function register()
    {
        add_action('ninja_erp/before_add_payment', array($this, 'validateNewPayment'), 10, 1);
    }

    public function validateNewPayment($payment)
    {

    }

    private function handleError($message)
    {

    }
}

```
