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.
20 lines
577 B
C#
20 lines
577 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Distribution.Models
|
|
{
|
|
public class SupplierPaymentGRN : Template
|
|
{
|
|
public Guid FK_SupplierPaymentId { get; set; }
|
|
[ForeignKey("FK_SupplierPaymentId")]
|
|
public SupplierPayment? SupplierPayment { get; set; }
|
|
|
|
public Guid FK_GoodsReceiptId { get; set; }
|
|
[ForeignKey("FK_GoodsReceiptId")]
|
|
public GoodsReceipt? GoodsReceipt { get; set; }
|
|
|
|
[Precision(18, 2)]
|
|
public decimal AllocatedAmount { get; set; }
|
|
}
|
|
}
|