Commit graph

49 commits

Author SHA1 Message Date
Methapon Metanipat
5e2100eb8d
feat: credit note (#171)
* feat: add main page credit note

* feat: enable credit note route and update menu item states

* refactor: add i18n

* refactor: edit i18n status

* feat: add action column

* feat: add empty form page

* feat: add get data

* feat: add type credit note status

* refactor: add type name en

* refactor: add type credit note status in type credit note

* feat: add hsla colors

* refactor: add slot grid

* refactor: handle  hide kebab edit show only tab tssued

* feat: show grid card

* feat: i18n

* feat: add credit note form and dialog

* refactor: add props hide kebab deelete

* refactor: hide kebab

* style: update color segments to indigo theme

* feat: i18n

* fix: update labels for credit note fields

* refactor: add type

* feat: new select quotation

* refactor: use new select quotation

* feat: navigate to

* refactor: function trigger and navigate to

* feat: i18n bank

* feat: add payment expansion component and integrate into credit note form

* refactor: bind i18n pay condition

* refactor: navigate to get quotation id

* feat: i18n

* fix: update label for createdBy field in credit note form

* feat: add credit note information expansion component

* feat: add Credit Note expansion component and update form layout

* refactor: bind quotation id and send

* refactor: deelete duplicate type

* refactor: show state button

* refactor: handle show status

* feat: add function update payback status

* feat: add return and canceled reasons to credit note translations

* feat: enhance SelectReadyRequestWork component with credit note handling and fetch parameters

* feat: type

* feat: add status handling and optional display for employee table

* refactor: rename selectedQuotationId to quotationId in FormCredit component

* feat: set default opened state for CreditNoteExpansion and add reason options

* feat: update PaymentExpansion to handle payback type selection and clear fields for cash payments

* feat: enhance ProductExpansion to support credit note handling and adjust price calculations

* feat: implement product handling and price calculation in CreditNote form

* feat: add manage attachment function to store

* refactor: bind delete credit note

* feat: add credit note status and reference fields to types

* refactor: update task step handling and simplify request work structure in credit note form

* feat: add navigation to quotation from credit note form

* feat: enhance upload section layout based on file data

* feat: add readonly functionality to credit note form and related components

* refactor: remove console log

* feat: update i18n

* style: add rounded corners to complete view container in quotation form

* feat: add RefundInformation component and update credit note form status handling

* feat: i18n

* feat: update payback status endpoint and add paybackStatus to CreditNote type

* feat: enhance QuotationFormReceipt component with optional props and slot support

* feat: integrate payback status handling in RefundInformation and FormPage components

* feat: add external file group

* feat: update API endpoint paths for credit note operations

* feat: improve layout and styling in UploadFile components

* feat: implement file upload and management in Credit Note

* refactor: update upload to check if it is redirect or not

* feat: upload file slips

* feat: add payback date dispaly

* refactor: change module no

* fix: icon link to main page instead

* feat: add file dialog with image download functionality

* fix: view slip

* feat: add download button to image viewer

* feat: handle after submit

* feat: conditionally render bank transfer information

* feat: handle upload file on create

* feat: handle change payback status

* feat: payback type in credit note form

* fix: correct reference to quotation data in goToQuotation function

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: puriphatt <puriphat@frappet.com>
Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2025-01-14 09:08:31 +07:00
puriphatt
f1b07a527b feat: add readonly state to FailRemarkDialog based on task status 2025-01-10 11:21:30 +07:00
Thanaphon Frappet
56e6eaf874 refactor: change label 2025-01-10 10:29:10 +07:00
Thanaphon Frappet
81864256f7 refactor: handle btn disabled current user statuse !== accept 2025-01-10 10:20:05 +07:00
Thanaphon Frappet
1e2aeb0afb refactor: show time 2025-01-09 17:34:23 +07:00
Thanaphon Frappet
6b688477f1 refactor: show date acceptd and submitted 2025-01-09 17:22:44 +07:00
Thanaphon Frappet
bf5ad411f7 refactor: change name value 2025-01-09 17:22:16 +07:00
Thanaphon Frappet
acfffd9188 refactor: handle status 2025-01-09 15:21:53 +07:00
Thanaphon Frappet
54bfb1c492 fix: add handle status redo 2025-01-09 15:05:08 +07:00
Thanaphon Frappet
ecba1afa75 fix: status restart can't change status 2025-01-09 14:41:54 +07:00
Thanaphon Frappet
e099e5a091 refactor: handle show i18n 2025-01-09 11:33:59 +07:00
Thanaphon Frappet
9abb2227cf chore: cleanup 2025-01-09 10:37:06 +07:00
Thanaphon Frappet
aeb16d9f7f fix: btn can't use 2025-01-09 10:24:41 +07:00
Thanaphon Frappet
557ca77d1f refeactor: handle status redo show i18n status 2025-01-09 09:51:48 +07:00
Thanaphon Frappet
ee1116011f refactor: some status 2025-01-08 14:07:25 +07:00
Thanaphon Frappet
66d9e3c1db refactor: handle status restart 2025-01-08 14:07:14 +07:00
Thanaphon Frappet
58d3ef7bd7 refactor: add type Restart 2025-01-08 14:06:48 +07:00
puriphatt
8dd36cbc64 feat: add action text to confirmation dialogs 2025-01-08 10:48:33 +07:00
Thanaphon Frappet
99d2f0da42 fix: issue branch missing 2025-01-08 09:51:50 +07:00
Thanaphon Frappet
718b17081c refactor: show issue branch 2025-01-08 09:46:26 +07:00
puriphatt
c64af9d992 feat: enhance task status handling and validation in TableEmployee & fail comment 2024-12-27 14:11:40 +07:00
puriphatt
cce1eccf8c fix: order => taskStatusCount function to filter by responsible user ID 2024-12-27 12:00:25 +07:00
puriphatt
35285f81b9 feat: receive => add task order status display with gradient styling 2024-12-27 10:44:15 +07:00
puriphatt
1458a32403 feat: order => add validation and status change handling in TableEmployee component 2024-12-27 10:26:26 +07:00
Thanaphon Frappet
835e8a7520 refactor: view doc only order 2024-12-27 09:49:29 +07:00
Methapon2001
04e745bfe0 chore: remove unused 2024-12-27 09:38:44 +07:00
Thanaphon Frappet
0d07cacfc0 refactor: show peview 2024-12-26 17:44:16 +07:00
puriphatt
305f0dfc4a fix: task receive => update user task status retrieval logic 2024-12-26 17:08:11 +07:00
Methapon2001
5df57063cd fix: wrong price 2024-12-26 16:47:35 +07:00
Methapon2001
033251c79d fix: wrong price 2024-12-26 16:44:01 +07:00
Methapon2001
34ede08244 fix: wrong condition 2024-12-26 16:39:25 +07:00
Methapon2001
8a071e61a6 fix: wrong price 2024-12-26 16:16:28 +07:00
puriphatt
fc804afd58 feat: include Canceled and Pending statuses in task status checks & update submitTaskOrder to accept user ID 2024-12-26 15:15:07 +07:00
puriphatt
1aedfe742f fix: task order => info messenger status 2024-12-26 15:14:44 +07:00
puriphatt
1c70245780 feat: include Canceled status in task status count calculation 2024-12-26 14:33:38 +07:00
puriphatt
9fe09ef4ae feat: include Pending status in task status count calculation 2024-12-26 14:14:16 +07:00
puriphatt
61d3adefae feat: add canceled status to task status list & remove from option 2024-12-26 13:06:33 +07:00
puriphatt
bb347d297b fix: update task-list-group condition to include create mode 2024-12-25 16:49:28 +07:00
Methapon2001
8175490563 fix: do not allow change to cancel status 2024-12-25 15:49:02 +07:00
Methapon2001
c9da7ed59f fix: can still check when disabled
fixes #165
2024-12-25 15:19:37 +07:00
Methapon2001
b988181631 fix(regression): cannot perform any action 2024-12-25 15:14:57 +07:00
Methapon2001
80ab12d77d refactor: route 2024-12-25 13:45:01 +07:00
Methapon2001
8885db8207 refactor: make type more accurate 2024-12-25 13:33:53 +07:00
Methapon2001
51a72a50f2 refactor: do not pass default option 2024-12-25 13:27:29 +07:00
Methapon2001
9bedf5f2fe refactor: datetime function 2024-12-25 13:26:05 +07:00
Methapon Metanipat
9eff614dbd
feat: task order (#141)
* feat: task order => routes

* feat: Page

* refactor: pagination

* refactor: taskOrder => table, card and constants

* feat: add structure select request list comp

* fix: re-export type

* refactor: edit path route of task order

* feat: trigger task order

* refactor: edit type task statss

* feat: table select request list

* feat: i18n

* refactor: quasar expansion chevron color

* refactor: type

* refactor: state btn status done

* feat: task order => order view layout

* feat: task order => remark expansion

* fix: task order => rename attachment to additional file

* feat: upload file section optional layout

* feat: task order => additional file expansion

* feat: task order => payment expansion

* feat: conditionally add urgent

* feat: send id together with link

* refactor: edit type

* feat: new form.ts

* refactor: edit url

* refactor: edit id trigger

* feat: select institution component

* feat: task order code i18n

* feat: task order => document expansion form

* feat: fallback address on null

* refactor: add type for table

* feat: add filter parameter

* refactor: edit name routes

* refactor: add type of task order payload

* refactor: by value form

* refactor: responsive quotation form info

* refactor: submit form

* refactor: add i18n

* refactor: status canceled

* refactor: handle task status

* refactor: handle mode view

* refactor: addtaskstatus

* refactor: i18n & constants

* refactor: table employee

* refactor: select ready request work

* refactor: handle save form

* refactor: edit layout btn

* feat: undo()

* cleanup delete import

* feat: closetab

* refactor: handle readonly

* fix: body edit

* refactor: handle readonly uploadfile

* feat: import manage attachment

* refactor: quotation/task-order => type

* refactor: select ready request work

* refactor: i18n & constants

* chore: clean duplicate i18n

* refactor: type according to backend relation

* refactor: edit base url

* feat: upload file

* feat: fetch file list

* feat: get url file

* refactor: set default opened

* refactor: type

* feat: removefile

* feat: task order => select product

* feat: add parameter only active branch is selectable

* refactor: add i18n

* feat: set layout

* feat: add info product expansion

* refactor: new info messenger

* refactor: add slot name value

* refactor: add i18n

* refactor: edit type task status

* refactor: use date format

* refactor: value can null

* refactor: add i18n

* cleanup

* feat: productlistinput

* refactor: edit i18n

* refactor: edit redo

* refactor: add slot

* feat: task order => i18n

* refactor: task order => constant

* refactor: taskOrder => status type and index

* feat: taskOrder => ReceiveDialog

* refactor: wording

* refactor: table employee due date

* refactor: receive task i18n

* feat: trigger receive & task stat in receive page

* refactor: receive dialog task in cart  i18n

* fix: remove task-order/receive/add

* feat: receivetabletaskorder

* refactor: fetch task on receive dialog

* feat: add separate api get user task

* refactor: receive fetch (messenger)

* refactor: edit layout table

* refactor: task order i18n & constant

* refactor: task order change tab and stat (messenger and !messenger)

* fix: task order status display & receive badge color (card)

* refactor: trigger receive view

* fix: add receive task condition

* feat: total count

* feat: prepare information

* fix: i18n error task order not found

* refacor: value

* feat: select worker

* refactor: status i18n & constant

* refactor: table employee props (check box, step)

* fix: order => select ready task

* refactor: order => toggle status

* refactor: receive => receive dialog

* feat: featch value

* refactor: task status display components

* refactor: status active can is null

* feat: update status tab

* refactor: data display

* refactor: i18n & fullTaskOrder variable

* refactor: task receive view

* refactor: add type responsible user

* refactor: set group messenger

* cleanup:

* refactor: i18n / clone full task order / service => workflow type

* refactor: receive view

* refactor: show info messenger

* refactor: handle flow step

* refactor: receive view => opacity when pending

* feat: add workflow template name and step name

* feat: display workflow data on table

* feat: add template step identifier

* fix: edit does not change workflow id if changed

* feat: detect if same template and step

* refactor: handle template

* refactor: add slot name product

* refactor: map step in list product

* refactor: bind data messenger list group

* refactor: change endpoint name

* chore: add helper package

* feat: changetaskstatus

* refactor: update type

* refactor: set color btn

* refactor: add step

* refactor: add resposible institution

* feat: disabled

* refactor: map responsible institution

* fix: order view => readonly

* chore: clean

* refactor: edit url api

* refactor: edit name type

* refactor: add slots action

* refactor: add type row

* refactor: add opts of task status

* refactor: add select status

* refactor: handle btn

* refactor: add btn change task status

* refactor: edit i18n redo th

* refactor: sort status opts

* feat: receive & order banner img

* refactor: fetch status after submit

* refactor: handle create only

* refactor: task order status type Accept (messenger only)

* feat: receive messenger profile

* refactor: receive toggle status (display only)

* fix: document expansion readonly

* feat: confirmsendingbtn

* refactor: constant and task order status

* feat: receive task list count

* refactor: post or get

* refactor: define props institution group

* refactor: fetch status after submit

* refactor: handle create

* refactor: handle query

* refactor: update endpoint to support accept multiple order

* refactor: change function name

* feat: receive => functional accept task order

* feat: task status count

* feat: receive stat card count

* refactor: order messenger profile

* refactor: edit value to be task status

* refactor: handle status of type order

* refactor: use componet task status

* refactor: handle show btn saving status

* refactor: order => task status

* refactor: edit selectStatus => changeStatus

* refactor: edit @click btn confirmssending

* refactor: add i18n

* refactor: add function get template data

* refactor: add change status

* refactor: handle type receive

* feat: order => auto change tab by status

* refactor: fetch task after change status

* feat: fail remark dialog

* refactor: display step order (table employee)

* refactor: fail remark dialog

* refactor: order => open ready request dialog map selected

* refactor: task list type & change status param

* refactor: table task order, td background when selected

* refactor: order => change status param

* refactor: order => selectedEmployee variable type

* refactor: task status component => shield btn

* refactor: receive => change status

* refactor: order => step btn waiting

* fix: step btn waiting condition

* refactor: filter selectable task (Failed)

* refactor: find index condition on check

* refactor: no request list available

* refactor: fail btn no-wrap

* refactor: fail dialog readonly

* fix: reset state on open dialog

* fix: wrong title position

* refactor: hide task status drop down icon

* fix: handle check condition

* refactor: add userTask type and status

* feat: submit task order function

* refactor: table employee checkbox display condition

* refactor: main layout

* fix: task order validate i18n

* refactor: table task order add submit status

* refactor: status list

* refactor: info product => user task status

* feat: receive => submit task & step

* refactor: i18n

* feat: complete task oder function

* refactor: task status component no action props

* refactor: info messenger status

* refactor: receive and order view

* refactor: order complete view

* refactor: order => complete color and title

* refactor: calc price on table

* refactor: quotation table i18n + product image

* refactor: remove urgent checkbox

* refactor: task status color

* feat: calc summary price

* fix: data is not available

* feat: add doc view structure

* refactor: format address text

* feat: fetch document data from api

* fix: value is null

* fix: regression cannot edit package

* feat: add document view for task order

* feat: add view document button

* feat: update type add discount

* feat: readonly on cancel

* feat: add discount from relation

* refactor: add taskProduct on submit order

* refactor: order => task product discount

* refactor: order => date, task status count, view example

* refactor: receive date

* refactor: receive task status count

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
Co-authored-by: nwpptrs <jay02499@gmail.com>
Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: oat_dev <nattapon@frappet.com>
2024-12-25 11:59:49 +07:00
puriphatt
530ad6042b feat: task order => column constant 2024-12-02 10:57:35 +07:00
puriphatt
936fd7ebdd refactor: task order main page & constants 2024-12-02 10:35:50 +07:00
puriphatt
37ff10cd85 feat: task order main page 2024-12-02 10:02:24 +07:00