cambios en generacion de numero referencia

parent e2487cee
......@@ -18,7 +18,12 @@ class McafeeTransaccion extends BaseMcafeeTransaccion
public function generarNroReferencia() {
$nroRef = 'GL_ES_SUS_'.$this->getUmcId().'_'.date('dmYHis');
$t = microtime(true);
$micro = sprintf("%06d",($t - floor($t)) * 1000000);
$d = new \DateTime( date('Y-m-d H:i:s.'.$micro, $t) );
$fechaString = $d->format("dmYHisu");
//$nroRef = 'GL_ES_SUS_'.$this->getUmcId().'_'.date('dmYHis');
$nroRef = 'GL_ES_SUS_'.$this->getUmcId().'_'.$fechaString;
$this->setMtrReferencia($nroRef);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment