Pārlūkot izejas kodu

Merge branch 'dev'

prodstable
Guillaume pirms 4 gadiem
vecāks
revīzija
6b07217da3
3 mainītis faili ar 9 papildinājumiem un 3 dzēšanām
  1. +3
    -1
      common/models/Product.php
  2. +5
    -1
      producer/views/order/order.php
  3. +1
    -1
      producer/views/site/index.php

+ 3
- 1
common/models/Product.php Parādīt failu

@@ -175,7 +175,9 @@ class Product extends ActiveRecordCommon

public function afterFind() {
if ($this->taxRate == null) {
$this->populateRelation('taxRate', GlobalParam::getCurrentProducer()->taxRate);
$producer = Producer::searchOne(['id' => GlobalParam::getCurrentProducerId()]) ;
$this->populateRelation('taxRate', $producer->taxRate);
//$this->populateRelation('taxRate', GlobalParam::getCurrentProducer()->taxRate);
}

$this->wording_unit = Product::strUnit($this->unit) ;

+ 5
- 1
producer/views/order/order.php Parādīt failu

@@ -152,7 +152,11 @@ $producer = GlobalParam::getCurrentProducer() ;
if($pointSaleDistributions && count($pointSaleDistributions) > 0) {
echo '<div class="point-sales">' ;
foreach($pointSaleDistributions as $pointSaleDistribution) {
echo $pointSaleDistribution->pointSale->name.'<br />' ;
echo $pointSaleDistribution->pointSale->name.'' ;
if(strlen($pointSaleDistribution->pointSale->locality)) {
echo ' ('.$pointSaleDistribution->pointSale->locality.')' ;
}
echo '<br />' ;
}
echo '</div>' ;
}

+ 1
- 1
producer/views/site/index.php Parādīt failu

@@ -79,7 +79,7 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ;
'format' => 'raw',
'value' => function($model) {

$producer = GlobalParam::getCurrentProducer() ;
$producer = \Yii::$app->controller->getProducer() ;

if($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_WEEK) {
return $model->getStrDeliveryDays() ;

Notiek ielāde…
Atcelt
Saglabāt