mirror of
https://github.com/dyiop/astute.git
synced 2025-04-09 06:40:20 -04:00
Add files via upload
This commit is contained in:
parent
784197b566
commit
93a7f2c04d
|
@ -125,6 +125,8 @@ public abstract class DAO {
|
||||||
|
|
||||||
public abstract void voidInvoice(String InvoiceNumber) throws AstuteException;
|
public abstract void voidInvoice(String InvoiceNumber) throws AstuteException;
|
||||||
|
|
||||||
|
public abstract String dupliateInvoice(String InvoiceNumber) throws AstuteException;
|
||||||
|
|
||||||
public abstract List<Customer> getCustomers(int customerId) throws AstuteException;
|
public abstract List<Customer> getCustomers(int customerId) throws AstuteException;
|
||||||
|
|
||||||
public abstract int createCustomer(String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) throws AstuteException;
|
public abstract int createCustomer(String customerName, String billToDept, String add1, String add2, String city, String state, int zip, int ziplast4, String email, int phone, int fax) throws AstuteException;
|
||||||
|
|
|
@ -523,6 +523,21 @@ public class SqlDAO extends DAO {
|
||||||
throw new AstuteException(DB_ERROR, e.getMessage());
|
throw new AstuteException(DB_ERROR, e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String dupliateInvoice(String InvoiceNumber) throws AstuteException {
|
||||||
|
try {
|
||||||
|
String generatedInvoiceNumber;
|
||||||
|
CallableStatement stmt = conn.prepareCall("{? = call duplicate_invoice(?)}");
|
||||||
|
stmt.registerOutParameter(1, Types.VARCHAR);
|
||||||
|
stmt.setString(2, InvoiceNumber);
|
||||||
|
stmt.execute();
|
||||||
|
generatedInvoiceNumber = stmt.getString(1);
|
||||||
|
return generatedInvoiceNumber;
|
||||||
|
} catch (SQLException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
throw new AstuteException(DB_ERROR,e.getMessage());
|
||||||
|
}
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
=============================== Customer Methods ===============================================
|
=============================== Customer Methods ===============================================
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user