CreditDocuments
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Service">
|
||||
<HintPath>..\..\Dlls\Service.dll</HintPath>
|
||||
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
|
@@ -49,6 +49,7 @@ namespace TaxPayer.Infrastructure.Persistence
|
||||
public DbSet<rptQueue> rptQueue { get; set; }
|
||||
public DbSet<Promotion> Promotions { get; set; }
|
||||
public DbSet<PromotionDetails> PromotionDetails { get; set; }
|
||||
public DbSet<CreditDocuments> CreditDocuments { get; set; }
|
||||
#endregion
|
||||
//public override Task<int> SaveChangesAsync(CancellationToken cancellationToken = new CancellationToken())
|
||||
//{
|
||||
|
@@ -14,6 +14,7 @@
|
||||
public byte[]? Logo { get; set; }
|
||||
public string RegisterDate { get; set; }
|
||||
public bool IsActive { get; set; }
|
||||
public decimal Credit { get; set; } = 0;
|
||||
|
||||
#region Navigation
|
||||
public virtual ICollection<CODItem> CODItemS { get; set; }
|
||||
@@ -21,6 +22,7 @@
|
||||
public virtual ICollection<PermissionPeriod> PermissionPeriods { get; set; }
|
||||
public virtual ICollection<Customer> Customers { get; set; }
|
||||
public virtual ICollection<Invoice> invoices { get; set; }
|
||||
public virtual ICollection<CreditDocuments> CreditDocuments { get; set; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
19
Back/Data/Models/CreditDocuments.cs
Normal file
19
Back/Data/Models/CreditDocuments.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Shared.Enums;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Back.Data.Models
|
||||
{
|
||||
public class CreditDocuments
|
||||
{
|
||||
public int ID { get; set; }
|
||||
public int CompanyID { get; set; }
|
||||
public string Date { get; set; }
|
||||
public string Title { get; set; }
|
||||
public CreditDocumentType type { get; set; }
|
||||
public decimal Value { get; set; }
|
||||
|
||||
|
||||
[ForeignKey("CompanyID")]
|
||||
public virtual Company company { get; set; }
|
||||
}
|
||||
}
|
@@ -181,7 +181,6 @@ namespace Back.Data.Models
|
||||
[ForeignKey("PatternID")]
|
||||
public virtual Pattern? pattern { get; set; }
|
||||
[ForeignKey("CompanyID")]
|
||||
[JsonIgnore]
|
||||
public virtual Company? company { get; set; }
|
||||
|
||||
public object Clone()
|
||||
|
13
Shared/Enums/CreditDocumentType.cs
Normal file
13
Shared/Enums/CreditDocumentType.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Shared.Enums
|
||||
{
|
||||
public enum CreditDocumentType
|
||||
{
|
||||
Increase,Decrease
|
||||
}
|
||||
}
|
@@ -6,13 +6,4 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Stimulsoft.Base">
|
||||
<HintPath>..\..\Dlls\stimull\Stimulsoft.Base.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Stimulsoft.Report">
|
||||
<HintPath>..\..\Dlls\stimull\Stimulsoft.Report.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@@ -37,10 +37,10 @@ builder.Services.AddScoped(sp => new UserAuthenticationDTO()
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://195.88.208.142:7075/api/") });
|
||||
|
||||
//Home
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:7075/api/") });
|
||||
|
||||
//farzan
|
||||
//builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5271/api/") });
|
||||
|
||||
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo("fa-Ir");
|
||||
|
||||
|
Reference in New Issue
Block a user