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:
@@ -40,6 +40,9 @@ if ($update_allowed === 1){
|
||||
if (isset($_POST['generateDealerInformation'])){
|
||||
generateDealerInformation($_SESSION['userkey']);
|
||||
}
|
||||
if (isset($_POST['generateCountriesFile'])){
|
||||
generateCountriesFile($_SESSION['userkey']);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle success messages
|
||||
@@ -91,6 +94,10 @@ $view .= '<div class="content-block tab-content active">
|
||||
<label for="service">GenerateDealerInfo</label>
|
||||
<input type="submit" name="generateDealerInformation" style="width: 15%;" value="DealerInfo" class="btn">
|
||||
</div>
|
||||
<div class="form responsive-width-100">
|
||||
<label for="service">Generate Countries File</label>
|
||||
<input type="submit" name="generateCountriesFile" style="width: 15%;" value="Countries" class="btn">
|
||||
</div>
|
||||
</div>
|
||||
</div>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user