CreditDocuments

This commit is contained in:
mmrbnjd
2024-07-29 15:29:46 +03:30
parent fe95e2b526
commit 68667b5f95
8 changed files with 38 additions and 13 deletions

View File

@@ -36,7 +36,7 @@
<ItemGroup>
<Reference Include="Service">
<HintPath>..\..\Dlls\Service.dll</HintPath>
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
</Reference>
</ItemGroup>

View File

@@ -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())
//{

View File

@@ -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
}
}

View 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; }
}
}

View File

@@ -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()

View 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
}
}

View File

@@ -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>

View File

@@ -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");