From 38009bfbcbca9c1c0bb2ca42055f22224a9d3437 Mon Sep 17 00:00:00 2001 From: Mathis Date: Wed, 24 Jul 2024 20:26:16 +0200 Subject: [PATCH] docs(transactions.service): update TODO comments for transactions Refine and expand TODO comments to outline specific tasks for managing transactions. Detail steps for handling single/multiple products and listing transactions for users and products. --- src/transactions/transactions.service.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/transactions/transactions.service.ts b/src/transactions/transactions.service.ts index 4009571..914559f 100644 --- a/src/transactions/transactions.service.ts +++ b/src/transactions/transactions.service.ts @@ -2,5 +2,16 @@ import { Injectable } from '@nestjs/common'; @Injectable() export class TransactionsService { - //TODO CRUD of transactions + //TODO List transaction of a user + //TODO List transaction related to a product + + //TODO Transaction for multiple/single products by a user + //Check stocks + //Check account credit + //take the money + //Update stock + //update history + //send response, refurnish if error + + //TODO List all transaction }