From afab238108b5bfd1699e445370ced1d2d625433a Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Tue, 27 Jan 2015 16:16:11 +0100 Subject: [PATCH] New fields for acquisitions - Add new fields to the enhanced acquisitions mode: - Price Tax Excluded - Tax Rate - Price Tax Included Price Tax Included and Payment Amount will be automatically prefilled accoring to the Price Tax Excluded and Tax Rate values. --- ajax_forms/getCostForm.php | 30 +++++++++- ajax_htmldata/getAcquisitionsDetails.php | 31 +++++++--- ajax_processing/submitCost.php | 6 ++ css/style.css | 3 + install/protected/install.sql | 3 + install/update_acquisitions_enhancements.sql | 3 + js/forms/costForm.js | 59 +++++++++++++++++++- 7 files changed, 122 insertions(+), 13 deletions(-) create mode 100644 install/update_acquisitions_enhancements.sql diff --git a/ajax_forms/getCostForm.php b/ajax_forms/getCostForm.php index 8f5bd3f..69914b6 100644 --- a/ajax_forms/getCostForm.php +++ b/ajax_forms/getCostForm.php @@ -37,8 +37,8 @@ $baseWidth = 345; $numCols = 6; if ($enhancedCostFlag){ - $baseWidth += 388; - $numCols += 5; // year, sub start, sub end, cost details, invoice num + $baseWidth += 688; + $numCols += 8; // year, sub start, sub end, cost details, invoice num } ?>
@@ -64,6 +64,11 @@ Sub End Fund + + Tax Excl. + Tax Rate + Tax Incl. + Payment Type @@ -88,6 +93,14 @@ + + + + + + + + @@ -146,12 +159,14 @@ + 0){ foreach ($paymentArray as $payment){ ?> + @@ -163,6 +178,17 @@ + + + + + diff --git a/ajax_htmldata/getAcquisitionsDetails.php b/ajax_htmldata/getAcquisitionsDetails.php index 798a488..03d675e 100644 --- a/ajax_htmldata/getAcquisitionsDetails.php +++ b/ajax_htmldata/getAcquisitionsDetails.php @@ -3,9 +3,9 @@ $enhancedCostFlag = ((isset($config->settings->enhancedCostHistory)) && (strtoupper($config->settings->enhancedCostHistory) == 'Y')) ? 1 : 0; $enhancedCostFlag = (strtoupper($config->settings->enhancedCostHistory) == 'Y') ? 1 : 0; if ($enhancedCostFlag){ - $numCols = 9; + $numCols = 12; $tableWidth = 760; - $formWidth = 784; + $formWidth = 1084; ?>
' style='width:53px;' class='changeInput year' /> ' style='width:60px;' class='changeInput fundName' /> + ' style='width:60px;' class='changeInput priceTaxExcluded' /> + + ' style='width:60px;' class='changeInput taxRate' /> + + ' style='width:60px;' class='changeInput priceTaxIncluded' /> + ' style='width:50px;' class='changeInput paymentAmount' />