Commit graph

97 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
fcfc3e2a2b fix: update drawer mini state to adapt based on screen size 2025-01-06 10:05:27 +07:00
puriphatt
7faef797cc refactor: update user image handling and disabled profile menu options 2024-12-26 11:58:07 +07:00
Methapon2001
a0013bdbe0 fix: wrong hidden menu condition 2024-12-04 18:07:10 +07:00
puriphatt
c7f0a6d240 feat: task order menu 2024-12-02 10:02:10 +07:00
Methapon Metanipat
972f6ba13e
feat: menu request list (#75)
* feat: i18n

* feat: request list

* refactor: hide stat transition on app.scss

* feat: request list i18n

* feat: request list => constants and main page

* feat: add store

* feat: add fetch data

* feat: add utilities fn

* feat: add store function / types

* refactor: request list type

* refactor: request list constants

* refactor: quotation card => add customData and badge color props

* feat: avatar group components

* feat: request list group

* refactor: request list => remove tab, add table data

* feat: send search query

* feat: add parameter

* refactor: remove unused function

* fix: rename component lits to list

* feat: show stats from api

* chore: cleanup

* refactor: make it type safe

* refactor: accept rotate flow id as parameter

* feat: use page size component

* feat: add component, data display & expansion product

* feat: i18n

* refactor: constants and request list table

* refactor: type code, createdAt, updatedAt

* refactor: utils function changThemeMode

* feat: request list => view page

* refactor: use type instead of infer from value

* fix: function getEmployeeName att type

* refactor: fetch work list

* refactor: loop work list

* feat: add i18n duty

* feat: add form issue component

* feat: add form issue section

* fix: store error

* refactor: edit by value

* refactor: accept basic info from outside instead

* feat: add status filter support on fetch

* refactor: remove delete button

* refactor: wording

* feat/fix: request list i18n & constant

* feat: document type

* feat/refactor: request list => document expansion

* refactor: doc expansion use FormGroupHead

* refactor: fetch data based on id from route param

* refactor: text area disable

* feat: properties expansion display (mocking)

* refactor: add document at product relation

* refactor: edit get value product

* feat: get workflow step to show on top

* refactor: add type

* refactor: add get attachment

* refactor: add view attachment

* refactor: edit file name

* refactor: define props get hide icon

* refactor: edit align row

* refactor: by value table document

* refactor: by value row table

* feat: add independent ocr dialog

* chore: clean up

* refactor: accept more props and small adjustment

* fix: error withDefault call

* feat: accept default metadata when open

* fix: typo

* feat: add override hook when finish ocr

* feat: reset state on open

* feat: detect reader result is actually string

* fix: variable name conflict

* feat: properties to input component

* feat: properties input in properties expansion

* feat: properties expansion data (temporary)

* refactor: add i18n status work

* refactor: edit type work status and add step status

* refactor: add edit status work

* refactor: edit step work

* refactor: properties data type

* refactor: filter selected product & specific properties

* feat: add emit event

* refactor: change variable name for better understanding

* refactor: hide step that no properties

* refactor: work status type to validate

* feat: work status color

* refactor: key for filename

* refactor: close expansion when change step

* refactor: responsive meta data

* refactor: product expansion responsive

* fix: dark mode step text color

* fix: document expansion table no data label

* refactor: main page body bordered and overflow hidden

* refactor: use utils function instead

* refactor: add process

* refactor: by value  name

* refactor: add upload file

* refactor: upload file

* refactor: by value

* fix: option worker type

* refactor: fetchRequestAttachment after edit

* fix: metadata display

* refactor: add class full-height

* refactor: edit type

* refactor: fetch file

* refactor: by value visa

* refactor: request list attributes type

* fix: properties to input props (placeholder, readonly, disable)

* feat: request list properties function

* fix: error when no workflow

* docs: update comment to fix indent

* refactor: step type (attributes)

* refactor: add attributes payload on editStatusRequestWork function

* feat/refactor: functional form expansion/filter worklist

* refactor: set attributes properties after submit

* refactor: add request work ready status

* feat: request list => form employee component

* feat/refactor: form expansion select user/layout

* fix: properties readonly

---------

Co-authored-by: puriphatt <puriphat@frappet.com>
Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-11-22 18:02:03 +07:00
Methapon Metanipat
b0136bba4d
refactor: global shared state and function (#79)
* refactor: expose i18n instance

* feat: add global app utility function

* refactor: use global utility function

* refactor: avoid undefined when use outside vue

refactor: avoid undefined when use outside vue

* refactor: remove dup code and use util

* refactor: auto fetch option when use store
2024-11-21 11:55:44 +07:00
Thanaphon Frappet
1ea35890e9 refactor: menu document 2024-11-11 11:23:52 +07:00
Methapon Metanipat
959fb9b45f refactor: show manage workflow page 2024-11-08 16:44:15 +07:00
puriphatt
b87e15301f
feat: menu agencies (#65)
* feat: agencies => add agencies menu

---------

Co-authored-by: Methapon Metanipat <methapon@frappet.com>
2024-11-08 13:11:42 +07:00
puriphatt
f6479cc72d fix: drawer menu => hide workflow 2024-11-08 13:08:40 +07:00
puriphatt
7debc4ff1a fix: add drawer menu id 2024-11-01 10:02:53 +07:00
puriphatt
13bf8e9ee0 fix: drawer menu dark mode, rearrange 2024-10-31 18:18:29 +07:00
puriphatt
9a8b0ca72f fix: drawer menu hover style 2024-10-31 13:38:46 +07:00
Methapon Metanipat
10e963e430
refactor: drawer menu (#34) 2024-10-31 10:46:42 +07:00
Methapon Metanipat
2558122a6b fix: css syntax 2024-10-31 10:03:39 +07:00
puriphatt
e273ad1015 fix: drawer mini 2024-10-31 09:16:04 +07:00
puriphatt
83d028ec15 chore: clean and rearrange code 2024-10-30 16:12:06 +07:00
puriphatt
3119cef2ff fix: new drawer menu 2024-10-30 16:05:27 +07:00
Methapon Metanipat
6b29d3b017 refactor: extract navigator into store instead 2024-10-30 11:55:53 +07:00
puriphatt
4453d563e6 refactor: fetch config & warning color 2024-10-16 11:14:13 +07:00
Methapon Metanipat
9f49eefaba feat: enable quotation menu 2024-10-10 17:50:58 +07:00
Thanaphon Frappet
4a6a97a413 refactor: add id btn 2024-10-04 16:48:23 +07:00
puriphatt
e4b9e186a8 refactor: quotation 2024-09-30 16:36:18 +07:00
puriphatt
1fd6857606 refactor(02): remove disable date 2024-09-25 13:13:28 +07:00
puriphatt
182ddc2d92 fix: add id drawer 2024-09-18 15:04:45 +07:00
puriphatt
286fe5bd31 refactor: profile menu id 2024-09-18 14:21:07 +07:00
puriphatt
d818e9e027 refactor: profile menu id 2024-09-18 14:10:03 +07:00
puriphatt
f7bf9fa91b feat: quatation tree 2024-09-16 10:32:06 +07:00
Net
fa1f2f61ef refactor: check role head_of_account 2024-09-04 14:37:22 +07:00
puriphatt
5adf80142a refactor: profile menu role 2024-09-03 10:48:00 +07:00
Net
762fcd84b2 refactor: Check role 2024-08-30 11:43:05 +07:00
puriphatt
185a713ad1 fix: i18n & work name before close 2024-08-28 18:05:01 +07:00
Methapon Metanipat
c681b19e39 Merge refactor/i18n into develop 2024-08-26 16:24:18 +07:00
puriphatt
18efaa48b6 refactor: misc 2024-08-20 18:04:42 +07:00
puriphatt
a6ad22f8de fix: drawer padding 2024-08-19 15:05:37 +07:00
Net
aabc068430 refactor: edit padding 2024-08-16 17:46:37 +07:00
puriphatt
e1a05f544d fix: drawer tooltip 2024-08-16 11:09:53 +07:00
puriphatt
2f289cfaea refactor(04): service work product price color 2024-08-15 15:18:26 +07:00
puriphatt
7d63e2ac2f fix: role owner and system view 2024-08-15 12:34:14 +07:00
puriphatt
8286ea19b9 refactor: role admin view 2024-08-15 12:31:30 +07:00
Methapon2001
db2c1bb050 feat: ้hidden menu 2024-08-15 12:09:31 +07:00
puriphatt
751b92c94e fix: ellipsis layout drawer 2024-08-15 11:56:20 +07:00
Methapon2001
079b70abdd feat: add dms menu 2024-08-14 19:53:23 +07:00
Methapon2001
be7a036b8d refactor: use alias 2024-08-09 15:06:41 +07:00
Methapon2001
f9494dc845 chore: clean 2024-08-09 15:03:03 +07:00
Methapon2001
0faecf0752 chore: clean 2024-08-09 14:39:15 +07:00
Net
a4b7df62eb refactor: add default img admin 2024-08-07 14:16:27 +07:00
Net
de7346c9f5 refactor: edit size icon 2024-08-06 13:32:52 +07:00
Methapon2001
457217a257 fix: image not show on build 2024-08-06 13:23:04 +07:00