Commit graph

182 commits

Author SHA1 Message Date
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
Methapon Metanipat
e77aa8faf4 feat: update request data table 2024-11-14 13:09:42 +07:00
Methapon Metanipat
900876ed1b chore: migration 2024-11-12 11:02:49 +07:00
Methapon Metanipat
105134749f chore: migration 2024-11-11 14:51:19 +07:00
Methapon Metanipat
2232c2542b feat: add employee other fields 2024-11-11 14:32:06 +07:00
Methapon Metanipat
aae7c4640e feat: add employee work fields 2024-11-11 14:30:12 +07:00