Преглед на файлове

Merge branch 'develop'

master^2
Guillaume преди 2 години
родител
ревизия
a4859f4fd8
променени са 4 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. +1
    -1
      ShopBundle/Resources/public/js/backend/script/order/vuejs-order.js
  2. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  3. +1
    -1
      ShopBundle/Services/Price/OrderProductPriceUtils.php
  4. +1
    -0
      ShopBundle/Services/Utils.php

+ 1
- 1
ShopBundle/Resources/public/js/backend/script/order/vuejs-order.js Целия файл

@@ -49,7 +49,7 @@ Vue.component('order-product', {
},
modalAddReductionCredit:function () {
$(this.$parent.$refs['addReductionCreditFormTitle']).val(this.orderProduct.title);
$(this.$parent.$refs['addReductionCreditFormValue']).val(this.orderProduct.price);
$(this.$parent.$refs['addReductionCreditFormValue']).val(this.orderProduct.priceWithTaxAndReduction);
$(this.$parent.$refs['addReductionCreditFormBehaviorTaxRate']).val('tax-included').trigger('change');
$('#modal-add-reduction-credit').modal('show');
}

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml Целия файл

@@ -292,6 +292,7 @@ field:
cash: Espèce
transfer: Virement
credit: Compte prépayé
transfer-gift: Transfert de bon cadeau
minimumAmountCb: "Paiement par carte bancaire : montant minimum"
emailFrom: "Email (From) : email"
emailFromName: "Email (From) : nom"

+ 1
- 1
ShopBundle/Services/Price/OrderProductPriceUtils.php Целия файл

@@ -89,7 +89,7 @@ class OrderProductPriceUtils

public function getMarginPercent(OrderProductInterface $orderProduct)
{
if ($this->getBuyingPrice($orderProduct)) {
if ($this->getBuyingPrice($orderProduct) && $this->getPriceWithReduction($orderProduct)) {
return $this->round(($this->getMargin($orderProduct) / $this->getPriceWithReduction($orderProduct)) * 100);
} else {
return 0;

+ 1
- 0
ShopBundle/Services/Utils.php Целия файл

@@ -47,6 +47,7 @@ class Utils
const MEAN_PAYMENT_CREDIT = 'credit';
const MEAN_PAYMENT_TRANSFER = 'transfer';
const MEAN_PAYMENT_CASH = 'cash';
const MEAN_PAYMENT_GIFT = 'transfer-gift';

public function __construct(EntityManagerInterface $em, ParameterBagInterface $parameterBag, SessionInterface $session, TranslatorInterface $translator, ConfigManager $configManager, CacheManager $liipCacheHelper)
{

Loading…
Отказ
Запис