@ -1135,6 +1135,9 @@ class BuyCoursesPlugin extends Plugin
*/
public function getNumInvoice($saleId, $isService) {
$dataInvoice = $this->getDataInvoice($saleId, $isService);
if (empty($dataInvoice)) {
return '-';
}
return $dataInvoice['serie'].$dataInvoice['year'].'/'.$dataInvoice['num_invoice'];
@ -1,13 +1,11 @@
<?php
/* For license terms, see /license.txt */
use Chamilo\CoreBundle\Component\Utils\ChamiloApi;
/**
* Print invoice of the Buy Courses plugin.
*
* @package chamilo.plugin.buycourses
$cidReset = true;
require_once '../config.php';