1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/** |
4
|
|
|
* Entité Settings. |
5
|
|
|
* |
6
|
|
|
* PHP Version 5 |
7
|
|
|
* |
8
|
|
|
* @author Quétier Laurent <[email protected]> |
9
|
|
|
* @copyright 2014 Dev-Int GLSR |
10
|
|
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License |
11
|
|
|
* |
12
|
|
|
* @version GIT: <git_id> |
13
|
|
|
* |
14
|
|
|
* @link https://github.com/Dev-Int/glsr |
15
|
|
|
*/ |
16
|
|
|
namespace AppBundle\Entity\Settings; |
17
|
|
|
|
18
|
|
|
use Doctrine\ORM\Mapping as ORM; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* Settings Entité Settings. |
22
|
|
|
* |
23
|
|
|
* @category Entity |
24
|
|
|
* |
25
|
|
|
* @ORM\Table(name="gs_settings") |
26
|
|
|
* @ORM\Entity(repositoryClass="AppBundle\Repository\Settings\SettingsRepository") |
27
|
|
|
*/ |
28
|
|
|
class Settings |
29
|
|
|
{ |
30
|
|
|
/** |
31
|
|
|
* @var int Id de la configuration |
32
|
|
|
* |
33
|
|
|
* @ORM\Column(name="id", type="integer") |
34
|
|
|
* @ORM\Id |
35
|
|
|
* @ORM\GeneratedValue(strategy="AUTO") |
36
|
|
|
*/ |
37
|
|
|
private $id; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* @var string sort mode inventory |
41
|
|
|
* |
42
|
|
|
* @ORM\Column(name="inventory_style", type="string", length=50) |
43
|
|
|
*/ |
44
|
|
|
private $inventoryStyle; |
45
|
|
|
|
46
|
|
|
/** |
47
|
|
|
* @var string calculation of inventories and stocks |
48
|
|
|
* |
49
|
|
|
* @ORM\Column(name="calculation", type="string", length=50) |
50
|
|
|
*/ |
51
|
|
|
private $calculation; |
52
|
|
|
|
53
|
|
|
/** |
54
|
|
|
* @var string currency's choice |
55
|
|
|
* |
56
|
|
|
* @ORM\Column(name="currency", type="string", length=50) |
57
|
|
|
*/ |
58
|
|
|
private $currency; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* Get id. |
62
|
|
|
* |
63
|
|
|
* @return int |
64
|
|
|
*/ |
65
|
|
|
public function getId() |
66
|
|
|
{ |
67
|
|
|
return $this->id; |
68
|
|
|
} |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* Set inventoryStyle. |
72
|
|
|
* |
73
|
|
|
* @param string $inventoryStyle Style d'inventaire |
74
|
|
|
* |
75
|
|
|
* @return Settings |
76
|
|
|
*/ |
77
|
|
|
public function setInventoryStyle($inventoryStyle) |
78
|
|
|
{ |
79
|
|
|
/* |
80
|
|
|
* le mode de tri des inventaires : global, zonestorage |
81
|
|
|
*/ |
82
|
|
|
$this->inventoryStyle = $inventoryStyle; |
83
|
|
|
|
84
|
|
|
return $this; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Get inventory_style. |
89
|
|
|
* |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
|
|
public function getInventoryStyle() |
93
|
|
|
{ |
94
|
|
|
return $this->inventoryStyle; |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
/** |
98
|
|
|
* Set calculation. |
99
|
|
|
* |
100
|
|
|
* @param string $calculation Mode de calcul de l'inventaire |
101
|
|
|
* |
102
|
|
|
* @return Settings |
103
|
|
|
*/ |
104
|
|
|
public function setCalculation($calculation) |
105
|
|
|
{ |
106
|
|
|
$this->calculation = $calculation; |
107
|
|
|
|
108
|
|
|
return $this; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
/** |
112
|
|
|
* Get calculation. |
113
|
|
|
* |
114
|
|
|
* @return string |
115
|
|
|
*/ |
116
|
|
|
public function getCalculation() |
117
|
|
|
{ |
118
|
|
|
return $this->calculation; |
119
|
|
|
} |
120
|
|
|
|
121
|
|
|
/** |
122
|
|
|
* Set currency. |
123
|
|
|
* |
124
|
|
|
* @param string $currency Format monétaire de l'application |
125
|
|
|
* |
126
|
|
|
* @return Settings |
127
|
|
|
*/ |
128
|
|
|
public function setCurrency($currency) |
129
|
|
|
{ |
130
|
|
|
$this->currency = $currency; |
131
|
|
|
|
132
|
|
|
return $this; |
133
|
|
|
} |
134
|
|
|
|
135
|
|
|
/** |
136
|
|
|
* Get currency. |
137
|
|
|
* |
138
|
|
|
* @return string |
139
|
|
|
*/ |
140
|
|
|
public function getCurrency() |
141
|
|
|
{ |
142
|
|
|
return $this->currency; |
143
|
|
|
} |
144
|
|
|
} |
145
|
|
|
|