resq/src/Entity/PromoLog.php
2021-05-27 04:39:29 +00:00

169 lines
2.9 KiB
PHP

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use DateTime;
/**
* @ORM\Entity
* @ORM\Table(name="promo_log")
*/
class PromoLog
{
// unique id
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
// date created
/**
* @ORM\Column(type="datetime")
*/
protected $date_create;
// user that created the JO
/**
* @ORM\Column(type="string", length=80)
*/
protected $created_by;
// customer id
/**
* @ORM\Column(type="integer")
*/
protected $cust_id;
// customer first name
/**
* @ORM\Column(type="string", length=80)
*/
protected $cust_first_name;
// customer last name
/**
* @ORM\Column(type="string", length=80)
*/
protected $cust_last_name;
// job order id
/**
* @ORM\Column(type="integer")
*/
protected $jo_id;
// invoice id
/**
* @ORM\Column(type="integer")
*/
protected $invoice_id;
// total amount
/**
* @ORM\Column(type="decimal", precision=9, scale=2)
*/
protected $amount;
public function __construct()
{
$this->date_create = new DateTime();
}
public function getID()
{
return $this->id;
}
public function setDateCreate(DateTime $date_create)
{
$this->date_create = $date_create;
return $this;
}
public function getDateCreate()
{
return $this->date_create;
}
public function setCreatedBy($created_by)
{
$this->created_by = $created_by;
return $this;
}
public function getCreatedBy()
{
return $this->created_by;
}
public function setCustId($cust_id)
{
$this->cust_id = $cust_id;
return $this;
}
public function getCustId()
{
return $this->cust_id;
}
public function setCustFirstName($cust_first_name)
{
$this->cust_first_name = $cust_first_name;
return $this;
}
public function getCustFirstName()
{
return $this->cust_first_name;
}
public function setCustLastName($cust_last_name)
{
$this->cust_last_name = $cust_last_name;
return $this;
}
public function getCustLastName()
{
return $this->cust_last_name;
}
public function setJoId($jo_id)
{
$this->jo_id = $jo_id;
return $this;
}
public function getJoId()
{
return $this->jo_id;
}
public function setInvoiceId($invoice_id)
{
$this->invoice_id = $invoice_id;
return $this;
}
public function getInvoiceId()
{
return $this->invoice_id;
}
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
public function getAmount()
{
return $this->amount;
}
}