@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | */ |
| 291 | 291 | public function printAction(Inventory $inventory) |
| 292 | 292 | { |
| 293 | - $file = $inventory->getDate()->format('Ymd') . '-inventory.pdf'; |
|
| 293 | + $file = $inventory->getDate()->format('Ymd').'-inventory.pdf'; |
|
| 294 | 294 | // Créer et enregistrer le fichier PDF à imprimer |
| 295 | 295 | $html = $this->renderView( |
| 296 | 296 | 'AppBundle:Inventory:print.pdf.twig', |
@@ -307,7 +307,7 @@ discard block |
||
| 307 | 307 | 200, |
| 308 | 308 | array( |
| 309 | 309 | 'Content-Type' => 'application/pdf', |
| 310 | - 'Content-Disposition' => 'attachment; filename="' . $file . '"' |
|
| 310 | + 'Content-Disposition' => 'attachment; filename="'.$file.'"' |
|
| 311 | 311 | ) |
| 312 | 312 | ); |
| 313 | 313 | } |
@@ -14,18 +14,17 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | -use Symfony\Component\HttpFoundation\Response; |
|
| 19 | 17 | use AppBundle\Controller\AbstractController; |
| 20 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 21 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 22 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 23 | - |
|
| 24 | 18 | use AppBundle\Entity\Inventory; |
| 25 | -use AppBundle\Form\Type\InventoryType; |
|
| 26 | 19 | use AppBundle\Entity\InventoryArticles; |
| 27 | 20 | use AppBundle\Form\Type\InventoryEditType; |
| 21 | +use AppBundle\Form\Type\InventoryType; |
|
| 28 | 22 | use AppBundle\Form\Type\InventoryValidType; |
| 23 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 24 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 25 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 26 | +use Symfony\Component\HttpFoundation\Request; |
|
| 27 | +use Symfony\Component\HttpFoundation\Response; |
|
| 29 | 28 | |
| 30 | 29 | /** |
| 31 | 30 | * Inventory controller. |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Get inventory |
| 91 | 91 | * |
| 92 | - * @return string |
|
| 92 | + * @return Inventory |
|
| 93 | 93 | */ |
| 94 | 94 | public function getInventory() |
| 95 | 95 | { |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | /** |
| 113 | 113 | * Get article |
| 114 | 114 | * |
| 115 | - * @return string |
|
| 115 | + * @return Article |
|
| 116 | 116 | */ |
| 117 | 117 | public function getArticle() |
| 118 | 118 | { |
@@ -204,7 +204,7 @@ discard block |
||
| 204 | 204 | /** |
| 205 | 205 | * Get unit_storage |
| 206 | 206 | * |
| 207 | - * @return \AppBundle\Entity\UnitStorage |
|
| 207 | + * @return string |
|
| 208 | 208 | */ |
| 209 | 209 | public function getUnitStorage() |
| 210 | 210 | { |
@@ -14,15 +14,15 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 19 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 20 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 21 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 22 | 18 | use AppBundle\Entity\Article; |
| 23 | 19 | use AppBundle\Entity\Supplier; |
| 24 | -use AppBundle\Form\Type\ArticleType; |
|
| 25 | 20 | use AppBundle\Form\Type\ArticleReassignType; |
| 21 | +use AppBundle\Form\Type\ArticleType; |
|
| 22 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
|
| 23 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
|
| 24 | +use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
| 25 | +use Symfony\Component\HttpFoundation\Request; |
|
| 26 | 26 | |
| 27 | 27 | /** |
| 28 | 28 | * Article controller. |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Settings\Divers; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 18 | +use AppBundle\Entity\FamilyLog; |
|
| 19 | +use AppBundle\Form\Type\FamilyLogType; |
|
| 19 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 20 | 21 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 21 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 22 | -use AppBundle\Entity\FamilyLog; |
|
| 23 | -use AppBundle\Form\Type\FamilyLogType; |
|
| 23 | +use Symfony\Component\HttpFoundation\Request; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * FamilyLog controller. |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Settings\Divers; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 18 | +use AppBundle\Entity\Tva; |
|
| 19 | +use AppBundle\Form\Type\TvaType; |
|
| 19 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 20 | 21 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 21 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 22 | -use AppBundle\Entity\Tva; |
|
| 23 | -use AppBundle\Form\Type\TvaType; |
|
| 23 | +use Symfony\Component\HttpFoundation\Request; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Tva controller. |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Settings\Divers; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 18 | +use AppBundle\Entity\UnitStorage; |
|
| 19 | +use AppBundle\Form\Type\UnitStorageType; |
|
| 19 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 20 | 21 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 21 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 22 | -use AppBundle\Entity\UnitStorage; |
|
| 23 | -use AppBundle\Form\Type\UnitStorageType; |
|
| 23 | +use Symfony\Component\HttpFoundation\Request; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * UnitStorage controller. |
@@ -14,13 +14,13 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Controller\Settings\Divers; |
| 16 | 16 | |
| 17 | -use Symfony\Component\HttpFoundation\Request; |
|
| 18 | 17 | use AppBundle\Controller\AbstractController; |
| 18 | +use AppBundle\Entity\ZoneStorage; |
|
| 19 | +use AppBundle\Form\Type\ZoneStorageType; |
|
| 19 | 20 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 20 | 21 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 21 | 22 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
| 22 | -use AppBundle\Entity\ZoneStorage; |
|
| 23 | -use AppBundle\Form\Type\ZoneStorageType; |
|
| 23 | +use Symfony\Component\HttpFoundation\Request; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * ZoneStorage controller. |
@@ -14,8 +14,8 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Entity; |
| 16 | 16 | |
| 17 | -use FOS\UserBundle\Model\Group as BaseGroup; |
|
| 18 | 17 | use Doctrine\ORM\Mapping as ORM; |
| 18 | +use FOS\UserBundle\Model\Group as BaseGroup; |
|
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | 21 | * Entité Group. |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | /** |
| 153 | 153 | * Get amount |
| 154 | 154 | * |
| 155 | - * @return string |
|
| 155 | + * @return double |
|
| 156 | 156 | */ |
| 157 | 157 | public function getAmount() |
| 158 | 158 | { |
@@ -14,9 +14,9 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | namespace AppBundle\Entity; |
| 16 | 16 | |
| 17 | -use Doctrine\ORM\Mapping as ORM; |
|
| 18 | -use Doctrine\Common\Collections\ArrayCollection; |
|
| 19 | 17 | use AppBundle\Entity\InventoryArticles; |
| 18 | +use Doctrine\Common\Collections\ArrayCollection; |
|
| 19 | +use Doctrine\ORM\Mapping as ORM; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * Inventory |