Jobs Worker Service API http://192.168.1.61:20102/api-docs
Find a file
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
.github/workflows Update release.yml 2025-01-10 16:52:32 +07:00
assets feat: insert province district sub-district into db 2024-08-29 17:10:44 +07:00
prisma feat: debit note (#9) 2025-01-21 10:51:30 +07:00
src feat: debit note (#9) 2025-01-21 10:51:30 +07:00
static initial commit 2024-04-01 13:28:43 +07:00
.dockerignore initial commit 2024-04-01 13:28:43 +07:00
.env.example chore: update env example 2024-07-01 08:49:48 +07:00
.gitignore feat: add git ignore 2024-06-26 11:53:02 +07:00
.npmrc chore: add package manager strict setting 2024-11-18 10:24:39 +07:00
.prettierignore initial commit 2024-04-01 13:28:43 +07:00
.prettierrc initial commit 2024-04-01 13:28:43 +07:00
CHANGELOG.md Update CHANGELOG.md 2024-11-18 10:15:36 +07:00
cliff.toml chore: change git-cliff commit limit 2024-10-30 13:20:46 +07:00
compose.yaml fix: delete branch from user wrong body 2024-04-04 15:50:30 +07:00
Dockerfile fix: case typo 2024-09-12 15:14:27 +07:00
entrypoint.sh feat: runtime migration 2024-04-03 09:28:40 +07:00
nodemon.json chore: make nodemon watch .env file 2024-08-27 16:56:20 +07:00
package.json chore: deps 2025-01-20 10:18:08 +07:00
pnpm-lock.yaml chore: deps 2025-01-20 10:18:08 +07:00
README.md initial commit 2024-04-01 13:28:43 +07:00
tsconfig.json chore: update tsconfig to not truncate error 2024-10-16 15:54:51 +07:00
tsoa.json feat: credit note (#8) 2024-12-20 14:22:55 +07:00

JWS Back-End

npm run migrate:dev - generate migration and push to database npm run migrate:deploy - push migrations to database