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
cd56ed1ab4
commit
14d9eb6f26
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user