Browse Source

Prix

feature/export_comptable
Guillaume 4 years ago
parent
commit
f641ec72fb
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      ShopBundle/Services/Price/PriceUtils.php

+ 12
- 1
ShopBundle/Services/Price/PriceUtils.php View File

} }


if(strlen($service) && $entity && method_exists($this->$service, $name)) { if(strlen($service) && $entity && method_exists($this->$service, $name)) {
return $this->$service->$name($entity) ;
if(isset($arguments[1]) && isset($arguments[2]) && isset($arguments[3])) {
return $this->$service->$name($entity, $arguments[1], $arguments[2], $arguments[3]) ;
}
elseif(isset($arguments[1]) && isset($arguments[2])) {
return $this->$service->$name($entity, $arguments[1], $arguments[2]) ;
}
elseif(isset($arguments[1])) {
return $this->$service->$name($entity, $arguments[1]) ;
}
else {
return $this->$service->$name($entity) ;
}
} }


return false ; return false ;

Loading…
Cancel
Save