Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from giansalex/f002
Support Summary V2
- Loading branch information
Showing
10 changed files
with
804 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,365 @@ | ||
<?php | ||
/** | ||
* Created by PhpStorm. | ||
* User: Admi | ||
* nistrador | ||
* Date: 04/10/2017 | ||
* Time: 12:10 PM | ||
*/ | ||
|
||
namespace Greenter\Model\Summary; | ||
|
||
use Greenter\Model\Sale\Document; | ||
use Greenter\Xml\Validator\SummaryDetailV2Validator; | ||
use Symfony\Component\Validator\Constraints as Assert; | ||
|
||
/** | ||
* Class SummaryDetailV2 | ||
* @package Greenter\Model\Summary | ||
*/ | ||
class SummaryDetailV2 | ||
{ | ||
use SummaryDetailV2Validator; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @Assert\Length(min="2", max="2") | ||
* @var string | ||
*/ | ||
private $tipoDoc; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @Assert\Length(max="13") | ||
* @var string | ||
*/ | ||
private $serieNro; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @Assert\Length(max="1") | ||
* @var string | ||
*/ | ||
private $clienteTipo; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @Assert\Length(max="20") | ||
* @var string | ||
*/ | ||
private $clienteNro; | ||
|
||
/** | ||
* Boleta de Venta que se modifica. | ||
* | ||
* @Assert\Valid() | ||
* @var Document | ||
*/ | ||
private $docReferencia; | ||
|
||
/** | ||
* Estado del item (catalog: 19). | ||
* | ||
* @Assert\NotBlank() | ||
* @Assert\Length(max="1") | ||
* @var string | ||
*/ | ||
private $estado; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @var float | ||
*/ | ||
private $total; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @var float | ||
*/ | ||
private $mtoOperGravadas; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @var float | ||
*/ | ||
private $mtoOperInafectas; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @var float | ||
*/ | ||
private $mtoOperExoneradas; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
private $mtoDescuentos; | ||
|
||
/** | ||
* @Assert\NotBlank() | ||
* @var float | ||
*/ | ||
private $mtoIGV; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
private $mtoISC; | ||
|
||
/** | ||
* @var float | ||
*/ | ||
private $mtoOtrosTributos; | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getTipoDoc() | ||
{ | ||
return $this->tipoDoc; | ||
} | ||
|
||
/** | ||
* @param string $tipoDoc | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setTipoDoc($tipoDoc) | ||
{ | ||
$this->tipoDoc = $tipoDoc; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getSerieNro() | ||
{ | ||
return $this->serieNro; | ||
} | ||
|
||
/** | ||
* @param string $serieNro | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setSerieNro($serieNro) | ||
{ | ||
$this->serieNro = $serieNro; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getClienteTipo() | ||
{ | ||
return $this->clienteTipo; | ||
} | ||
|
||
/** | ||
* @param string $clienteTipo | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setClienteTipo($clienteTipo) | ||
{ | ||
$this->clienteTipo = $clienteTipo; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getClienteNro() | ||
{ | ||
return $this->clienteNro; | ||
} | ||
|
||
/** | ||
* @param string $clienteNro | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setClienteNro($clienteNro) | ||
{ | ||
$this->clienteNro = $clienteNro; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return Document | ||
*/ | ||
public function getDocReferencia() | ||
{ | ||
return $this->docReferencia; | ||
} | ||
|
||
/** | ||
* @param Document $docReferencia | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setDocReferencia($docReferencia) | ||
{ | ||
$this->docReferencia = $docReferencia; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getEstado() | ||
{ | ||
return $this->estado; | ||
} | ||
|
||
/** | ||
* @param string $estado | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setEstado($estado) | ||
{ | ||
$this->estado = $estado; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getTotal() | ||
{ | ||
return $this->total; | ||
} | ||
|
||
/** | ||
* @param float $total | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setTotal($total) | ||
{ | ||
$this->total = $total; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoOperGravadas() | ||
{ | ||
return $this->mtoOperGravadas; | ||
} | ||
|
||
/** | ||
* @param float $mtoOperGravadas | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoOperGravadas($mtoOperGravadas) | ||
{ | ||
$this->mtoOperGravadas = $mtoOperGravadas; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoOperInafectas() | ||
{ | ||
return $this->mtoOperInafectas; | ||
} | ||
|
||
/** | ||
* @param float $mtoOperInafectas | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoOperInafectas($mtoOperInafectas) | ||
{ | ||
$this->mtoOperInafectas = $mtoOperInafectas; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoOperExoneradas() | ||
{ | ||
return $this->mtoOperExoneradas; | ||
} | ||
|
||
/** | ||
* @param float $mtoOperExoneradas | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoOperExoneradas($mtoOperExoneradas) | ||
{ | ||
$this->mtoOperExoneradas = $mtoOperExoneradas; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoDescuentos() | ||
{ | ||
return $this->mtoDescuentos; | ||
} | ||
|
||
/** | ||
* @param float $mtoDescuentos | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoDescuentos($mtoDescuentos) | ||
{ | ||
$this->mtoDescuentos = $mtoDescuentos; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoIGV() | ||
{ | ||
return $this->mtoIGV; | ||
} | ||
|
||
/** | ||
* @param float $mtoIGV | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoIGV($mtoIGV) | ||
{ | ||
$this->mtoIGV = $mtoIGV; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoISC() | ||
{ | ||
return $this->mtoISC; | ||
} | ||
|
||
/** | ||
* @param float $mtoISC | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoISC($mtoISC) | ||
{ | ||
$this->mtoISC = $mtoISC; | ||
return $this; | ||
} | ||
|
||
/** | ||
* @return float | ||
*/ | ||
public function getMtoOtrosTributos() | ||
{ | ||
return $this->mtoOtrosTributos; | ||
} | ||
|
||
/** | ||
* @param float $mtoOtrosTributos | ||
* @return SummaryDetailV2 | ||
*/ | ||
public function setMtoOtrosTributos($mtoOtrosTributos) | ||
{ | ||
$this->mtoOtrosTributos = $mtoOtrosTributos; | ||
return $this; | ||
} | ||
} |
Oops, something went wrong.