feat: Enhance software tool with country selection and tax calculation
- Added a helper function to generate country select options in software tool. - Updated user info modal and payment modal to use country dropdowns instead of text inputs. - Implemented tax calculation based on selected country in payment modal. - Improved software options loading behavior in debug mode. - Enhanced description formatting in payment modal. - Added log modal for equipment updates with a link to view logs. - Introduced a new countries settings file with tax rates for various countries. - Minor adjustments to various PHP files for better handling of equipment and payment processes.
This commit is contained in:
@@ -441,7 +441,7 @@ $view .= '<div class="content-block">
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width:25%;">'.$general_updated.'</td>
|
||||
<td>'.getRelativeTime($responses->updated).'</td>
|
||||
<td><a href="#" onclick="openLogModal(); return false;" class="link-with-icon">'.getRelativeTime($responses->updated).'<i class="fa-solid fa-up-right-from-square"></i></a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
@@ -704,6 +704,32 @@ if ($latest_customer || $latest_warranty) {
|
||||
';
|
||||
}
|
||||
|
||||
// Modal for log
|
||||
echo '
|
||||
<div id="logModal" class="reg-modal" style="display:none;">
|
||||
<div class="reg-modal-content" style="min-width:600px;">
|
||||
<div class="reg-modal-header">
|
||||
<h3>Log</h3>
|
||||
<button onclick="closeLogModal()" class="reg-modal-close">×</button>
|
||||
</div>
|
||||
<div id="logModalBody" style="max-height:400px;overflow:auto;">
|
||||
<div id="registrationTab" class="reg-tab-content" style="display: block;">
|
||||
'.showlog("equipment", "'.$responses->equipmentID.'").'
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function openLogModal() {
|
||||
document.getElementById("logModal").style.display = "flex";
|
||||
|
||||
}
|
||||
function closeLogModal() {
|
||||
document.getElementById("logModal").style.display = "none";
|
||||
}
|
||||
</script>
|
||||
';
|
||||
|
||||
template_footer()
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user