diff --git a/app/Resources/views/logged/angular/current.html.twig b/app/Resources/views/logged/angular/current.html.twig index ae5d4500..a4998456 100644 --- a/app/Resources/views/logged/angular/current.html.twig +++ b/app/Resources/views/logged/angular/current.html.twig @@ -31,13 +31,27 @@
"; + var_dump( $_POST ); + + echo ""; + + return var_dump( $request->request ); +// return new JsonResponse( [ +// "message" => "ok", +// "recent_sellings" => [], +// "dump" => $request->request->get( 'sellingComment' ), +// "dump2" => $request->getMethod(), +// "dump3" => $request->request->get( 'data' ), +// ] ); } } diff --git a/src/AppBundle/Entity/SellRecord.php b/src/AppBundle/Entity/SellRecord.php index 23673be1..166681d7 100644 --- a/src/AppBundle/Entity/SellRecord.php +++ b/src/AppBundle/Entity/SellRecord.php @@ -32,9 +32,14 @@ class SellRecord { /** * total - * @ORM\Column(type="decimal", scale=2, nullable=true) + * @ORM\Column(type="decimal", scale=2, nullable=false) */ private $amount; + /** + * amount paid by client + * @ORM\Column(type="decimal", scale=2, nullable=true) + */ + private $paidByClient; /** * @var @@ -49,6 +54,20 @@ class SellRecord { private $user; + /** + * @return mixed + */ + public function getPaidByClient() { + return $this->paidByClient; + } + + /** + * @param mixed $paidByClient + */ + public function setPaidByClient( $paidByClient ) { + $this->paidByClient = $paidByClient; + } + /** * @return mixed */