//
// Exchange rate currency $curr as on date $date.
// Keep in mind FA has internally implemented 3 exrate providers
//
// Exchange rate currency $curr as on date $date.
// Keep in mind FA has internally implemented 3 exrate providers
* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
* more than one in the cart.
*/
/* Default behavior check if there is enough quantity on hand and change the css
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
static function default_get_dispatchable_quantity($line_item, $location, $date, $qoh) {
$code = $_SESSION['language']->code;
$hook_class = 'hooks_'.$code;
$Hooks[$code] = new $hook_class;
$code = $_SESSION['language']->code;
$hook_class = 'hooks_'.$code;
$Hooks[$code] = new $hook_class;
- $hook_class = 'hooks_'.$ext['package'];
- if ($ext['active'] && class_exists($hook_class)) {
- $Hooks[$ext['package']] = new $hook_class;
- }
+ $hook_class = 'hooks_'.$ext['package'];
+ if ($ext['active'] && class_exists($hook_class)) {
+ $Hooks[$ext['package']] = new $hook_class;
+ }
$result = null;
foreach($Hooks as $ext => $hook) {
if (method_exists($hook, $method)) {
$result = null;
foreach($Hooks as $ext => $hook) {
if (method_exists($hook, $method)) {