mirror of
https://github.com/dyiop/astute.git
synced 2025-04-06 21:30:20 -04:00
Add files via upload
This commit is contained in:
parent
d0f54eff21
commit
27e2c5880c
|
@ -82,4 +82,18 @@ public class InvoiceResource {
|
||||||
|
|
||||||
return new ApiResponse(service.generateInvoiceNumber(PONum)).toResponse();
|
return new ApiResponse(service.generateInvoiceNumber(PONum)).toResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Path("/{InvoiceNumber}/submit")
|
||||||
|
@PUT
|
||||||
|
public Response submitInvoice(@PathParam("InvoiceNumber") String InvoiceNumber) throws AstuteException {
|
||||||
|
service.submitInvoice(InvoiceNumber);
|
||||||
|
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Path("/{InvoiceNumber}/submit")
|
||||||
|
@PUT
|
||||||
|
public Response voidInvoice(@PathParam("InvoiceNumber") String InvoiceNumber) throws AstuteException {
|
||||||
|
service.submitInvoice(InvoiceNumber);
|
||||||
|
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user