b992d07689
- Created `SupplierPayment` and `SupplierPaymentGRN` models for managing supplier payments and their allocations. - Implemented API endpoints for listing and creating supplier payments. - Developed frontend components for displaying and recording supplier payments, including a dialog for payment creation. - Integrated GRN allocations into the payment creation process, ensuring total allocations match the payment amount. - Added pagination and loading states for the payments list.
76 lines
1.8 KiB
C#
76 lines
1.8 KiB
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.ChequeBook;
|
|
|
|
public record ChequePageResponse(
|
|
Guid Id,
|
|
string ChequeNo,
|
|
string ChequeBookNo,
|
|
ChequePageIssueStatus IssueStatus,
|
|
PayeeType? PayeeType,
|
|
int? PayeeId,
|
|
string? PayeeName,
|
|
DateTime? IssueDate,
|
|
decimal? Amount,
|
|
string? CurrencyCode,
|
|
int? VoucherId,
|
|
string? ReferenceNo,
|
|
string? Purpose,
|
|
bool? IsCrossCheque,
|
|
bool? IsAccountPayee,
|
|
bool? IsPostDated,
|
|
string? Notes,
|
|
string? PrintedBy,
|
|
DateTime? PrintedAt,
|
|
DateTime? ClearedDate,
|
|
bool? ClearedByBank,
|
|
string? CancelReason);
|
|
|
|
public record ChequeBookResponse(
|
|
string ChequeBookNo,
|
|
int BranchId,
|
|
Guid BankAccountId,
|
|
string StartChequeNo,
|
|
string EndChequeNo,
|
|
int TotalLeaves,
|
|
DateTime ReceivedDate,
|
|
string? Description,
|
|
string? CreatedBy,
|
|
ChequeBookStatus Status,
|
|
List<ChequePageResponse> Pages);
|
|
|
|
public record PagedResult<T>(IReadOnlyList<T> Items, int TotalCount, int? Page, int? PageSize);
|
|
|
|
public record CreateChequeBookRequest(
|
|
int BranchId,
|
|
Guid BankAccountId,
|
|
string ChequeBookNo,
|
|
string StartChequeNo,
|
|
string EndChequeNo,
|
|
int TotalLeaves,
|
|
DateTime ReceivedDate,
|
|
string? Description,
|
|
string? CreatedBy);
|
|
|
|
public record IssueChequePageRequest(
|
|
PayeeType PayeeType,
|
|
int? PayeeId,
|
|
string PayeeName,
|
|
DateTime IssueDate,
|
|
decimal Amount,
|
|
string? CurrencyCode,
|
|
int? VoucherId,
|
|
string? ReferenceNo,
|
|
string? Purpose,
|
|
bool? IsCrossCheque,
|
|
bool? IsAccountPayee,
|
|
bool? IsPostDated,
|
|
string? Notes,
|
|
string? PrintedBy);
|
|
|
|
public record UpdateChequePageStatusRequest(
|
|
ChequePageStatusAction Action,
|
|
DateTime? ClearedDate,
|
|
string? CancelReason,
|
|
string? PerformedBy);
|