Add files via upload

This commit is contained in:
gopi17701 2018-09-09 02:34:14 -04:00 committed by GitHub
parent c6cdd80bee
commit 3c16162ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,6 +49,15 @@ public class InvoiceResource {
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@Path("/{InvoiceNum}/delete")
@PUT
public Response deleteInvoice(@PathParam("InvoiceNum") String InvoiceNum)
throws AstuteException {
service.deleteInvoice(InvoiceNum);
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
}
@Path("/detail/{InvoiceNum}/{lineItemNum}")
@PUT
public Response updateInvoiceDetail(@PathParam("InvoiceNum") String InvoiceNum, @PathParam("lineItemNum") int lineItemNum, InvoiceDetailRequest request)