87c807c16c
- Implemented ChequeBooksPage for viewing and filtering cheque books. - Added NewReceivedChequePage for recording received cheques. - Created ReceivedChequesPage for listing and managing received cheques. - Introduced API endpoints for bank accounts, cheque books, and received cheques. - Defined types for payments including bank accounts, cheque books, and received cheques.
52 lines
1.3 KiB
C#
52 lines
1.3 KiB
C#
using Distribution.Features.ChequeBook;
|
|
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.ReceivedCheque;
|
|
|
|
public record ReceivedChequeResponse(
|
|
Guid ReceivedChequeId,
|
|
int CompanyId,
|
|
int? BranchId,
|
|
ReceivedFromType ReceivedFromType,
|
|
int? ReceivedFromId,
|
|
string ReceivedFromName,
|
|
string? DrawerBankName,
|
|
string? DrawerBankBranch,
|
|
string? AccountHolderName,
|
|
string ChequeNo,
|
|
DateTime ChequeDate,
|
|
decimal Amount,
|
|
DateTime ReceivedDate,
|
|
string? ReferenceType,
|
|
int? ReferenceId,
|
|
string? Notes,
|
|
string? CreatedBy,
|
|
ReceivedChequeStatus Status,
|
|
Guid? DepositBankAccountId,
|
|
DateTime? DepositDate);
|
|
|
|
public record CreateReceivedChequeRequest(
|
|
int CompanyId,
|
|
int? BranchId,
|
|
ReceivedFromType ReceivedFromType,
|
|
int? ReceivedFromId,
|
|
string ReceivedFromName,
|
|
string? DrawerBankName,
|
|
string? DrawerBankBranch,
|
|
string? AccountHolderName,
|
|
string ChequeNo,
|
|
DateTime ChequeDate,
|
|
decimal Amount,
|
|
DateTime ReceivedDate,
|
|
string? ReferenceType,
|
|
int? ReferenceId,
|
|
string? Notes,
|
|
string? CreatedBy);
|
|
|
|
public record UpdateReceivedChequeStatusRequest(
|
|
ReceivedChequeStatusAction Action,
|
|
Guid? DepositBankAccountId,
|
|
DateTime? DepositDate,
|
|
string? Notes,
|
|
string? PerformedBy);
|