Browse Source

Paramètres producteur : ajout des options liées à la facturation

#156
dev
Guillaume Bourgeois 5 years ago
parent
commit
87c8c28495
2 changed files with 18 additions and 4 deletions
  1. +17
    -3
      backend/views/producer/update.php
  2. +1
    -1
      backend/web/js/vuejs/producer-update.js

+ 17
- 3
backend/views/producer/update.php View File

@@ -245,16 +245,30 @@ $this->addBreadcrumb($this->getTitle()) ;
<?= $form->field($model, 'tiller_restaurant_token') ; ?>
</div>
</div>
<div v-show="currentSection == 'facturation'" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Informations de facturation</h3>
<h3 class="panel-title">Facturation</h3>
</div>
<div class="panel-body">
<?= $form->field($model, 'id_tax_rate_default')
->dropDownList(ArrayHelper::map(TaxRate::find()->all(), 'id', function($model) { return $model->name; }))
->label('TVA à appliquer par défaut');; ?>

<?= $form->field($model, 'document_quotation_prefix') ; ?>
<?= $form->field($model, 'document_quotation_first_reference') ; ?>
<?= $form->field($model, 'document_quotation_duration') ; ?>
<?= $form->field($model, 'document_invoice_prefix') ; ?>
<?= $form->field($model, 'document_invoice_first_reference') ; ?>
<?= $form->field($model, 'document_delivery_note_prefix') ; ?>
<?= $form->field($model, 'document_delivery_note_first_reference') ; ?>
<?= $form->field($model, 'document_infos_bottom')
->textarea(['rows' => 15]) ?>
<?= $form->field($model, 'document_infos_quotation')
->textarea(['rows' => 15]) ?>
<?= $form->field($model, 'document_infos_invoice')
->textarea(['rows' => 15]) ?>
<?= $form->field($model, 'document_infos_delivery_note')
->textarea(['rows' => 15]) ?>
</div>
</div>

+ 1
- 1
backend/web/js/vuejs/producer-update.js View File

@@ -66,7 +66,7 @@ var app = new Vue({
},
{
name: 'facturation',
nameDisplay: 'Informations de facturation'
nameDisplay: 'Facturation'
}
]
},

Loading…
Cancel
Save