chore: apply discount on plan

This commit is contained in:
Matin
2025-02-18 10:10:23 +03:30
parent 6014da7e73
commit ff96fd6c32
4 changed files with 66 additions and 25 deletions
@@ -59,9 +59,4 @@ export class InvoicesController {
async applyDiscount(@Param() paramDto: ParamDto, @Body() applyDiscountDto: ApplyDiscountDto) {
return this.invoiceService.applyDiscount(paramDto.id, applyDiscountDto);
}
@Get(":id/final-price")
async getFinalPrice(@Param() paramDto: ParamDto) {
return this.invoiceService.calculateFinalPrice(paramDto.id);
}
}