소스 검색

Merge branch 'dev'

prodstable
부모
커밋
a1d6da38ee
3개의 변경된 파일6개의 추가작업 그리고 8개의 파일을 삭제
  1. +3
    -3
      backend/controllers/CommandeController.php
  2. +3
    -3
      backend/views/commande/report.php
  3. +0
    -2
      common/models/PointVente.php

+ 3
- 3
backend/controllers/CommandeController.php 파일 보기

@@ -600,7 +600,7 @@ class CommandeController extends BackendController {
}
}
$line[] = substr($str_produits, 0, strlen($str_produits) - 2);
$line[] = number_format($pv->recettes_pain, 2) . ' €';
$line[] = number_format($pv->recettes, 2) . ' €';
$data[] = $line;

$line = ['Total vrac'];
@@ -616,7 +616,7 @@ class CommandeController extends BackendController {
}
}
$line[] = substr($str_produits, 0, strlen($str_produits) - 2);
$line[] = number_format($pv->recettes_vrac, 2) . ' €';
$line[] = number_format($pv->recettes, 2) . ' €';
$data[] = $line;

$data[] = [];
@@ -1165,7 +1165,7 @@ class CommandeController extends BackendController {
'produits' => $produits,
'commandes' => $commandes,
'produits_selec' => $produits_selec,
'recettes_pain' => $recettes,
'recettes' => $recettes,
'poids_total' => $poids_total,
'ca_potentiel' => $ca_potentiel,
'poids_pain' => $poids_pain,

+ 3
- 3
backend/views/commande/report.php 파일 보기

@@ -153,7 +153,7 @@ foreach ($points_vente as $pv) {
if($pv->credit_pain) {
$html .= '<td></td>' ;
}
$html .= '<td><strong>'.number_format($pv->recettes_pain, 2) . ' €</strong></td>';
$html .= '<td><strong>'.number_format($pv->recettes, 2) . ' €</strong></td>';
$html .= '</tbody></table><pagebreak>' ;
}
@@ -191,8 +191,8 @@ foreach ($points_vente as $pv)
$html = substr($html, 0, strlen($html) - 2) ;
$html .= '</td><td>'.number_format($pv->recettes_pain, 2).' €</td></tr>' ;
$recettes += $pv->recettes_pain ;
$html .= '</td><td>'.number_format($pv->recettes, 2).' €</td></tr>' ;
$recettes += $pv->recettes ;
}
}


+ 0
- 2
common/models/PointVente.php 파일 보기

@@ -55,8 +55,6 @@ class PointVente extends \yii\db\ActiveRecord
{
var $commandes = [];
var $recettes = 0;
var $recettes_pain = 0;
var $recettes_vrac = 0;
var $data_select_commandes;
var $data_options_commandes;
var $users = [];

Loading…
취소
저장