# Changelog All notable changes to this project will be documented in this file. ## [unreleased] ### 🚀 Features - Upload multiple payment file - Search now cover workName - Add installments data - Add head method - *(minio)* Add get presigned function - Add head method for file endpoint - *(file)* Add head endpoint - *(util)* Add retry function - *(service)* Add installments to payload - Add head to more endpoint - Use retry function - Search customer now cover customer name - Search code of user - Add more payment status - Make flow endpoint same response structure - Search quotation now cover customer name and code - Workflow permission - Add util function to include or not include condition - Add installment no to quotation data - Search customer now cover more field - Add attributes to each product in service - Add more quotation status - Add more status - Add toggle on and off status - Add status filter query string - Add status filter - Add relation for agent - Update now detect already exists step - Add option to share product inside one group - Add support for getting relation - Add more pay condition - Add notification database structure - Add endpoint skeleton ### 🐛 Bug Fixes - File location - *(employee)* Missing permission check - *(keycloak)* Now return all roles - Payment sort - Wrong sort - Error when no branch is found - Dup on update - Wrong variable used - Error dup - Wrong decoration - Error on update - Wrong code - Respect relation - Payload - Product was delete on not send list product - Typo - Wrong operation - Auth related error - Workflow query not work on filter (#3) ### 🚜 Refactor - Rename endpoints - *(keycloak)* Now only expose role management endpoint - Remove unused - Upload now return presigned url instead of redirect - Separate init user to utils - List also include relation - Don't include condition if no query - 💥**breaking**💥 Payment sys - Remove unused enum - Accept quotation specific status filter instead - Change installments data - Invoice relation (#2) ### ⚙️ Miscellaneous Tasks - Cleanup - Deps ver - Remove unused - Add migration - Add tag - Update tags - Fix migration - Update constraits - Migration - Update deps - Add database relation for notification group - Update changelog format for breaking change - Change git-cliff commit limit - Add script to generate changelog ### Experimental - Api doc ## [0.4.0] - 2024-10-18 ### 🚀 Features - Add filter registeredBranch - Add pay split field - Add more relation - Add count by relation - Add field - Detect if agent price - Update structure - Add payment endpoints (incomplete) - Add swagger tag - Add quotation stats by group - Add workflow template - Add config endpoint - Work length not match - Also return full service back - Handle running no on delete customer - Add payment post process - Update response add relation - Add view permission - Also include customer and its registered branch - Add workflow to service - Add update status flow - Add conditional query for customer - Add conditional company scope query - Add metadata - Add payment for split - Search also cover code - Add payment remark - Unlock product code - Update payload and update endpoint - Pre create payment data - Update quotation payment data - Detect same username / email - Add vat exclude feature - Include more relation - Order passport - Add query param - Quotation code running no reset at month - Search code now case insensitive - Add remark field - Payment data pull date from split data - Add max worker field - Also return full address ### 🐛 Bug Fixes - Relation - System role not get filtered - Error - Missing relation - Calculate price - Paging - Vat calc - Wrong path - Calc vat after discount only - Array length not match - Word case - Wrong price per unit - Discount not have effect - Error relation - Wrong case - Fallback for one time payment - Delete error - Change running no to custoer branch id instead - Double payment data on update - Change to non percent - Wrong vat excluded - Make remark accept null - Calc vat - Empty payment data on full payment ### 🚜 Refactor - Include full detail when get by id - Relation - Quotation query and relation - Update quotation structure and endpoint - Throw common error with util function instead - 💥**breaking**💥 Remove unused field - Make field optional - Remove unnecessary join - Change sort - Calculate utility - Update quotation - Change running no to use parent id - Add work status and process user - Adjust field - 💥**breaking**💥 Change branch to registered branch scope - Bring back vat excluded - Search case ### ⚙️ Miscellaneous Tasks - Update deps - Update constraints - Clean - Update field quotation - Add migration - Add tag - Update tsconfig to not truncate error - Clean up - Relation constraints ## [0.3.6] - 2024-09-27 ### 🚀 Features - Detect same name of product in the same company - Also include registered branch for display as options ### ⚙️ Miscellaneous Tasks - Remove log ## [0.3.5] - 2024-09-26 ### 🚀 Features - Update quotation endpoints with permission ### 🐛 Bug Fixes - Update sort ## [0.3.4] - 2024-09-25 ### 🐛 Bug Fixes - Delete customer branch hq now also delete parent ### ⚙️ Miscellaneous Tasks - Migration ## [0.3.3] - 2024-09-25 ### 🐛 Bug Fixes - Branch under headquarter display condition ## [0.3.2] - 2024-09-25 ### 🚀 Features - Add option to get list with head - Add role that can view another branch ### 🐛 Bug Fixes - Permission condition ### 🚜 Refactor - Remove role from allow cross branch ## [0.3.1] - 2024-09-25 ### 🐛 Bug Fixes - User email not save in keycloak ## [0.3.0] - 2024-09-24 ### 🚀 Features - Product group permission - Allow sale to manage self branch - Branch image multi - Filter branch by status - Reuse function - Add field - Upload and select multiple image - Deprecate unused endpoints - Add utility function - Update field - Product group permission check - Add more helper function - Refactor permission product service - Image upload product service - Shared between company - Add file location for employee - Add helper function to construct address search - Add address fields - Branch attachment - Add fields customer - File upload customer branch - Customer branch citizen - Include more relation in employee - Allow company change - Prevent from change company ### 🐛 Bug Fixes - Customer edit not consider related branch perm - Wrong permission condition - Wrong position - Error user - Error when registered branch is null - Also prefix runningNo on generate - Missing selected image field - Missing field - Always include from head branch - Typo - Case typo - Conflict endpoints - Tag - Wrong payload - Relation - Customer code should not have company code - Update payload - Typo and handle delete - Relation constraits - Missing fields - Error required args - Error on edit - Tree permission ### 🚜 Refactor - Use factory function for perm check - Only query if have - 💥**breaking**💥 Remove deprecated - Where conditions - Add helper function - Use helper function instead for easier fix - Middleware - Use helper function - Separate and use helper function - Relation - Relation helper function - Use relation helper function - Use utility function - File upload and image - Helper function manual throw - Use helper - Helper function - Input fields (branch, user) - Reduce code - Customer structure - Employee - 💥**breaking**💥 Customer (employer) fields - Combine payload - Make field optional - Change payload ### ⚙️ Miscellaneous Tasks - Add migration - Add helper function - Add more helper function - Update swagger tags - Migration - Migrations - Add local build action - Remove localhots (not working when in container) - Remove join - Update endpoints tag - Update tag - Database refactor - Update migration