Commit graph

34 commits

Author SHA1 Message Date
Methapon Metanipat
af463ee509 refactor: don't include condition if no query 2024-10-24 17:49:10 +07:00
Methapon Metanipat
d5ab07bacb refactor: upload now return presigned url instead of redirect
This will prevent from payload upload to API Server first and then
upload to MinIO which cause upload to be happens twice.
2024-10-24 09:56:37 +07:00
Methapon Metanipat
ab71a7ee20 feat(file): add head endpoint 2024-10-22 10:43:20 +07:00
Methapon Metanipat
e7c29d20e0 feat: add query param 2024-10-17 17:12:39 +07:00
Methapon Metanipat
fdc72a7caf feat: add conditional company scope query 2024-10-11 16:04:56 +07:00
Methapon Metanipat
4de0e1da87 refactor: throw common error with util function instead 2024-10-03 09:41:47 +07:00
Methapon Metanipat
68f9dc203e fix: system role not get filtered 2024-10-02 16:13:54 +07:00
Methapon Metanipat
b2b0d15efd feat: add filter registeredBranch 2024-10-02 16:03:49 +07:00
Methapon Metanipat
3ee1f5ed0f fix: update sort 2024-09-26 11:54:59 +07:00
Methapon Metanipat
e4064a0695 fix: delete customer branch hq now also delete parent 2024-09-25 16:34:43 +07:00
Methapon Metanipat
2151123897 refactor: remove role from allow cross branch 2024-09-25 14:29:27 +07:00
Methapon Metanipat
7b296ec904 chore: update tag 2024-09-17 09:03:08 +07:00
Methapon Metanipat
96b18f1049 fix: update payload 2024-09-16 17:34:34 +07:00
Methapon Metanipat
472db99c50 feat: file upload customer branch 2024-09-16 17:20:51 +07:00
Methapon Metanipat
3a8bb7a82d fix: customer code should not have company code 2024-09-16 16:36:02 +07:00
Methapon Metanipat
1b82bb616f refactor: combine payload 2024-09-16 14:37:03 +07:00
Methapon Metanipat
46c79d50ce fix: missing field 2024-09-16 13:31:47 +07:00
Methapon Metanipat
86888ed512 refactor!: customer (employer) fields 2024-09-16 11:03:34 +07:00
Methapon Metanipat
4dee7bfe71 refactor: customer structure 2024-09-13 13:27:12 +07:00
Methapon Metanipat
a7cafd25d0 feat: add address fields 2024-09-11 15:06:27 +07:00
Methapon Metanipat
114f008934 refactor: where conditions 2024-09-10 13:01:43 +07:00
Methapon Metanipat
213ec28565 refactor: only query if have 2024-09-09 14:59:15 +07:00
Methapon Metanipat
d394549566 feat: reuse function 2024-09-09 14:51:17 +07:00
Methapon Metanipat
cbdb4c0e7a refactor: use factory function for perm check 2024-09-09 14:40:18 +07:00
Methapon Metanipat
ed2b3a5a41 feat: allow sale to manage self branch 2024-09-09 11:13:53 +07:00
Methapon Metanipat
1385e37f8f fix: condition 2024-09-06 14:54:31 +07:00
Methapon Metanipat
48254ceec0 feat: re-add head of sale to be able to manage endpoints 2024-09-06 11:58:28 +07:00
Methapon Metanipat
dec2722670 feat: remove some roles from manage some endpoints 2024-09-06 11:47:07 +07:00
Methapon Metanipat
195c889881 feat: double check permission customer branch 2024-09-06 08:31:27 +07:00
Methapon Metanipat
e44f563e35 fix: wrong condition check 2024-09-05 16:14:11 +07:00
Methapon Metanipat
1c04e475b6 feat: control list view by role 2024-09-05 16:14:03 +07:00
Methapon Metanipat
4946e3900d feat: customer branch permission 2024-09-05 15:06:23 +07:00
Methapon Metanipat
ef735bd9d7 feat: query also search for passport number 2024-09-05 10:34:07 +07:00
Methapon Metanipat
2af4e750b0 refactor: organize file 2024-09-05 09:21:39 +07:00
Renamed from src/controllers/customer-branch-controller.ts (Browse further)