Commit graph

187 commits

Author SHA1 Message Date
Methapon2001
b190f93ec3 chore: migration
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 7s
2025-03-05 14:09:41 +07:00
Methapon2001
c21ef1448b chore: migration
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 6s
2025-03-05 11:17:27 +07:00
Methapon2001
979af5b672 chore: migration 2025-02-24 11:28:18 +07:00
Methapon2001
806a905d40 chore: migration 2025-02-24 11:28:01 +07:00
Methapon Metanipat
12bf2182dc
feat: line (#13)
* add wedhook line

* text message

* add router get employee, request, quotation

* move code

* do not crash application when not set line token

This feature is opt-in

* dot not crash when not set line client id

Main auth method is keycloak

* change dotenv

* fix: wrong env

* refactor: change to get instead of post

* refactor: remove body for employee get endpoint

* feat: add work relation include

* feat: include customer relation in employee

* feat: add line file controller

* add detail flex message and get date requestWork

* chore: update deps lock

* fix: error line token

* fix: redirect head instead if response with body

* feat: add response relation

* fix: route casing

* add userId in customerBranch verifyOTP

* delete consile log

* add is registered endpoint placeholder

* feat: quotation list

* fix: wrong endpoint name

* feat: include relation in get by id request data

* add where userId line

* refactor: adjust parameter for liff app

* delete code

* refactor: remove post quotation endpoint

* refactor: add where userId line for quotation

* feat: add pending only parameter

* refactor: more condition for inProgressOnly

* refactor: update condition

* feat: add line quotation attachment endpoint

* feat: include product in request work line endpoint

* refactor: pending only now cover more condition

* feat: include invoice with payment relation

* chore: update api docs tag

* chore: clean

* feat: check for registered user

* fix: wrong file location

* feat: add email client for sending an otp

* chore: move some deps to dev deps

* add otpCode otpExpires

* add send-otp and verify-otp

---------

Co-authored-by: Kanjana <kanjana@chamomind.com>
Co-authored-by: chamomind <chamomind@localhost>
Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
2025-02-20 16:07:16 +07:00
Methapon2001
58e95db5a8 chore: migrations 2025-02-10 10:04:11 +07:00
Methapon2001
24e379fbf4 chore: migration 2025-01-27 11:51:55 +07:00
Methapon2001
7ae7f47c94 chore: migration 2025-01-24 09:49:45 +07:00
Methapon2001
666c0ccdcd chore: migration 2025-01-23 14:13:40 +07:00
Methapon2001
847f586707 chore: migration 2025-01-22 13:32:19 +07:00
Methapon Metanipat
67651eb213
feat: debit note (#9)
* fix: filter not work

* feat: add debit note flag to quotation

* feat: add debit note structure

* refactor: change name to debit

* refactor(quotation): only query quotation not debit note

* feat: delete debit note

* feat: get debit note by id

* chore: add import

* feat: debit note stats

* feat: get debit note list

* chore: add comment

* refactor: add debit note filter to invoice

* chore: migration

* refactor: change attachment endpoint to explicit declare

* add createDebitNote

* feat: add quotation relation to get endpoint

* fix: wrong query

* fix data to create

* feat: include debit note in relation

* feat: handle delete file on delete data

* feat: check if quotation exists

* feat: add update payload

* refactor: merge variable

* feat: add update endpoint debit note

* fix: quotation is not flagged as debit note

* feat: add worker into debit note

* feat: add update debit note with worker

* fix: missing remark field

* feat: auto invoice

This commit automatically create debit note invoice and payment data.
Debit note does not required to create invoice and do not have
installments.

* feat: set default get invoice param to only quotation

* refactor: debit note param in payment/invoice

* fixup! refactor: debit note param in payment/invoice

* fix: product does not have any worker

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: Kanjana <taii.kanjana@gmail.com>
2025-01-21 10:51:30 +07:00
Methapon2001
129c3d5737 chore: migration 2025-01-14 09:46:53 +07:00
Methapon2001
c95b20da8f chore: migration 2025-01-13 14:02:21 +07:00
Methapon2001
6a86dfd9ad chore: migration 2025-01-09 17:04:21 +07:00
Methapon2001
3e16486d72 chore: migration 2025-01-09 13:37:07 +07:00
Methapon2001
d50bcd3ed7 chore: migration 2025-01-08 14:50:58 +07:00
Methapon2001
2536394fb2 chore: migration 2025-01-08 11:26:18 +07:00
Methapon2001
13d20f5eaa chore: migration 2025-01-08 11:24:25 +07:00
Methapon2001
5bb0adb51b chore: migration 2025-01-07 15:56:38 +07:00
Methapon2001
2654633f9c chore: migration 2025-01-07 09:39:47 +07:00
Methapon2001
f4ded1692d chore: migration 2025-01-06 15:00:39 +07:00
Methapon2001
027bb49c2a chore: migration 2025-01-06 11:55:41 +07:00
Methapon2001
614da2e452 chore: migration 2024-12-27 09:31:49 +07:00
Methapon2001
f7c84e21f7 chore: migration 2024-12-26 10:28:22 +07:00
Methapon2001
f2c1e84490 chore: migration 2024-12-24 18:11:44 +07:00
Methapon Metanipat
f673f2c953
feat: credit note (#8)
* feat: add db table and structure

* chore: migration

* createCreditNote

* add check conditions quotationId before create credit note and add fn delete data

* feat: add query list of credit note

* feat: add get stats of credit ntoe

* update

* feat: add get by id

* add permission

* delete console log

* chore: cleanup

---------

Co-authored-by: Methapon2001 <61303214+Methapon2001@users.noreply.github.com>
Co-authored-by: Kanjana <taii.kanjana@gmail.com>
2024-12-20 14:22:55 +07:00
Methapon2001
c8f7059df7 chore: migration 2024-12-11 14:44:14 +07:00
Methapon2001
65d42577d4 chore: migration 2024-12-11 12:05:50 +07:00
Methapon2001
d75d134abf chore: migration 2024-12-11 10:33:21 +07:00
Methapon2001
7cbe5f3397 chore: migration 2024-12-11 09:56:42 +07:00
Methapon2001
dd1b762cf1 chore: migration 2024-12-11 09:04:52 +07:00
Methapon2001
8c42eade65 chore: migration 2024-12-10 15:04:07 +07:00
Methapon2001
f3f27e8f87 chore: migration 2024-12-10 10:04:02 +07:00
Methapon2001
1483336df5 chore: migration 2024-12-06 13:55:51 +07:00
Methapon2001
97c9adc08b chore: migration 2024-12-04 14:43:03 +07:00
Methapon2001
bbb78465c2 chore: migration 2024-12-04 11:31:37 +07:00
Methapon2001
1ed7111eb9 chore: migration 2024-12-03 17:12:19 +07:00
Methapon2001
5f96541c08 chore: migration 2024-12-03 13:36:36 +07:00
Methapon2001
66aa3b1641 chore: migration 2024-12-03 10:26:18 +07:00
Methapon2001
915ce27667 chore: migration 2024-12-03 10:10:28 +07:00
Methapon2001
98c42464eb chore: migration 2024-12-03 09:56:38 +07:00
Methapon2001
4ec6da7610 chore: migration 2024-12-02 11:44:08 +07:00
Methapon2001
f768e11a32 chore: migration 2024-12-02 11:43:13 +07:00
Methapon2001
2894f67f65 chore: migration 2024-11-28 13:47:04 +07:00
Methapon Metanipat
949127b0bd chore: migration 2024-11-22 11:02:20 +07:00
Methapon Metanipat
deb28ab67b chore: migration 2024-11-22 08:48:54 +07:00
Methapon Metanipat
371514c5f6 chore: migration 2024-11-19 13:49:12 +07:00
Methapon Metanipat
9d79953365 chore: migration 2024-11-18 09:18:44 +07:00
Methapon Metanipat
d67303d5cc chore: migrations 2024-11-15 10:51:40 +07:00
Methapon Metanipat
401d376a63
feat: employment office (#5)
* feat: add table employment office

* feat: add tag

* feat: add employment office

* chore: migrations

* feat: order employment office

* feat: delete old employment office when special got added
2024-11-14 15:10:58 +07:00