Add files via upload

This commit is contained in:
gopi17701 2018-08-23 14:10:29 -04:00 committed by GitHub
parent 2d6f4e139e
commit 37ac64643a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}