Jump to content

Obtener numero de factura siguiente


jsanchezh23

Recommended Posts

Estoy intentando añadirla alternativamente llamando a una funcion

 

 

classes/Message.php

 

public static function getOrderId(){

return Db::getInstance()->executeS('SELECT MAX(  `id_order` )
FROM  `ps_order_detail`');
}
 

como puedo llamar al valor si lo agrego de la siguiente forma 

 

 

 

<p>{$Message->getOrderId()|escape:'UTF-8'}</p>

me salta error, saben como puedo llamar al valor?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...