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
93a7f2c04d
commit
aae875feca
|
@ -79,7 +79,6 @@ public class InvoiceResource {
|
||||||
@Path("/generateInvoiceNumber/{PONum}")
|
@Path("/generateInvoiceNumber/{PONum}")
|
||||||
@GET
|
@GET
|
||||||
public Response generateInvoiceNumber(@PathParam("PONum") String PONum) throws AstuteException {
|
public Response generateInvoiceNumber(@PathParam("PONum") String PONum) throws AstuteException {
|
||||||
|
|
||||||
return new ApiResponse(service.generateInvoiceNumber(PONum)).toResponse();
|
return new ApiResponse(service.generateInvoiceNumber(PONum)).toResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -96,4 +95,10 @@ public class InvoiceResource {
|
||||||
service.voidInvoice(InvoiceNumber);
|
service.voidInvoice(InvoiceNumber);
|
||||||
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
return new ApiResponse(ApiResponse.UPDATE_ACCESS_SUCESS).toResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Path("/{InvoiceNumber}/duplicate")
|
||||||
|
@PUT
|
||||||
|
public Response duplicateInvoice(@PathParam("InvoiceNumber") String InvoiceNumber) throws AstuteException {
|
||||||
|
return new ApiResponse(service.dupliateInvoice(InvoiceNumber)).toResponse();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user