uBugtrack
Plans & pricing
Login/Register Free
uBugtrack
Plans & pricing
Tasks/Issues
Releases
Crashes
Stats
Login/Register Free
Tasks/Issues List
Releases
Crash Reporter
Stats
Edit #174
Project
CBTS - Dev - obsoleted
Opened by
Steven Loh
On
2017-03-09
Status
Closed
Labels
Task
Priority
Assigned To
Terence Goh
External ID
Open in release
Fixed/Target in release
Enable Markdown -
Preview
What Is Markdown?
##### Created 9 Mar 2017, by Steven Loh ### Objective Provide a set of web API for Internal Invoice module. ### API list and endpoints #### GET invoice/internal/globals/index 1. Returns the global data required by the internal invoice listing page. 1. Focus on returning data for web controls inside Advanced Search panel. #### GET invoice/internal/globals/edit 1. Returns the global data required by the add/edit pop-up for internal invoice module. 1. Focus on returning data for web controls for data selection, e.g. dropdown boxes. Do not return data that are invoice specific. #### GET invoice/internal/?[get-params] 1. Returns list of internal invoice available on the system. 1. GET params shall accomodate requirements by listing page advanced search, and standard q, p, n and o params. 1. Every element in the data array shall only return internal invoice details required by the listing table. #### GET invoice/internal/{id} 1. Returns an object representing one internal invoice record containing only the required data to be used by the view and add/edit pop-up. 1. Returns invoice view model with dummy data if {id} is -1, and empty view model with default values if {id} is 0. 1. Returns 404 if the invoice does not belong to internal invoice type. 1. Returns the printable format of the invoice when request specifies request header "Accept". Support MIME type of **application/pdf** and use GET params to determine A4 or dot-matrix. This print requirement is not within the scope of this task, refer to task #xxx. #### POST invoice/internal 1. Creates a new internal invoice. #### PUT invoice/internal/{id} 1. Updates an existing internal invoice identified by {id}. 1. Updating of an internal invoice only allowed for invoice with status: - New - Confirmed (within accounting period) 1. Updating a confirmed invoice after accounting period requires the following action: - Cancel the invoice identified by {id} - Create a CN for the invoice identified by {id} - Create a new invoice with updated information (with a new ID and invoice no). #### GET invoice/internal/{id}/status 1. Returns a collection (log) of status of the internal invoice identified by {id}, sorted by `CREATE_DATE` of the status. 1. This API returns all records and does not support any `get-params`. #### POST invoice/internal/{id}/status 1. Creates a new status for the internal invoice. 1. This API is used to change the latest status of an internal invoice and creates a log of the status change of the invoice, e.g. confirmed, rejected, cancelled. #### GET invoice/internal/{iiv_id}/notes 1. Returns list of CN/DN associated with the specific internal invoice. 1. This API does not require to return details of the internal invoice itself. #### GET invoice/internal/{iiv_id}/notes/{id} 1. Returns CN/DN details of an internal invoice identified by {id}. 1. Returns CN/DN view model with dummy data if {id} is -1, and empty view model with default values if {id} is 0. 1. Returns 404 if the CN/DN does not belong to internal invoice with id {iiv_id}. 1. Returns the printable format of the CN/DN when request specifies request header "Accept". Support MIME type of **application/pdf** and use GET params to determine A4 or dot-matrix. This print requirement is not within the scope of this task, refer to task #xxx. #### POST invoice/internal/{iiv_id}/notes 1. Creates a new CN/DN for internal invoice identified by {iiv_id}. #### PUT invoice/internal/{iiv_id}/notes/{id} 1. Updates an existing CN/DN for internal invoice identified by {iiv_id}. 1. Returns 404 if the CN/DN does not belong to internal invoice with id {iiv_id} #### GET invoice/internal/{iiv_id}/notes/{id}/status 1. Returns a collection (log) of status of the CN/DN identified by {id}, sorted by `CREATE_DATE` of the status. 1. This API returns all records and does not support any `get-params`. #### POST invoice/internal/{iiv_id}/notes/{id}/status 1. Creates a new status for CN/DN for internal invoice identified by {iif_id}. 1. This API is used to change the latest status of a CN/DN for internal invoice and creates a log of the status change of the invoice, e.g. confirmed, rejected, cancelled. ### Others 1. API for internal invoice does not implement the DELETE method. 1. Estimation: 80 hours, including database schema design and implementation, FO integration.
[Billing -Internal Billing - Invoice] : Web API
Created 9 Mar 2017, by Steven Loh
Objective
Provide a set of web API for Internal Invoice module.
API list and endpoints
GET invoice/internal/globals/index
Returns the global data required by the internal invoice listing page.
Focus on returning data for web controls inside Advanced Search panel.
GET invoice/internal/globals/edit
Returns the global data required by the add/edit pop-up for internal invoice module.
Focus on returning data for web controls for data selection, e.g. dropdown boxes. Do not return data that are invoice specific.
GET invoice/internal/?[get-params]
Returns list of internal invoice available on the system.
GET params shall accomodate requirements by listing page advanced search, and standard q, p, n and o params.
Every element in the data array shall only return internal invoice details required by the listing table.
GET invoice/internal/{id}
Returns an object representing one internal invoice record containing only the required data to be used by the view and add/edit pop-up.
Returns invoice view model with dummy data if {id} is -1, and empty view model with default values if {id} is 0.
Returns 404 if the invoice does not belong to internal invoice type.
Returns the printable format of the invoice when request specifies request header "Accept". Support MIME type of
application/pdf
and use GET params to determine A4 or dot-matrix.
This print requirement is not within the scope of this task, refer to task #xxx.
POST invoice/internal
Creates a new internal invoice.
PUT invoice/internal/{id}
Updates an existing internal invoice identified by {id}.
Updating of an internal invoice only allowed for invoice with status:
New
Confirmed (within accounting period)
Updating a confirmed invoice after accounting period requires the following action:
Cancel the invoice identified by {id}
Create a CN for the invoice identified by {id}
Create a new invoice with updated information (with a new ID and invoice no).
GET invoice/internal/{id}/status
Returns a collection (log) of status of the internal invoice identified by {id}, sorted by
CREATE_DATE
of the status.
This API returns all records and does not support any
get-params
.
POST invoice/internal/{id}/status
Creates a new status for the internal invoice.
This API is used to change the latest status of an internal invoice and creates a log of the status change of the invoice, e.g. confirmed, rejected, cancelled.
GET invoice/internal/{iiv_id}/notes
Returns list of CN/DN associated with the specific internal invoice.
This API does not require to return details of the internal invoice itself.
GET invoice/internal/{iiv_id}/notes/{id}
Returns CN/DN details of an internal invoice identified by {id}.
Returns CN/DN view model with dummy data if {id} is -1, and empty view model with default values if {id} is 0.
Returns 404 if the CN/DN does not belong to internal invoice with id {iiv_id}.
Returns the printable format of the CN/DN when request specifies request header "Accept". Support MIME type of
application/pdf
and use GET params to determine A4 or dot-matrix.
This print requirement is not within the scope of this task, refer to task #xxx.
POST invoice/internal/{iiv_id}/notes
Creates a new CN/DN for internal invoice identified by {iiv_id}.
PUT invoice/internal/{iiv_id}/notes/{id}
Updates an existing CN/DN for internal invoice identified by {iiv_id}.
Returns 404 if the CN/DN does not belong to internal invoice with id {iiv_id}
GET invoice/internal/{iiv_id}/notes/{id}/status
Returns a collection (log) of status of the CN/DN identified by {id}, sorted by
CREATE_DATE
of the status.
This API returns all records and does not support any
get-params
.
POST invoice/internal/{iiv_id}/notes/{id}/status
Creates a new status for CN/DN for internal invoice identified by {iif_id}.
This API is used to change the latest status of a CN/DN for internal invoice and creates a log of the status change of the invoice, e.g. confirmed, rejected, cancelled.
Others
API for internal invoice does not implement the DELETE method.
Estimation: 80 hours, including database schema design and implementation, FO integration.
Comments
Commits
Terence Goh
change status to
In progress
Wednesday March 15, 2017 - 11:23:59
Terence Goh
was assigned by Terence Goh
Thursday March 16, 2017 - 01:55:41
Terence Goh
change status to
Ready for Testing
Wednesday May 17, 2017 - 07:48:51
Display Comment and Event
All
Only Comment
Only Event
You don't have any commit attached on this ticket.
How integrate with source control
WARNING !!
Are you sure you want to delete ticket #174 ?