-
+
-
+
diff --git a/AstuteClient2/src/app/invoice/invoice.component.html b/AstuteClient2/src/app/invoice/invoice.component.html
index f2560c2..df723b2 100644
--- a/AstuteClient2/src/app/invoice/invoice.component.html
+++ b/AstuteClient2/src/app/invoice/invoice.component.html
@@ -65,12 +65,12 @@
- Customer
+ Customer
|
-
+
@@ -90,11 +90,10 @@
|
-
- = 0" class="p-0 m-0 mt-2">
- To, {{customers[chosenInv.customerId].billToDept}}
+
+
|
|
@@ -107,8 +106,8 @@
- = 0" class="p-0 m-0 mt-2">
- {{customers[chosenInv.customerId].add1}} {{customers[chosenInv.customerId].add2}}
+
+
|
|
@@ -121,9 +120,8 @@
- = 0" class="p-0 m-0 mt-2">
-
- {{customers[chosenInv.customerId].city}} {{customers[chosenInv.customerId].state}} {{customers[chosenInv.customerId].zip}}{{(customers[chosenInv.customerId].ziplast4 == 0) ? '':'-' + customers[chosenInv.customerId].ziplast4}}
+
+
|
|
@@ -364,14 +362,14 @@
Special Notes*
-
+
@@ -429,7 +427,7 @@
-
+ | {{customerSelec.value}}
= 0" class="p-0 m-0 mt-2">
{{customers[customerSelec.value].billToDept}}
@@ -633,7 +631,6 @@
|
- Notes |
- |
+ Notes |
+ |
-
-
-
-
-
-
-
-
-
Detail
@@ -212,8 +209,8 @@
|
- Notes |
- |
+ Notes |
+ |
diff --git a/AstuteClient2/src/app/sales-order/sales-order.component.ts b/AstuteClient2/src/app/sales-order/sales-order.component.ts
index 0d35911..1661fda 100644
--- a/AstuteClient2/src/app/sales-order/sales-order.component.ts
+++ b/AstuteClient2/src/app/sales-order/sales-order.component.ts
@@ -26,7 +26,9 @@ export class SalesOrderComponent implements OnInit {
{headerName: 'SO Title', field: 'title'},
{headerName: 'Contract Amount', field: 'contractAmt'},
{headerName: 'SO Date', field: 'podate'},
- {headerName: '# of Invoice', field: 'invoiceSequence'}
+ {headerName: '# of Invoice', field: 'invoiceSequence'},
+ {headerName: 'notes', field: 'notes'}
+ // {headerName: 'oneInvInDraft', field: 'oneInvInDraft'}
];
rowData: any;
diff --git a/AstuteSystem/src/main/java/com/astute/dao/DAO.java b/AstuteSystem/src/main/java/com/astute/dao/DAO.java
index 9034a51..2101c25 100644
--- a/AstuteSystem/src/main/java/com/astute/dao/DAO.java
+++ b/AstuteSystem/src/main/java/com/astute/dao/DAO.java
@@ -3,16 +3,11 @@ package com.astute.dao;
import com.astute.exceptions.AstuteException;
import com.astute.model.*;
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
import java.sql.Connection;
import java.sql.Date;
import java.sql.ResultSet;
import java.text.ParseException;
import java.util.List;
-import java.util.Properties;
public abstract class DAO {
public static DAO dao;
diff --git a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java
index 7664169..7b3d29c 100644
--- a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java
+++ b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java
@@ -42,7 +42,7 @@ public class SqlDAO extends DAO {
try {
List
pos = new ArrayList<>();
Statement stmt = conn.createStatement();
- String sql = "SELECT PO_num, contract_num, PO_date, customer_id, contract_amt, astute_project_num , title, get_previously_billed_amt(PO_num), inv_seq, notes FROM PO ";
+ String sql = "SELECT PO_num, contract_num, PO_date, customer_id, contract_amt, astute_project_num , title, get_previously_billed_amt(PO_num), inv_seq, notes, final, isAnyInvInDraft(PO_num) FROM PO ";
if (PONum != null && !PONum.isEmpty()) {
sql += "WHERE UPPER(PO_num) = '" + PONum.toUpperCase() + "'";
} else if (contractNum != null && !contractNum.isEmpty()) {
@@ -63,14 +63,17 @@ public class SqlDAO extends DAO {
String astuteProjectNum = rs.getString(6);
String title = rs.getString(7);
Double previouslyBilledAmount = rs.getDouble(8);
- int invoiceSequence = rs.getInt(8);
- String notes = rs.getString(9);
+ int invoiceSequence = rs.getInt(9);
+ String notes = rs.getString(10);
+ boolean isFinal = rs.getInt(11) == 0 ? false : true;
+ boolean oneInvInDraft = rs.getInt(12) == 0 ? false : true;
+
String date = null;
if (poDate != null) {
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
date = formatter.format(poDate);
}
- PO po = new PO(poNum, cntrctNum, date, customerId, contractAmt,astuteProjectNum,title,previouslyBilledAmount,invoiceSequence, notes);
+ PO po = new PO(poNum, cntrctNum, date, customerId, contractAmt,astuteProjectNum,title,previouslyBilledAmount,invoiceSequence, notes, isFinal, oneInvInDraft);
pos.add(po);
}
return pos;
diff --git a/AstuteSystem/src/main/java/com/astute/model/PO.java b/AstuteSystem/src/main/java/com/astute/model/PO.java
index 621773e..210c8ee 100644
--- a/AstuteSystem/src/main/java/com/astute/model/PO.java
+++ b/AstuteSystem/src/main/java/com/astute/model/PO.java
@@ -15,8 +15,10 @@ public class PO implements Serializable{
private Double previouslyBilledAmount;
private int invoiceSequence;
private String notes;
+ private boolean isFinal;
+ private boolean oneInvInDraft;
- public PO(String PONum, String contractNum, String PODate, String customerId, Double contractAmt, String astuteProjectNum, String title, Double previouslyBilledAmount, int invoiceSequence, String notes) {
+ public PO(String PONum, String contractNum, String PODate, String customerId, Double contractAmt, String astuteProjectNum, String title, Double previouslyBilledAmount, int invoiceSequence, String notes, boolean isFinal, boolean oneInvInDraft) {
this.PONum = PONum;
this.contractNum = contractNum;
this.PODate = PODate;
@@ -27,6 +29,8 @@ public class PO implements Serializable{
this.previouslyBilledAmount = previouslyBilledAmount;
this.invoiceSequence = invoiceSequence;
this.notes = notes;
+ this.isFinal = isFinal;
+ this.oneInvInDraft = oneInvInDraft;
}
private String PONum;
@@ -110,4 +114,20 @@ public class PO implements Serializable{
public void setNotes(String notes) {
this.notes = notes;
}
+
+ public boolean getIsFinal() {
+ return isFinal;
+ }
+
+ public void setIsFinal(boolean isFinal) {
+ this.isFinal = isFinal;
+ }
+
+ public boolean isOneInvInDraft() {
+ return oneInvInDraft;
+ }
+
+ public void setOneInvInDraft(boolean oneInvInDraft) {
+ this.oneInvInDraft = oneInvInDraft;
+ }
}
\ No newline at end of file