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.
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);
|