<?php

namespace App\Models\StockManagement;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Sushi\Sushi;

class DemandType extends Model{
    use HasFactory,Sushi;

    const FK_ID = "type";
    const CREDIT = 1;
    const DEBIT = 2;

    protected $rows = [
        [
            //"id" => self::CREDIT,
            "name" => "M - M" ,
            "description" => "Demande de produits d'un magasin dans un autre magasin",
            "sender_type" => WareHouseType::STORE,
            "receiver_type" => WareHouseType::STORE,
        ],

        [
           // "id" => self::CREDIT,
            "name" => "PV - M" ,
            "description" => "Demande de produits d'un magasin dans un point de vente",
            "sender_type" => WareHouseType::POINT_OF_SALE,
            "receiver_type" => WareHouseType::STORE,
        ],
    ];



    //GETTERS
    public function getNameAttribute($value){
        return __($value);
    }

    public function getDescriptionAttribute($value){
        return __($value);
    }
}
