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

Fluent Support – Helpdesk &amp; Customer Support Ticket System, version trunk. 20 lines.

- Page: https://pluginprobe.com/plugins/fluent-support/trunk/code/app/Hooks/DataValidation/AccountingRestrictions.php
- Raw: https://pluginprobe.com/plugins/fluent-support/trunk/raw/app/Hooks/DataValidation/AccountingRestrictions.php
- Modified: 2026-02-05T14:04:40+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/trunk/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)
    {

    }

}

```
