Skip to content

Commit

Permalink
Merge pull request #345 from mattgu74/POSS3_category
Browse files Browse the repository at this point in the history
Récupération des categories via POSS3
  • Loading branch information
apuyou committed Apr 29, 2014
2 parents 6d614f4 + 726fbe5 commit ec46c6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/Payutc/Service/POSS3.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use \Payutc\Bom\Purchase;
use \Payutc\Bom\Product;
use \Payutc\Bom\Category;
use \Payutc\Bom\Transaction;
use \Payutc\Exception\PossException;
use \Payutc\Exception\UserNotFound;
Expand Down Expand Up @@ -55,7 +56,13 @@ public function getArticles($fun_id)
return Product::getAll(array('fun_ids'=>array($fun_id,)));
}


public function getCategories($fun_id)
{
$this->checkRight(true, true, true, $fun_id);
return Category::getAll(array('fun_ids'=>array($fun_id,)));
}


/** Annulation d'un achat
* 1. Récupére l'achat
* 2. Vérifie que le vendeur est le bon, ainsi que la vente à été réalisé il y'a moins de X temps
Expand Down

0 comments on commit ec46c6b

Please sign in to comment.