Skip to content

Commit

Permalink
Merge pull request #777 from coral-erm/development
Browse files Browse the repository at this point in the history
Fix for Resources Module
  • Loading branch information
andyp-uk authored Oct 4, 2024
2 parents 14fa51f + 8a25c86 commit dd24afe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions resources/ajax_processing/submitCost.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@
$resourcePayment->subscriptionStartDate = $start;
$resourcePayment->subscriptionEndDate = $end;
$resourcePayment->fundID = $fundIDArray[$key];
$resourcePayment->priceTaxExcluded = $pteArray[$key];
$resourcePayment->priceTaxExcluded = is_numeric($pteArray[$key]) ? $pteArray[$key] : null;
$resourcePayment->taxRate = is_numeric($taxRateArray[$key]) ? $taxRateArray[$key] : null;
$resourcePayment->priceTaxIncluded = $ptiArray[$key];
$resourcePayment->paymentAmount = $paymentAmountArray[$key];
$resourcePayment->priceTaxIncluded = is_numeric($ptiArray[$key]) ? $ptiArray[$key] : null;
$resourcePayment->paymentAmount = is_numeric($paymentAmountArray[$key]) ? $paymentAmountArray[$key] : null;
$resourcePayment->currencyCode = $currencyCodeArray[$key];
$resourcePayment->orderTypeID = $value;
$resourcePayment->costDetailsID = $costDetailsArray[$key];
Expand Down
4 changes: 2 additions & 2 deletions resources/directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function integer_to_cost($price) {
if ($price > 0){
return $nf->format($price / 100);
}else{
return "";
return $nf->format(0);
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ function resource_sidemenu($selected_link = '') {
} else {
$class = 'sidemenuunselected';
}
if ($key != 'accounts' || $user->accountTabIndicator == '1') {
if ($key != 'accounts' || $user->accountTabIndicator == '1' || $user->isAdmin) {
?>
<div class="<?php echo $class; ?>" style='position: relative; width: 105px'><span class='link'><a href='javascript:void(0)' class='show<?php echo $name; ?>' title="<?php echo $value; ?>"><?php echo $value; ?></a></span>
<?php if ($key == 'attachments') { ?>
Expand Down
2 changes: 1 addition & 1 deletion resources/js/forms/externalLoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function submitExternalLogin(){
$("#span_errors").html(html);
$("#submitExternalLoginForm").removeAttr("disabled");
}else{
myDialogClose();
myCloseDialog();
window.parent.updateAccounts();
return false;
}
Expand Down

0 comments on commit dd24afe

Please sign in to comment.