|
|
@@ -2,6 +2,7 @@ |
|
|
|
|
|
|
|
namespace Lc\CaracoleBundle\Repository\File; |
|
|
|
|
|
|
|
use App\Entity\Address\Address; |
|
|
|
use Lc\CaracoleBundle\Repository\MerchantStoreTrait; |
|
|
|
use Lc\SovBundle\Repository\AbstractStore; |
|
|
|
|
|
|
@@ -21,7 +22,7 @@ class DocumentStore extends AbstractStore |
|
|
|
// @TODO : à écrire |
|
|
|
} |
|
|
|
|
|
|
|
//findLastInvoice |
|
|
|
// findLastInvoice |
|
|
|
public function getOneLastInvoice() |
|
|
|
{ |
|
|
|
$query = $this->query->create(); |
|
|
@@ -32,4 +33,15 @@ class DocumentStore extends AbstractStore |
|
|
|
|
|
|
|
return $query->findOne(); |
|
|
|
} |
|
|
|
|
|
|
|
public function getByBuyerAddress(Address $buyerAddress) |
|
|
|
{ |
|
|
|
$query = $this->query->create(); |
|
|
|
|
|
|
|
$query |
|
|
|
->filterByBuyerAddress($buyerAddress); |
|
|
|
|
|
|
|
return $query->find(); |
|
|
|
} |
|
|
|
|
|
|
|
} |