Skip to content

Commit

Permalink
Fixed the edit invoice issue, removed the font awesome dependency, re…
Browse files Browse the repository at this point in the history
…placed it with bootstrap icon, fixed some report related bugs
  • Loading branch information
surajcm committed Jun 18, 2020
1 parent 9ed5eef commit 9ff9982
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 34 deletions.
5 changes: 0 additions & 5 deletions src/main/resources/static/css/font-awesome.min.css

This file was deleted.

4 changes: 4 additions & 0 deletions src/main/resources/static/img/calendar3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions src/main/resources/static/js/invoice-scripts.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
function addInvoice(){
function addInvoice() {
/*if(document.getElementById('amount').value.length == 0){
document.getElementById('amount').value = "0.0";
}*/
document.forms[0].action = "addInvoice.htm";
document.forms[0].submit();
}

function search() {
/*if(document.getElementById('amount').value.length == 0){
document.getElementById('amount').value = "0.0";
}*/
document.forms[0].action = "SearchInvoice.htm";
document.forms[0].submit();
}

function clearOut() {
document.getElementById('invoiceId').value = "";
document.getElementById('description').value = "";
Expand All @@ -23,6 +25,7 @@ function clearOut() {
document.getElementById('lesser').checked = false;
document.getElementById('startsWith').checked = false;
}

//validation before edit
function editMe() {
var check = 'false';
Expand Down Expand Up @@ -154,6 +157,6 @@ function checkCall(e) {
}
}

function hideAlerts(){
function hideAlerts() {
document.getElementById('invmgt').text = "Invoice <span class='sr-only'>Invoice</span>";
}
12 changes: 6 additions & 6 deletions src/main/webapp/invoice/EditInvoice.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<form:form method="POST" modelAttribute="invoiceForm">
<form:hidden name="loggedInUser" path="loggedInUser" />
<form:hidden name="loggedInRole" path="loggedInRole" />
<form:hidden name="id" path="currentInvoiceVO.id" />
<form:hidden name="id" path="currentInvoiceVo.id" />
<%@include file="../navbar.jsp" %>
<div class="container">
<div class="wrap">
Expand All @@ -69,7 +69,7 @@
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:left;">
<form:input path="currentInvoiceVO.tagNo" cssClass="form-control" id="tagNo"/>
<form:input path="currentInvoiceVo.tagNo" cssClass="form-control" id="tagNo"/>
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:right;">
Expand All @@ -79,7 +79,7 @@
</td>
<td colspan="2">&nbsp;</td>
<td colspan="7" style="text-align:left;">
<form:textarea path="currentInvoiceVO.description" cssClass="form-control" id="description"/>
<form:textarea path="currentInvoiceVo.description" cssClass="form-control" id="description"/>
</td>
</tr>
<tr>
Expand All @@ -90,7 +90,7 @@
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:left;">
<form:input path="currentInvoiceVO.quantity" cssClass="form-control" id="quantity"/>
<form:input path="currentInvoiceVo.quantity" cssClass="form-control" id="quantity"/>
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:right;">
Expand All @@ -100,7 +100,7 @@
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:left;">
<form:input path="currentInvoiceVO.rate" cssClass="form-control" id="rate"/>
<form:input path="currentInvoiceVo.rate" cssClass="form-control" id="rate"/>
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:right;">
Expand All @@ -110,7 +110,7 @@
</td>
<td colspan="2">&nbsp;</td>
<td style="text-align:left;">
<form:input path="currentInvoiceVO.amount" cssClass="form-control" id="amount"/>
<form:input path="currentInvoiceVo.amount" cssClass="form-control" id="amount"/>
</td>
</tr>
<tr>
Expand Down
2 changes: 0 additions & 2 deletions src/main/webapp/make/ModelEdit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<meta name="author" content="Suraj">
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />
<title>Edit Model</title>
Expand Down
3 changes: 0 additions & 3 deletions src/main/webapp/make/ModelList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<meta name="author" content="Suraj">
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />
<title>Make and Model List</title>
Expand Down Expand Up @@ -156,7 +154,6 @@
</div>
</div>
</div>
<script src="/js/core/jquery-3.2.1.min.js"></script>
<script src="/js/core/popper.min.js"></script>
<script src="/js/core/bootstrap.min.js"></script>
<script src="/js/core/jquery-ui.min.js"></script>
Expand Down
13 changes: 12 additions & 1 deletion src/main/webapp/reports/List.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />

Expand Down Expand Up @@ -192,6 +191,9 @@
</td>
<td>
<form:input path="txnReportTransactionVO.startDate" cssClass="form-control" id="txnReportStartDate"/>
<label for="startDate" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</td>
<td colspan="2">&nbsp;</td>
<td>
Expand All @@ -201,6 +203,9 @@
</td>
<td>
<form:input path="txnReportTransactionVO.endDate" cssClass="form-control" id="txnReportEndDate"/>
<label for="endDate" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -363,6 +368,9 @@
</td>
<td>
<form:input path="invoiceListReportTransactionVO.startDate" cssClass="form-control" id="invoiceListStartDate"/>
<label for="startDate" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</td>
<td colspan="2">&nbsp;</td>
<td>
Expand All @@ -372,6 +380,9 @@
</td>
<td>
<form:input path="invoiceListReportTransactionVO.endDate" cssClass="form-control" id="invoiceListEndDate"/>
<label for="endDate" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</td>
</tr>
<tr>
Expand Down
4 changes: 0 additions & 4 deletions src/main/webapp/resources/reports/callReport.jrxml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@
</background>
<title>
<band height="88" splitType="Stretch">
<image>
<reportElement uuid="c7219682-6d21-4193-9bb0-69d4f4573544" x="6" y="6" width="74" height="74"/>
<imageExpression><![CDATA["C:\\CompanyLogo.gif"]]></imageExpression>
</image>
<textField>
<reportElement uuid="e7af506d-39c6-48a6-a204-e04ab96bb2ab" x="360" y="18" width="179" height="36"/>
<textElement>
Expand Down
4 changes: 0 additions & 4 deletions src/main/webapp/resources/reports/serviceBillReport.jrxml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
</textElement>
<text><![CDATA[SERVICE BILL]]></text>
</staticText>
<image isLazy="true">
<reportElement uuid="4cadb756-cbb3-42bb-94dd-4b2753daab25" x="8" y="47" width="74" height="74"/>
<imageExpression><![CDATA["C:\\CompanyLogo.gif"]]></imageExpression>
</image>
<textField>
<reportElement uuid="bb7b6665-51a4-4613-9d8b-5140f8a75dbe" x="101" y="56" width="180" height="30"/>
<textElement>
Expand Down
9 changes: 6 additions & 3 deletions src/main/webapp/txs/TransactionList.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />
<title>Transaction List</title>
Expand Down Expand Up @@ -75,7 +74,9 @@
<td>
<div class="input-group">
<form:input path="searchTransaction.startDate" class="date-picker form-control" id = "startDate" />
<label for="start" class="input-group-addon btn"><span class="fa fa-calendar"></span>
<label for="start" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</div>
</td>
<td colspan="2">&nbsp;</td>
Expand All @@ -87,7 +88,9 @@
<td>
<div class="input-group">
<form:input path="searchTransaction.endDate" class="date-picker form-control" id = "endDate" />
<label for="end" class="input-group-addon btn"><span class="fa fa-calendar"></span></label>
<label for="end" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</div>
</td>
</tr>
Expand Down
5 changes: 3 additions & 2 deletions src/main/webapp/txs/TxnAdd.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />
<title>Add Transaction</title>
Expand Down Expand Up @@ -67,7 +66,9 @@
<td style="text-align:left;">
<div class="input-group">
<form:input path="currentTransaction.dateReported" class="date-picker form-control" id = "dateReported" />
<label for="reported" class="input-group-addon btn"><span class="fa fa-calendar"></span>
<label for="reported" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</div>
</td>
</tr>
Expand Down
5 changes: 3 additions & 2 deletions src/main/webapp/txs/TxnEdit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
<spring:url value="/resources/images/Poseidon_Ico.ico" var="posIcon" />
<link rel="shortcut icon" href="${posIcon}" />
<link rel="stylesheet" href="/css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="/css/font-awesome.min.css" type="text/css" />
<link rel="stylesheet" href="/css/bootstrap.min.css" type="text/css" />
<link rel="stylesheet" href="/css/custom.css" type="text/css" />
<title>Edit Transaction</title>
Expand Down Expand Up @@ -68,7 +67,9 @@
<td style="text-align:left;">
<div class="input-group">
<form:input path="currentTransaction.dateReported" class="date-picker form-control" id = "dateReported" />
<label for="reported" class="input-group-addon btn"><span class="fa fa-calendar"></span>
<label for="reported" class="input-group-addon btn">
<img src="/img/calendar3.svg" alt="" width="16" height="16" title="calendar" />
</label>
</div>
</td>
</tr>
Expand Down

0 comments on commit 9ff9982

Please sign in to comment.