Fix travis
This commit is contained in:
parent
22c253cfc1
commit
b171975d18
@ -2335,8 +2335,12 @@ class Facture extends CommonInvoice
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Update_percent
|
||||||
|
*
|
||||||
* @param FactureLigne $line Invoice line
|
* @param FactureLigne $line Invoice line
|
||||||
* @param int $percent
|
* @param int $percent
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
function update_percent($line, $percent)
|
function update_percent($line, $percent)
|
||||||
{
|
{
|
||||||
@ -2545,9 +2549,9 @@ class Facture extends CommonInvoice
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return amount (with tax) of all credit notes and deposits invoices used by invoice
|
* Return amount (with tax) of all credit notes and deposits invoices used by invoice
|
||||||
*
|
*
|
||||||
* @return int <0 if KO, Sum of credit notes and deposits amount otherwise
|
* @return int <0 if KO, Sum of credit notes and deposits amount otherwise
|
||||||
*/
|
*/
|
||||||
function getSumCreditNotesUsed()
|
function getSumCreditNotesUsed()
|
||||||
{
|
{
|
||||||
@ -2567,9 +2571,9 @@ class Facture extends CommonInvoice
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return amount (with tax) of all deposits invoices used by invoice
|
* Return amount (with tax) of all deposits invoices used by invoice
|
||||||
*
|
*
|
||||||
* @return int <0 if KO, Sum of deposits amount otherwise
|
* @return int <0 if KO, Sum of deposits amount otherwise
|
||||||
*/
|
*/
|
||||||
function getSumDepositsUsed()
|
function getSumDepositsUsed()
|
||||||
{
|
{
|
||||||
@ -3460,6 +3464,7 @@ class Facture extends CommonInvoice
|
|||||||
/**
|
/**
|
||||||
* Returns an array containing the previous situations as Facture objects
|
* Returns an array containing the previous situations as Facture objects
|
||||||
*
|
*
|
||||||
|
* @return array array of prev_sits
|
||||||
*/
|
*/
|
||||||
function get_prev_sits()
|
function get_prev_sits()
|
||||||
{
|
{
|
||||||
@ -3514,7 +3519,6 @@ class Facture extends CommonInvoice
|
|||||||
* @return int 0 or 1 if OK, -1 if error
|
* @return int 0 or 1 if OK, -1 if error
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function is_last_in_cycle()
|
function is_last_in_cycle()
|
||||||
{
|
{
|
||||||
$sql = 'SELECT max(situation_counter) FROM ' . MAIN_DB_PREFIX . 'facture WHERE situation_cycle_ref = ' . $this->situation_cycle_ref;
|
$sql = 'SELECT max(situation_counter) FROM ' . MAIN_DB_PREFIX . 'facture WHERE situation_cycle_ref = ' . $this->situation_cycle_ref;
|
||||||
@ -4096,7 +4100,6 @@ class FactureLigne extends CommonInvoiceLine
|
|||||||
*
|
*
|
||||||
* @return int >= 0
|
* @return int >= 0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function get_prev_progress()
|
function get_prev_progress()
|
||||||
{
|
{
|
||||||
if (is_null($this->fk_prev_id) || empty($this->fk_prev_id) || $this->fk_prev_id == "") {
|
if (is_null($this->fk_prev_id) || empty($this->fk_prev_id) || $this->fk_prev_id == "") {
|
||||||
|
|||||||
@ -2666,7 +2666,7 @@ class Form
|
|||||||
*
|
*
|
||||||
* @return string HTML select
|
* @return string HTML select
|
||||||
*/
|
*/
|
||||||
function load_situation_invoices($selected = '', $socid)
|
function load_situation_invoices($selected = '', $socid=null)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $langs;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user