Quellcode durchsuchen

Merge branch 'dev'

master
Guillaume Bourgeois vor 5 Jahren
Ursprung
Commit
7df4309f1a
11 geänderte Dateien mit 20 neuen und 15 gelöschten Zeilen
  1. +2
    -2
      backend/views/distribution/report.php
  2. +1
    -1
      backend/views/producer/billing.php
  3. +1
    -1
      backend/views/producer/update.php
  4. +1
    -0
      backend/views/product/index.php
  5. +9
    -5
      backend/web/js/lechatdesnoisettes.js
  6. +1
    -1
      common/models/ProductSearch.php
  7. +1
    -1
      console/config/params.php
  8. +1
    -1
      frontend/config/params.php
  9. +1
    -1
      producer/components/ProducerView.php
  10. +1
    -1
      producer/components/UrlManagerProducer.php
  11. +1
    -1
      producer/views/layouts/main.php

+ 2
- 2
backend/views/distribution/report.php Datei anzeigen

@@ -46,7 +46,7 @@ $html = '' ;

// par point de vente
foreach ($pointsSaleArray as $pointSale) {
if (count($pointSale->orders) && strlen($pointSale->$fieldInfosPointSale)) {
if (count($pointSale->orders)) {
$html .= '<h3>'.$pointSale->name.'</h3>' ;
$colCredit = ($pointSale->credit) ? '<th>Rappel crédit</th>' : '' ;
@@ -167,7 +167,7 @@ $html .= '<table class="table table-bordered">'
$revenues = 0 ;
foreach ($pointsSaleArray as $pointSale)
{
if (count($pointSale->orders) && strlen($pointSale->$fieldInfosPointSale))
if (count($pointSale->orders))
{
$html .= '<tr><td>'.$pointSale->name.'</td><td>' ;
foreach ($productsArray as $product) {

+ 1
- 1
backend/views/producer/billing.php Datei anzeigen

@@ -3,7 +3,7 @@
/**
Copyright La boîte à pain (2018)

contact@laboiteapain.net
contact@opendistrib.net

Ce logiciel est un programme informatique servant à aider les producteurs
à distribuer leur production en circuits courts.

+ 1
- 1
backend/views/producer/update.php Datei anzeigen

@@ -3,7 +3,7 @@
/**
Copyright La boîte à pain (2018)

contact@laboiteapain.net
contact@opendistrib.net

Ce logiciel est un programme informatique servant à aider les producteurs
à distribuer leur production en circuits courts.

+ 1
- 0
backend/views/product/index.php Datei anzeigen

@@ -46,6 +46,7 @@ $this->addButton(['label' => 'Nouveau produit <span class="glyphicon glyphicon-p

?>

<span style="display: none;" id="page-size"><?= $dataProvider->pagination->pageSize; ?></span>
<div class="product-index">
<?= GridView::widget([
'filterModel' => $searchModel,

+ 9
- 5
backend/web/js/lechatdesnoisettes.js Datei anzeigen

@@ -637,18 +637,22 @@ function chat_ordre_produits() {
//helper: "clone"
helper: fixHelper,
stop: function(event, ui) {
var tab_ordre = {} ;
var ordre = 1 ;
if($('ul.pagination').size()) {
var page = parseInt($('ul.pagination li.active a').html()) ;
var nb_items_by_page = parseInt($('#page-size').html()) ;
if(page != 1) {
ordre = (page - 1) * nb_items_by_page ;
}
}
$(".product-index table tbody tr").each(function() {
tab_ordre[$(this).attr('data-key')] = ordre ;
ordre++ ;
}) ;
console.log(tab_ordre) ;
/*$.get(UrlManager.getBaseUrl()+'product/order',{
array: JSON.stringify(tab_ordre)
}) ;*/
$.post(UrlManager.getBaseUrl()+'product/order',{
array: JSON.stringify(tab_ordre)
}) ;

+ 1
- 1
common/models/ProductSearch.php Datei anzeigen

@@ -69,7 +69,7 @@ class ProductSearch extends Product
'query' => $query,
'sort' => ['attributes' => ['order', 'photo', 'name', 'description','active']],
'pagination' => [
'pageSize' => 1000,
'pageSize' => 20,
],
]);

+ 1
- 1
console/config/params.php Datei anzeigen

@@ -37,5 +37,5 @@ termes.
*/

return [
'adminEmail' => 'contact@laboiteapain.net',
'adminEmail' => 'contact@opendistrib.net',
];

+ 1
- 1
frontend/config/params.php Datei anzeigen

@@ -37,5 +37,5 @@ termes.
*/

return [
'adminEmail' => 'contact@laboiteapain.net',
'adminEmail' => 'contact@opendistrib.net',
];

+ 1
- 1
producer/components/ProducerView.php Datei anzeigen

@@ -3,7 +3,7 @@
/**
Copyright La boîte à pain (2018)

contact@laboiteapain.net
contact@opendistrib.net

Ce logiciel est un programme informatique servant à aider les producteurs
à distribuer leur production en circuits courts.

+ 1
- 1
producer/components/UrlManagerProducer.php Datei anzeigen

@@ -3,7 +3,7 @@
/**
Copyright La boîte à pain (2018)

contact@laboiteapain.net
contact@opendistrib.net

Ce logiciel est un programme informatique servant à aider les producteurs
à distribuer leur production en circuits courts.

+ 1
- 1
producer/views/layouts/main.php Datei anzeigen

@@ -3,7 +3,7 @@
/**
Copyright La boîte à pain (2018)

contact@laboiteapain.net
contact@opendistrib.net

Ce logiciel est un programme informatique servant à aider les producteurs
à distribuer leur production en circuits courts.

Laden…
Abbrechen
Speichern