Bläddra i källkod

Processus de commande

feature/export_comptable
Fab 4 år sedan
förälder
incheckning
438e4a91a2
2 ändrade filer med 12 tillägg och 0 borttagningar
  1. +11
    -0
      ShopBundle/Repository/OrderShopRepository.php
  2. +1
    -0
      ShopBundle/Services/Order/OrderUtils.php

+ 11
- 0
ShopBundle/Repository/OrderShopRepository.php Visa fil

@@ -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 Visa fil

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

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


Laddar…
Avbryt
Spara