<?php

namespace App\Http\Helpers;

class CashMovementHelper
{
    public static function changeReceiptNumber($cash)
    {
        return isset($cash->CashMovement_CardNumber) &&
            $cash->CashMovement_CardNumber != '' &&
            $cash->CashMovement_CardNumber != '-' &&
            $cash->CashMovement_CardNumber != '---' ?
            $cash->CashMovement_CardNumber :
            $cash->CashMovement_ReceiptNumber;
    }
}
