productModule

productModule

class to handle product functions

Constructor

new productModule()

Source:

Methods

(async, static) bidHistory(id, cnt) → {object}

Source:

Fetch All Bid history

Parameters:
Name Type Description
id object

project id

cnt number

count for the pagination

Returns:

sql response

Type
object

(async, static) bidHistoryViewPage(req, count) → {object}

Source:

Fetch Bid history

Parameters:
Name Type Description
req object

req.body

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) fetchAllAttachments(req, data, count) → {object}

Source:

Search all the attachments for products

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) isbuyerbidstarted(id, cnt) → {object}

Source:

Fetch All Bid history

Parameters:
Name Type Description
id object

project id

cnt number

count for the pagination

Returns:

sql response

Type
object

(async, static) searchDashboardProducts(req, data, count) → {object}

Source:

Search all the dashboard products

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) searchInvoiceProducts(req, data, count) → {object}

Source:

Search all the invoice products

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) searchProducts(req, data, count) → {object}

Source:

Search all the search products

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object

(async, static) searchReturnProducts(req, data, count) → {object}

Source:

Search all the return products

Parameters:
Name Type Description
req object

req object

data object

req.body object

count number

count for the pagination

Returns:

sql response

Type
object