Add files via upload

This commit is contained in:
gopi17701 2018-07-23 13:26:59 -04:00 committed by GitHub
parent cd56ed1ab4
commit 14d9eb6f26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -50,7 +50,7 @@ public class InvoiceResource {
public Response updateInvoiceDetail(@PathParam("InvoiceNum") String InvoiceNum, @PathParam("lineItemNum") int lineItemNum, InvoiceDetailRequest request)
throws AstuteException {
service.updateInvoiceDetail(InvoiceNum, lineItemNum, request.getPoLineItemNum(), request.getServiceTypeId(),
request.getDesc(), request.getPercentCompletion(), request.getHours(), request.getAnount());
request.getDesc(), request.getQty(), request.getFee());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@POST
@ -65,7 +65,7 @@ public class InvoiceResource {
public Response createInvoiceDetail(InvoiceDetailRequest request)
throws AstuteException {
service.createInvoiceDetail(request.getInvoiceNum(), request.getLineItemNum(), request.getPoLineItemNum(), request.getServiceTypeId(),
request.getDesc(), request.getPercentCompletion(), request.getHours(), request.getAnount());
request.getDesc(), request.getQty(), request.getFee());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}

View File

@ -25,9 +25,9 @@ public class POResource {
public Response getPOMaster(
@QueryParam("PONum") String PONum,
@QueryParam("ContractNum") String contractNum,
@QueryParam("PODate") Date PODate)
@QueryParam("PODate") Date PODate, String astuteProjectNumber)
throws AstuteException {
return new ApiResponse(POService.getPOMaster(PONum, contractNum, PODate)).toResponse();
return new ApiResponse(POService.getPOMaster(PONum, contractNum, PODate, astuteProjectNumber)).toResponse();
}
@Path("/detail")
@ -41,7 +41,7 @@ public class POResource {
@PUT
public Response updatePOMaster(@PathParam("PONum") String PONum, POMasterRequest request)
throws AstuteException {
POService.updatePOMaster(PONum, request.getContractNum(), request.getPODate(), request.getContractAmt());
POService.updatePOMaster(PONum, request.getContractNum(), request.getPODate(), request.getContractAmt(), request.getAstuteProjectNumber());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@ -50,14 +50,14 @@ public class POResource {
public Response updatePODetail(@PathParam("PONum") String PONum, @PathParam("lineItemNo") int lineItemNo, PODetailRequest request)
throws AstuteException {
POService.updatePODetail(PONum, lineItemNo, request.getServiceDesc(), request.getFeeTypeId(),
request.getQty(), request.getServiceTypeId());
request.getQty(), request.getFee(), request.getServiceTypeId());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@POST
public Response createPOMaster(POMasterRequest request)
throws AstuteException {
POService.createPOMaster(request.getPoNum(), request.getContractNum(), request.getPODate(), request.getContractAmt(), request.getCustomerId());
POService.createPOMaster(request.getPoNum(), request.getContractNum(), request.getPODate(), request.getContractAmt(), request.getCustomerId(), request.getAstuteProjectNumber());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@Path("/detail")
@ -65,7 +65,7 @@ public class POResource {
public Response createPODetail(PODetailRequest request)
throws AstuteException {
POService.createPODetail(request.getPoNum(), request.getLineItemNo(), request.getServiceDesc(), request.getFeeTypeId(),
request.getQty(), request.getServiceTypeId());
request.getQty(), request.getFee(), request.getServiceTypeId());
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
}