for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace NFePHP\EFD\Elements\ICMSIPI;
use NFePHP\EFD\Common\Element;
use NFePHP\EFD\Common\ElementInterface;
use \stdClass;
class K260 extends Element implements ElementInterface
{
const REG = 'K260';
const LEVEL = 3;
const PARENT = 'K100';
protected $parameters = [
'COD_OP_OS' => [
'type' => 'string',
'regex' => '^.{1,30}$',
'required' => false,
'info' => 'Código de identificação da ordem de produção',
'format' => ''
],
'COD_ITEM' => [
'regex' => '^.{1,60}$',
'required' => true,
'info' => 'Código do item (campo 02 do Registro 0200)',
'DT_SAIDA' => [
'regex' => '^(0[1-9]|[1-2][0-9]|31(?!(?:0[2469]|11))|30(?!02))(0[1-9]|1[0-2])([12]\d{3})$',
'info' => 'Data de saída do estoque',
'QTD_SAIDA' => [
'type' => 'numeric',
'regex' => '^\d+(\.\d*)?|\.\d+$',
'info' => 'Quantidade de saída do estoque',
'format' => '15v3'
'DT_RET' => [
'info' => 'Data de retorno ao estoque (entrada)',
'QTD_RET' => [
'info' => 'Quantidade de retorno ao estoque (entrada)',
]
];
/**
* Constructor
* @param \stdClass $std
*/
public function __construct(\stdClass $std)
parent::__construct(self::REG);
$this->std = $this->standarize($std);
}