Declared attribute salary in class Salary
This commit is contained in:
parent
2f4a775939
commit
7d02cdeb62
@ -232,7 +232,7 @@ if ($action == 'add' && empty($cancel)) {
|
|||||||
// Set user current salary as ref salary for the payment
|
// Set user current salary as ref salary for the payment
|
||||||
$fuser = new User($db);
|
$fuser = new User($db);
|
||||||
$fuser->fetch(GETPOST("fk_user", "int"));
|
$fuser->fetch(GETPOST("fk_user", "int"));
|
||||||
$object->amount = $fuser->salary;
|
$object->salary = $fuser->salary;
|
||||||
|
|
||||||
// Fill array 'array_options' with data from add form
|
// Fill array 'array_options' with data from add form
|
||||||
$ret = $extrafields->setOptionalsFromPost(null, $object);
|
$ret = $extrafields->setOptionalsFromPost(null, $object);
|
||||||
|
|||||||
@ -56,8 +56,9 @@ class Salary extends CommonObject
|
|||||||
|
|
||||||
public $datep;
|
public $datep;
|
||||||
public $datev;
|
public $datev;
|
||||||
public $amount;
|
|
||||||
|
|
||||||
|
public $salary;
|
||||||
|
public $amount;
|
||||||
/**
|
/**
|
||||||
* @var int ID
|
* @var int ID
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user