frais de festival
This commit is contained in:
parent
d555484769
commit
a6193371e5
|
@ -20,8 +20,8 @@
|
|||
{{ activeSelling.length }} produit<span ng-if="activeSelling.length>1">s</span>
|
||||
<input id="sellingComment" name="sellingComment" class="input input-lg" type="text" ng-model="sellingComment" placeholder="nom ou commentaire">
|
||||
<button class="btn btn-default" ng-click="clearSellingComment()">
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
<i class="fa fa-times"></i>
|
||||
</button>
|
||||
<hr>
|
||||
<ul>
|
||||
<li ng-repeat="p in activeSelling track by $index">
|
||||
|
|
|
@ -16,3 +16,10 @@ table {
|
|||
margin-right: 0.5em;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
label[required] {
|
||||
&:after {
|
||||
content: "*";
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ class ProductCategoryController extends Controller {
|
|||
*/
|
||||
public function editAction( Request $request, ProductCategory $productCategory ) {
|
||||
$deleteForm = $this->createDeleteForm( $productCategory );
|
||||
$productCategory->setUsers( [ $currentUser ] );
|
||||
$editForm = $this->createForm( 'AppBundle\Form\ProductCategoryType', $productCategory );
|
||||
$editForm->handleRequest( $request );
|
||||
|
||||
|
|
|
@ -65,6 +65,22 @@ class Festival {
|
|||
* @ORM\Column(name="chiffre_affaire", type="float")
|
||||
*/
|
||||
private $chiffreAffaire;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisInscription;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisHebergement;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisTransport;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisRepas;
|
||||
|
||||
|
||||
public function recalculateChiffreAffaire() {
|
||||
|
@ -270,4 +286,92 @@ class Festival {
|
|||
public function getChiffreAffaire() {
|
||||
return $this->chiffreAffaire;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisInscription.
|
||||
*
|
||||
* @param string|null $fraisInscription
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisInscription( $fraisInscription = null ) {
|
||||
$this->fraisInscription = $fraisInscription;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisInscription.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisInscription() {
|
||||
return $this->fraisInscription;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisHebergement.
|
||||
*
|
||||
* @param string|null $fraisHebergement
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisHebergement( $fraisHebergement = null ) {
|
||||
$this->fraisHebergement = $fraisHebergement;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisHebergement.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisHebergement() {
|
||||
return $this->fraisHebergement;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisTransport.
|
||||
*
|
||||
* @param string|null $fraisTransport
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisTransport( $fraisTransport = null ) {
|
||||
$this->fraisTransport = $fraisTransport;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisTransport.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisTransport() {
|
||||
return $this->fraisTransport;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set fraisRepas.
|
||||
*
|
||||
* @param string|null $fraisRepas
|
||||
*
|
||||
* @return Festival
|
||||
*/
|
||||
public function setFraisRepas( $fraisRepas = null ) {
|
||||
$this->fraisRepas = $fraisRepas;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get fraisRepas.
|
||||
*
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFraisRepas() {
|
||||
return $this->fraisRepas;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,6 +65,22 @@ class Festival {
|
|||
* @ORM\Column(name="chiffre_affaire", type="float")
|
||||
*/
|
||||
private $chiffreAffaire;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisInscription;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisHebergement;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisTransport;
|
||||
/**
|
||||
* @ORM\Column(type="decimal", scale=2, nullable=true)
|
||||
*/
|
||||
private $fraisRepas;
|
||||
|
||||
|
||||
public function recalculateChiffreAffaire() {
|
||||
|
|
|
@ -13,6 +13,10 @@ class FestivalType extends AbstractType {
|
|||
public function buildForm( FormBuilderInterface $builder, array $options ) {
|
||||
$builder
|
||||
->add( 'name' )
|
||||
->add( 'fraisInscription' )
|
||||
->add( 'fraisTransport' )
|
||||
->add( 'fraisHebergement' )
|
||||
->add( 'fraisRepas' )
|
||||
->add( 'chiffreAffaire' )
|
||||
->add( 'fondDeCaisseAvant' )
|
||||
->add( 'fondDeCaisseApres' )
|
||||
|
|
|
@ -18,8 +18,8 @@ class ProductType extends AbstractType {
|
|||
->add( 'stockCount' )
|
||||
->add( 'price' )
|
||||
->add( 'comment' )
|
||||
->add( 'category' )
|
||||
->add( 'user' );
|
||||
->add( 'category' )// ->add( 'user' )
|
||||
;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -6,31 +6,29 @@ use Symfony\Component\Form\AbstractType;
|
|||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
class SellRecordType extends AbstractType
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function buildForm(FormBuilderInterface $builder, array $options)
|
||||
{
|
||||
$builder->add('products');
|
||||
}/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function configureOptions(OptionsResolver $resolver)
|
||||
{
|
||||
$resolver->setDefaults(array(
|
||||
'data_class' => 'AppBundle\Entity\SellRecord'
|
||||
));
|
||||
}
|
||||
class SellRecordType extends AbstractType {
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function buildForm( FormBuilderInterface $builder, array $options ) {
|
||||
$builder->add( 'products' );
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getBlockPrefix()
|
||||
{
|
||||
return 'appbundle_sellrecord';
|
||||
}
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function configureOptions( OptionsResolver $resolver ) {
|
||||
$resolver->setDefaults( [
|
||||
'data_class' => 'AppBundle\Entity\SellRecord',
|
||||
] );
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function getBlockPrefix() {
|
||||
return 'appbundle_sellrecord';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue