Files
opensourcepos/app/Models/Tokens/Token_suspended_invoice_count.php
objecttothis e90b5b87da Replace tabs with spaces (#4196)
Signed-off-by: objecttothis <objecttothis@gmail.com>
2025-03-28 21:24:21 +04:00

37 lines
552 B
PHP

<?php
namespace App\Models\Tokens;
use App\Models\Sale;
/**
* Token_suspended_invoice_count class
*
* @property sale sale
*
*/
class Token_suspended_invoice_count extends Token
{
public function __construct()
{
parent::__construct();
}
/**
* @return string
*/
public function token_id(): string
{
return 'SCO';
}
/**
* @return int
*/
public function get_value(): int
{
$sale = model(Sale::class);
return $sale->get_suspended_invoice_count();
}
}