c775146b64
Implementation A partner, not just software HexDive Technologies' local team handles setup, data migration, training and ongoing support — in Sinhala, Tamil and English. [confirm] 1 Discovery Map your network, products and processes. 2 Configuration Set up depots, pricing, schemes, routes and users. 3 Migration & training Move your data and train every team. 4 Go-live & support Dedicated account manager and local support desk.
78 lines
1.9 KiB
C#
78 lines
1.9 KiB
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Expense;
|
|
|
|
public record ExpensePaymentRequest(
|
|
PaymentMethod Method,
|
|
Guid? BankAccountId,
|
|
Guid? ChequePageId);
|
|
|
|
public record CreateExpenseRequest(
|
|
Guid CategoryId,
|
|
Guid? WarehouseId,
|
|
decimal Amount,
|
|
DateTime BillDate,
|
|
DateTime? DueDate,
|
|
DateTime? PeriodCovered,
|
|
Guid? VendorId,
|
|
string? Payee,
|
|
string? BillRef,
|
|
string? Description,
|
|
/// <summary>Required when action = Pay. Ignored for Draft / Post.</summary>
|
|
ExpensePaymentRequest? Payment);
|
|
|
|
public record UpdateExpenseDraftRequest(
|
|
Guid CategoryId,
|
|
Guid? WarehouseId,
|
|
decimal Amount,
|
|
DateTime BillDate,
|
|
DateTime? DueDate,
|
|
DateTime? PeriodCovered,
|
|
Guid? VendorId,
|
|
string? Payee,
|
|
string? BillRef,
|
|
string? Description);
|
|
|
|
public record VoidExpenseRequest(string? Reason);
|
|
|
|
public record ExpenseAttachmentResponse(
|
|
Guid Id,
|
|
string OriginalFileName,
|
|
string ContentType,
|
|
long SizeBytes,
|
|
DateTime CreatedAt);
|
|
|
|
public record ExpenseResponse(
|
|
Guid Id,
|
|
Guid CategoryId,
|
|
string CategoryName,
|
|
Guid? ParentCategoryId,
|
|
string? ParentCategoryName,
|
|
Guid? WarehouseId,
|
|
string? WarehouseName,
|
|
decimal Amount,
|
|
DateTime BillDate,
|
|
DateTime? DueDate,
|
|
DateTime? PeriodCovered,
|
|
Guid? VendorId,
|
|
string? VendorName,
|
|
string? Payee,
|
|
string? BillRef,
|
|
string? Description,
|
|
ExpenseStatus Status,
|
|
PaymentMethod? Method,
|
|
Guid? BankAccountId,
|
|
Guid? ChequePageId,
|
|
string? ChequeNo,
|
|
DateTime? PaidAt,
|
|
Guid RecordedByUserId,
|
|
Guid? PostedByUserId,
|
|
Guid? PaidByUserId,
|
|
Guid? VoidedByUserId,
|
|
string? VoidReason,
|
|
Guid? RecurringTemplateId,
|
|
List<ExpenseAttachmentResponse> Attachments,
|
|
DateTime CreatedAt);
|
|
|
|
public record PagedExpensesResponse(List<ExpenseResponse> Items, int Page, int PageSize, int Total);
|