Rebuild order flow: settle after pricing, notifications, and invoice expiry.
Hide prices until admin sends the invoice, enforce status transitions, add customer/admin SMS+in-app notifications, schedule cash invoice reminders, and ship updated dist/prisma-client/deploy-bundle for git-pull deploys. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Vendored
+13
@@ -32,6 +32,9 @@ let CustomerOrdersController = class CustomerOrdersController {
|
||||
submit(user, dto) {
|
||||
return this.ordersService.submitOrder(user.id, dto);
|
||||
}
|
||||
chooseSettlement(user, id, dto) {
|
||||
return this.ordersService.chooseSettlement(user.id, id, dto);
|
||||
}
|
||||
updateChecks(user, id, dto) {
|
||||
return this.ordersService.updateChecks(user.id, id, dto);
|
||||
}
|
||||
@@ -63,6 +66,16 @@ __decorate([
|
||||
__metadata("design:paramtypes", [Object, order_dto_1.SubmitOrderDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], CustomerOrdersController.prototype, "submit", null);
|
||||
__decorate([
|
||||
(0, auth_decorators_1.AuthType)('customer'),
|
||||
(0, common_1.Post)(':id/settlement'),
|
||||
__param(0, (0, current_user_decorator_1.CurrentUser)()),
|
||||
__param(1, (0, common_1.Param)('id')),
|
||||
__param(2, (0, common_1.Body)()),
|
||||
__metadata("design:type", Function),
|
||||
__metadata("design:paramtypes", [Object, String, order_dto_1.ChooseSettlementDto]),
|
||||
__metadata("design:returntype", void 0)
|
||||
], CustomerOrdersController.prototype, "chooseSettlement", null);
|
||||
__decorate([
|
||||
(0, auth_decorators_1.AuthType)('customer'),
|
||||
(0, common_1.Patch)(':id/checks'),
|
||||
|
||||
Reference in New Issue
Block a user