Commit graph

216 commits

Author SHA1 Message Date
Methapon2001
6d43d4e796 fix: wrong decimal 2025-01-17 09:05:36 +07:00
Methapon Metanipat
c5d3897d76
feat: invoice (#174)
* feat: add 10 invoice

* feat: invoicelayout

* feat: invoicetable

* refactor: uew new table

* fix: columns missing

* feat: invoicebadgestatus

* feat: formatdate

#156

* refactor: watch pagesize and page

#159

* refector: filter status

#160

* feat: invoice stats

* fix: typo

* chore: cleanup

* refactor: add columns action

* refactor: add btn view invoice

* refactor: add query tab

* refactor: change set code invoice to function

* chore: change case

* refactor: add i18n netvalue

* refactor: add record colors of status invoice

* feat: add view card invoice

* chore: cleanpu

* refactor: handle i18n pay condition

* refactor: handle value by storage or by api

* refactor: add btnn preview

* refactor: function view doc example

* refactor: bind function view doc example

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
Co-authored-by: nwpptrs <jay02499@gmail.com>
Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: oat_dev <nattapon@frappet.com>
2025-01-14 11:34:20 +07:00
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
Methapon2001
9d30aa5f9a refactor: variable name 2025-01-06 10:41:33 +07:00
Thanaphon Frappet
6156ebdba8 fix: view receipt not working 2024-12-26 15:57:39 +07:00
Thanaphon Frappet
0eaa70416a refactor: handle not show btn view example at view receipt 2024-12-26 15:41:09 +07:00
puriphatt
cc916b663d feat: update QuotationForm and RequestListView to enhance navigation and data handling 2024-12-26 09:25:01 +07:00
puriphatt
718a28642d refactor: view image dialog 2024-12-24 13:24:47 +07:00
puriphatt
40d0f4f2dc fix: quotation => handle change pay type 2024-12-23 11:56:06 +07:00
Thanaphon Frappet
98e7aff985 fix: customer branch id missing 2024-12-23 11:46:19 +07:00
Thanaphon Frappet
83774ff09e refactor: bind value new worker list 2024-12-23 11:30:15 +07:00
Thanaphon Frappet
fc0b703a96 refactor: v-model new worker 2024-12-23 11:30:15 +07:00
Thanaphon Frappet
7043c635d5 refactor: use new select 2024-12-23 11:30:15 +07:00
Thanaphon Frappet
cd1848c5fb feat: new worker select 2024-12-23 11:30:15 +07:00
puriphatt
928d07a3ba fix: quotation pay split count 2024-12-23 11:28:04 +07:00
puriphatt
5c3c8f3d6a fix: quotation => handle change pay type 2024-12-23 09:41:12 +07:00
Methapon2001
dc5c111726 feat: get active only customer branch quotation 2024-12-23 08:54:42 +07:00
Thanaphon Frappet
ba6950769a refactor: add q-form submit 2024-12-20 17:42:50 +07:00
nwpptrs
4cdc462ded refactor: handle due date 2024-12-20 17:24:43 +07:00
puriphatt
61e11c0503 fix: split custom default 1 2024-12-19 09:55:47 +07:00
Methapon2001
11575f3bed feat: api active only support for product
closes https://github.com/Frappet/jws-frontend/issues/146
2024-12-18 18:05:15 +07:00
puriphatt
8f99c5274e fix: pay split count & pay split detail 2024-12-18 18:03:20 +07:00
Thanaphon Frappet
bbe4150581 refactor: show table request 2024-12-18 17:55:50 +07:00
Thanaphon Frappet
40d9e339e0 refactor: add input search and status filter of request 2024-12-18 17:55:50 +07:00
Methapon2001
6c370f4020 fix: customer branch id not send as api param 2024-12-18 17:23:34 +07:00
Thanaphon Frappet
fa9b59680f cleanup: 2024-12-18 10:57:05 +07:00
Thanaphon Frappet
44fdfc2364 refactor: view and view example receipt 2024-12-18 10:49:46 +07:00
Methapon2001
414b57acbd perf: make use of computed and use same var 2024-12-18 08:51:46 +07:00
Methapon2001
69dd4d67d7 chore: cleanup 2024-12-17 14:39:02 +07:00
Methapon2001
c40743255c fix: wrong condition 2024-12-17 14:39:02 +07:00
Methapon Metanipat
4528836f17
feat: quotation add worker after accepted (#140)
* feat: add dialog structure

* feat: add select functionality

* chore: clear unused

* feat: pass selectable product into dialog

* feat: add table

* feat: implement select worker and product

* feat: send disabled worker into component

* feat: add event emitted after submit

* chore: cleanup

* feat: add store

* feat: dialogquotationbtn

* feat: import worker from file and select them all

* feat: add title

* feat: add import button

* feat: i18n

* feat: lazy load person card image

* refactor: change import button color

* feat: add import worker button

* chore: cleanup

* chore: clean

* chore: clean

* feat: post quotation add worker appear on expired

* fix: type

* fix: only proceed when import has at least one

* feat: check more condition

* feat: fetch data from api

* fix: worker not update

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: nwpptrs <jay02499@gmail.com>
2024-12-17 14:22:22 +07:00
Thanaphon Frappet
2debf3b6e9 refactor: edit ui 2024-12-17 13:20:19 +07:00
Thanaphon Frappet
88f8d99baa refactor: add upload file acceptance 2024-12-17 13:16:16 +07:00
Methapon2001
e0d24b49cb fix: price not match with original price by .01
This will calculate quantity later when no discount is set.
However when discount is set there may be some number that can introduce
+-0.01
2024-12-16 16:56:06 +07:00
puriphatt
a60944a187 refactor: quotation => hide final discount 2024-12-16 11:08:44 +07:00
puriphatt
be9606f5f3 fix: quotation form banner opacity 2024-12-16 11:03:56 +07:00
puriphatt
60e5578d89 feat: quotation => banner 2024-12-16 10:54:12 +07:00
puriphatt
1b4c06b182
fix/refactor: quotation installment (#121)
* refactor/feat: i18n

* chore: clean log

* refactor: type

* refactor: installment and product table state relation

* refactor: handle split custom

---------

Co-authored-by: Thanaphon Frappet <thanaphon@frappet.com>
2024-12-06 11:01:52 +07:00
puriphatt
bb8d007b2d refactor: quotation step responsive 2024-12-04 15:42:09 +07:00
Thanaphon Frappet
127d8c0ebc fix: worker missing 2024-12-02 17:47:53 +07:00
Thanaphon Frappet
d0eaafb9d8 refactor: delete document receive point 2024-12-02 17:00:07 +07:00
Thanaphon Frappet
d6c0d8da92 refactor: delete docment receive point 2024-11-29 10:17:36 +07:00
Thanaphon Frappet
5d5621882e fix: value no update 2024-11-28 14:50:22 +07:00
puriphatt
7b3b506d2e fix: quotation remark readonly 2024-11-27 15:52:04 +07:00
puriphatt
af2c42ce5f fix: quotation remark readonly 2024-11-27 15:15:25 +07:00
Methapon2001
25e6585359 fix: wrong preview condition 2024-11-27 15:11:09 +07:00
puriphatt
91ecf7cf8f refactor: quotation remark toggle 2024-11-27 15:02:35 +07:00
Methapon2001
435d2ce4c8 feat: add preview template text 2024-11-27 14:27:02 +07:00
puriphatt
9eca449031 refactor: q-editor 2024-11-27 13:55:59 +07:00
Thanaphon Frappet
389052830a refactor: handle reset value 2024-11-27 11:49:33 +07:00