Parcourir la source

Processus de commande

feature/export_comptable
Fab il y a 4 ans
Parent
révision
438e4a91a2
2 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. +11
    -0
      ShopBundle/Repository/OrderShopRepository.php
  2. +1
    -0
      ShopBundle/Services/Order/OrderUtils.php

+ 11
- 0
ShopBundle/Repository/OrderShopRepository.php Voir le fichier

@@ -158,4 +158,15 @@ class OrderShopRepository extends BaseRepository implements DefaultRepositoryInt
return $query->getQuery()->getResult() ;
}
}

public function findLastOrderValidOfWeek($weekNumber){
$query = $this->findByMerchantQuery();
$query = $this->filterOrderValid($query);
$query->andWhere('e.weekNumber = :weekNumber');
$query->setParameter('weekNumber', $weekNumber);
$query->orderBy('e.validationDate','DESC');

return $query->getQuery()->getOneOrNullResult();

}
}

+ 1
- 0
ShopBundle/Services/Order/OrderUtils.php Voir le fichier

@@ -349,6 +349,7 @@ class OrderUtils

public function createDocumentInvoice(OrderShopInterface $orderShop)
{
//TODO set invoiceNumber
$merchantAddress = $orderShop->getMerchant()->getAddress();
$buyerAddress = $orderShop->getInvoiceAddress();


Chargement…
Annuler
Enregistrer