A new API for Time Attendance has been added with BioStar 2.8.13.

 

For ‘How to use TA API swagger’, please refer to the link below:

 [BioStar 2 TA API] How to use and start BioStar 2 TA API  

 

 

How to Create Rules

BioStar 2 TA Rules can be created by using TA API.

 

텍스트이(가) 표시된 사진

자동 생성된 설명

 


 

 You can find the /tna/Rule API in your TA Swagger.

 

 

Part 1. Create Rules

 

[POST]: /tna/rules

[Parameters] 

Name

Type

*M/O

Explanation

Value

Daily_overtime.double_overtime.overtime_minutes

Int

M

 

Ex) 0

Daily_overtime.double_overtime.pay_code_after_overtime_minutes.id

Int

M

 

 

Daily_overtime.double_overtime.pay_code_after_overtime_minutes.name

String

M

 

 

Daily_overtime.max_minutes

Int

M

 

 

Daily_overtime.overtime.pay_code_after_regular_minutes.id

Int

M

 

 

Daily_overtime.overtime.pay_code_after_regular_minutes.name

String

M

 

 

Daily_overtime.overtime.regular_minutes

Int

M

 

 

Daily_overtime.use

True or false

M

 

 

Description

String

M

 

 

Holiday_overtime.day_start_time

int

M

 

 

Holiday_overtime.pay_code.id

Int

M

 

 

Holiday_overtime.pay_code.name

String

M

 

 

Holiday_overtime.first_in_last_out

True/false

M

 

 

Holiday_overtime.use

True/false

M

 

 

Monthly_overtime.double_overtime.overtime_minutes

Int

M

 

 

Monthly_overtime.double_overtime.pay_code_after_overtime_minutes.id

Int

M

 

 

Monthly_overtime.double_overtime.pay_code_after_overtime_minutes.name

String

M

 

 

Monthly_overtime.max_minutes

Int

M

 

 

Monthly_overtime.overtime.pay_code_after_regular_minutes.id

Int

M

 

 

Monthly_overtime.overtime.pay_code_after_regular_minutes.name

String

M

 

 

Monthly_overtime.overtime.regular_minutes

Int

M

 

 

Monthly_overtime.use

True/false

M

 

 

Name

String

M

 

 

Weekend_overtime.day_start_time

Int

M

 

 

Weekend_overtime.pay_code.id

Int

M

 

 

Weekend_overtime.pay_code.name

String

M

 

 

Weekend_overtime.first_in_last_out

True/false

M

 

 

Weekend_overtime.use

True/false

M

 

 

Weekend_overtime.max_minutes

Int

M

 

 

Weekend_overtime.overtime.pay_code_after_regular_minutes.id

Int

M

 

 

Weekend_overtime.overtime.pay_code_after_regular_minutes.name

String

M

 

 

Weekend_overtime.overtime.regular_minutes

Int

M

 

 

Weekend_overtime.use

True/false

M

 

 

   * M – Mandatory, O – Optional

[Example Value/Parameters Model]

{

       "daily_overtime": {

           "double_overtime": {

               "overtime_minutes": 0,

               "pay_code_after_overtime_minutes": {

                "id": 0,

                "name": "None"

               }

           },

           "max_minutes": 0,

           "overtime": {

               "pay_code_after_regular_minutes": {

                "id": 0,

                "name": "None"

               },

               "regular_minutes": 0

           },

           "use": false

    },

       "description": "Rule 4",

       "holiday_overtime": {

           "day_start_time": 300,

           "pay_code": {

               "id": 0,

               "name": "None"

           },

           "first_in_last_out": false,

           "use": false

    },

       "monthly_overtime": {

           "double_overtime": {

               "overtime_minutes": 0,

               "pay_code_after_overtime_minutes": {

                "id": 0,

                "name": "None"

               }

           },

           "max_minutes": 0,

           "overtime": {

               "pay_code_after_regular_minutes": {

                "id": 0,

                "name": "None"

               },

               "regular_minutes": 0

           },

           "use": false

    },

       "name": "Rule 4",

       "weekend_overtime": {

           "day_start_time": 300,

           "pay_code": {

               "id": 0,

               "name": "None"

           },

           "first_in_last_out": false,

           "use": false

    },

       "weekly_overtime": {

           "double_overtime": {

               "overtime_minutes": 0,

               "pay_code_after_overtime_minutes": {

                "id": 0,

                "name": "None"

               }

           },

           "max_minutes": 0,

           "overtime": {

               "pay_code_after_regular_minutes": {

                "id": 0,

                "name": "None"

               },

               "regular_minutes": 0

           },

           "use": false

    }

}

 

[Response: successful]

{

    "id": 5,

    "message": "Created successfully",

       "message_key": "CREATED",

    "language": "en",

       "status_code": "CREATED"

}

 

Above response represents the results same as the screenshot below.

테이블이(가) 표시된 사진

자동 생성된 설명 

 

 

 

Part 2. Create Rules via POSTMAN

텍스트, 스크린샷, 모니터이(가) 표시된 사진

자동 생성된 설명