소스 검색

Correctifs backoffice

feature/export_comptable
Fab 4 년 전
부모
커밋
673bc6e4e8
8개의 변경된 파일81개의 추가작업 그리고 29개의 파일을 삭제
  1. +2
    -1
      ShopBundle/Controller/Backend/ProductFamilyController.php
  2. +17
    -0
      ShopBundle/Repository/OrderShopRepository.php
  3. +40
    -6
      ShopBundle/Resources/translations/lcshop.fr.yaml
  4. +1
    -1
      ShopBundle/Resources/views/backend/default/list-fields/field_price.html.twig
  5. +1
    -1
      ShopBundle/Resources/views/backend/default/list-fields/field_total.html.twig
  6. +6
    -15
      ShopBundle/Resources/views/backend/merchant/panel_general.html.twig
  7. +3
    -3
      ShopBundle/Resources/views/backend/supplier/form.html.twig
  8. +11
    -2
      ShopBundle/Resources/views/backend/supplier/panel_general.html.twig

+ 2
- 1
ShopBundle/Controller/Backend/ProductFamilyController.php 파일 보기

@@ -312,7 +312,8 @@ class ProductFamilyController extends AdminController
$this->executeDynamicMethod('update<EntityName>Entity', [$entity, $editForm]);
$this->dispatch(EasyAdminEvents::POST_UPDATE, ['entity' => $entity]);

return $this->redirectToReferrer();
$this->utils->addFlash('success', 'Produit sauvegardé') ;
return $this->redirectToRoute('easyadmin', ['entity' => 'ProductFamily', 'action' => 'edit', 'id' => $id]) ;
}

$this->dispatch(EasyAdminEvents::POST_EDIT);

+ 17
- 0
ShopBundle/Repository/OrderShopRepository.php 파일 보기

@@ -2,6 +2,8 @@

namespace Lc\ShopBundle\Repository;

use App\Entity\DeliveryAvailabilityPointSale;
use App\Entity\DeliveryAvailabilityZone;
use Doctrine\ORM\QueryBuilder;
use Lc\ShopBundle\Context\DefaultRepositoryInterface;
use Lc\ShopBundle\Context\OrderShopInterface;
@@ -181,6 +183,21 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
$query->andWhere('pointSale.isDepository = 1');
}

if (isset($params['deliveryAvailability'])) {
$deliveryAvailability = $params['deliveryAvailability'] ;

$isDeliveryAvailabilityZone = ($deliveryAvailability instanceof DeliveryAvailabilityZone) ? true : false;
$isDeliveryAvailabilityPointSale = ($deliveryAvailability instanceof DeliveryAvailabilityPointSale) ? true : false;

if($isDeliveryAvailabilityZone) {
$query->innerJoin('e.deliveryAvailabilityZone','deliveryAvailabilityZone') ;
}

if($isDeliveryAvailabilityPointSale) {
$query->innerJoin('e.deliveryAvailabilityPointSale','deliveryAvailabilityPointSale') ;
}
}

if (isset($params['orderBy'])) {
$query->orderBy('e.' . $params['orderBy'], isset($params['orderByDirection']) ? $params['orderByDirection'] : 'DESC');
} else {

+ 40
- 6
ShopBundle/Resources/translations/lcshop.fr.yaml 파일 보기

@@ -14,11 +14,15 @@ list:
group:
main: Général
address: Adresse
list: Liste
default: Édition
Général: Général
Adresse: Adresse
Reminder:
title: Pense bête
list: Pense bêtes
Statistic:
title: Statistiques
ProductFamily:
addresses: Livraisons & facturation
main: Général
@@ -52,9 +56,24 @@ group:
addRedeliveryOrderProduct: Ajouter une relivraison
payment: Historique des transactions
documents: Documents
<<<<<<< HEAD
=======
selectUser: Sélectionner un utilisateur
>>>>>>> 6b6e276b17d407c5909cae3079b616d6ccc8a286
deliveryAddress: Adresse de livraison
Ticket:
listMessages: Liste des messages
PointSale:
main: Général
Merchant:
main: Général
address: Adresse
product: Produit
order: Commande
email: Email
delivery: Livraison


None: Aucune valeur
label.form.empty_value: Choisissez une option
form.label.delete: Supprimer l'image
@@ -211,9 +230,6 @@ field:
behaviorTaxRateHelp: Appliquer la réduction sur le prix HT ou le prix TTC
deliveryAddress: Addresse de livraison
invoiceAddress: Addresse de facturation
deliveryTypeOptions:
point-sale: En ambassade
home: À domicile
paidAt: Payé le
reference: Référence
comment: Commentaire
@@ -231,6 +247,12 @@ field:
emailSubjectPrefix: "Email : préfixe"
emailContact: Email (contact)
order: Commande
subject: Sujet
metaTitle: Meta title
metaDescription: Meta description
users: Utilisateurs
total: Total

PointSale:
code: Code
codeHelp: Code utilisé pour retrouver l'ambassade dans le tunnel de commande (Non sensible à la casse)
@@ -258,6 +280,11 @@ field:
propertyCharacteristics: Caractéristiques
propertyPackaging: Conditionnement
propertyWeightQuantity: Poids/quantité
propertyQuantity: Quantité
propertyWeight: Poids
propertyFeature: Caractéristique
propertyVariety: Variété
propertyAlcoholLevel: Degré d'alcool
displayPriceUnitRef: Afficher le prix par unité de référence
behaviorPrice: Travailler avec des tarifs
behaviorPriceOptions:
@@ -312,6 +339,7 @@ field:
shipping: Livraisons
sponsorship: Parrainage
employees: Employées
conditionalPromotion: Promotion conditionnelle
availableQuantity: Quantité disponible
availableQuantityPerUser: Quantité disponible par utilisateur
codes: Codes
@@ -333,6 +361,8 @@ field:
individual: Particulier
legal-person: Professionnel
OrderShop:
save: Sauvegarder
reference: Référence
mainInfo: Information principal
product: Produit
user: Client
@@ -346,12 +376,16 @@ field:
quantityProduct: Quantité (en rapport à l'unité)
unit: Unité
redeliverySupplier: Erreur producteur (A rappeler au prochain bon de commande producteur)
reference: Référence
deliveryAvailabilityPointSale: Créneau de livraison en Ambassade
deliveryType: Adresse de livraison
deliveryType: Type de livraison
deliveryTypeOptions:
point-sale: En ambassade
home: À domicile
deliveryDate: Date de livraison
weekId: Ordre de commande
weekDeliveryId: Ordre de livraison
weekNumber: Numéro de semaine
deliveryAvailabilityPointSale: Choix du créneau
deliveryAvailabilityZone: Choix du créneau
UserMerchant:
credit: Solde du compte prépayé
CreditHistory:

+ 1
- 1
ShopBundle/Resources/views/backend/default/list-fields/field_price.html.twig 파일 보기

@@ -1 +1 @@
{{ priceUtils.getPriceWithTax(item) }}
{{ priceUtils.getPriceWithTax(item)|format_price|raw }}

+ 1
- 1
ShopBundle/Resources/views/backend/default/list-fields/field_total.html.twig 파일 보기

@@ -1 +1 @@
{{ priceUtils.getTotalWithTax(item) }}
{{ priceUtils.getTotalWithTax(item)|format_price|raw }}

+ 6
- 15
ShopBundle/Resources/views/backend/merchant/panel_general.html.twig 파일 보기

@@ -6,21 +6,12 @@
<div class="col-12">
{{ form_row(form.title) }}
</div>
{#<div class="col-12">
{{ form_row(form.subtitle) }}
</div>#}
{#<div class="col-12">
{{ form_row(form.kmsHub) }}
</div>#}
{#<div class="col-12">
{{ form_row(form.imageFile) }}
</div>#}
{#<div class="col-12">
{{ form_row(form.description) }}
</div>#}
{#<div class="col-12">
{{ form_row(form.user) }}
</div>#}
<div class="col-12">
{{ form_row(form.merchantConfigs.url) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs['second-line-element-menu']) }}
</div>
{{ macros.card_end() }}
</div>
</div>

+ 3
- 3
ShopBundle/Resources/views/backend/supplier/form.html.twig 파일 보기

@@ -23,13 +23,13 @@
<div class="form ">

<div v-show="currentSection == 'general'" class="panel panel-default">
{% include '@LcShop/backend/merchant/panel_general.html.twig' %}
{% include '@LcShop/backend/supplier/panel_general.html.twig' %}
</div>
<div v-show="currentSection == 'address'" class="panel panel-default">
{% include '@LcShop/backend/merchant/panel_address.html.twig' %}
{% include '@LcShop/backend/supplier/panel_address.html.twig' %}
</div>
<div v-show="currentSection == 'seo'" class="panel panel-default">
{% include '@LcShop/backend/merchant/panel_seo.html.twig' %}
{% include '@LcShop/backend/supplier/panel_seo.html.twig' %}
</div>

</div>

+ 11
- 2
ShopBundle/Resources/views/backend/supplier/panel_general.html.twig 파일 보기

@@ -7,10 +7,19 @@
{{ form_row(form.title) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs.url) }}
{{ form_row(form.subtitle) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs['second-line-element-menu']) }}
{{ form_row(form.kmsHub) }}
</div>
<div class="col-12">
{{ form_row(form.imageFile) }}
</div>
<div class="col-12">
{{ form_row(form.description) }}
</div>
<div class="col-12">
{{ form_row(form.user) }}
</div>
{{ macros.card_end() }}
</div>

Loading…
취소
저장