mirror of
https://github.com/dyiop/astute.git
synced 2025-04-05 21:10:16 -04:00
Add files via upload
This commit is contained in:
parent
2d6f4e139e
commit
37ac64643a
|
@ -43,11 +43,8 @@ public class InvoiceResource {
|
|||
@PUT
|
||||
public Response updateInvoiceMaster(@PathParam("InvoiceNum") String InvoiceNum, InvoiceMasterRequest request)
|
||||
throws AstuteException, ParseException {
|
||||
String dateStr = request.getInvoiceDate();
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date date = new java.sql.Date(df.parse(dateStr).getTime());
|
||||
|
||||
service.updateInvoiceMaster(InvoiceNum, date, request.getPoNum(),
|
||||
service.updateInvoiceMaster(InvoiceNum, request.getInvoiceDate(), request.getPoNum(),
|
||||
request.getPmtStatus(), request.getBillAmt(), request.getSpecialNotes(), request.getCertification(), request.getInvoiceStatus());
|
||||
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||
}
|
||||
|
@ -63,11 +60,8 @@ public class InvoiceResource {
|
|||
@POST
|
||||
public Response createInvoiceMaster(InvoiceMasterRequest request)
|
||||
throws AstuteException, ParseException {
|
||||
String dateStr = request.getInvoiceDate();
|
||||
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
|
||||
Date date = new java.sql.Date(df.parse(dateStr).getTime());
|
||||
|
||||
service.createInvoiceMaster(request.getInvoiceNumber(), date, request.getPoNum(),
|
||||
service.createInvoiceMaster(request.getInvoiceNumber(), request.getInvoiceDate(), request.getPoNum(),
|
||||
request.getPmtStatus(), request.getBillAmt(), request.getSpecialNotes(), request.getCertification(), request.getInvoiceStatus());
|
||||
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user