Added the new entites in invoice attachment type table
This commit is contained in:
parent
26ac59fa52
commit
0960702f0c
@ -588,6 +588,24 @@ namespace Marco.Pms.DataAccess.Data
|
||||
Id = Guid.Parse("1fa20cff-b0ee-468e-9ea6-72d5aa144a3f"),
|
||||
Name = "E-Invoice",
|
||||
Description = "An E-Invoice (Electronic Invoice) is a system where B2B invoices are electronically authenticated by the GST Network (GSTN) to generate a unique Invoice Reference Number (IRN) and QR code."
|
||||
},
|
||||
new InvoiceAttachmentType
|
||||
{
|
||||
Id = Guid.Parse("31cd7533-3ffc-4e84-a0b4-db3b94d016b2"),
|
||||
Name = "Proforma Invoice",
|
||||
Description = "Proforma Invoice"
|
||||
},
|
||||
new InvoiceAttachmentType
|
||||
{
|
||||
Id = Guid.Parse("060c79a4-81c7-40a4-8cc3-56362ac9fad6"),
|
||||
Name = "Sales Order",
|
||||
Description = "Sales Order"
|
||||
},
|
||||
new InvoiceAttachmentType
|
||||
{
|
||||
Id = Guid.Parse("12773c2c-64e7-478c-af17-8471f943a5ed"),
|
||||
Name = "Other",
|
||||
Description = "Other"
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
9484
Marco.Pms.DataAccess/Migrations/20251204085823_Added_Invoice_Attachment_Type_Table.Designer.cs
generated
Normal file
9484
Marco.Pms.DataAccess/Migrations/20251204085823_Added_Invoice_Attachment_Type_Table.Designer.cs
generated
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace Marco.Pms.DataAccess.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Added_Invoice_Attachment_Type_Table : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "InvoiceAttachmentTypes",
|
||||
columns: new[] { "Id", "Description", "Name" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ new Guid("060c79a4-81c7-40a4-8cc3-56362ac9fad6"), "Sales Order", "Sales Order" },
|
||||
{ new Guid("12773c2c-64e7-478c-af17-8471f943a5ed"), "Other", "Other" },
|
||||
{ new Guid("31cd7533-3ffc-4e84-a0b4-db3b94d016b2"), "Proforma Invoice", "Proforma Invoice" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "InvoiceAttachmentTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("060c79a4-81c7-40a4-8cc3-56362ac9fad6"));
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "InvoiceAttachmentTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("12773c2c-64e7-478c-af17-8471f943a5ed"));
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "InvoiceAttachmentTypes",
|
||||
keyColumn: "Id",
|
||||
keyValue: new Guid("31cd7533-3ffc-4e84-a0b4-db3b94d016b2"));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -5104,6 +5104,24 @@ namespace Marco.Pms.DataAccess.Migrations
|
||||
Id = new Guid("1fa20cff-b0ee-468e-9ea6-72d5aa144a3f"),
|
||||
Description = "An E-Invoice (Electronic Invoice) is a system where B2B invoices are electronically authenticated by the GST Network (GSTN) to generate a unique Invoice Reference Number (IRN) and QR code.",
|
||||
Name = "E-Invoice"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("31cd7533-3ffc-4e84-a0b4-db3b94d016b2"),
|
||||
Description = "Proforma Invoice",
|
||||
Name = "Proforma Invoice"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("060c79a4-81c7-40a4-8cc3-56362ac9fad6"),
|
||||
Description = "Sales Order",
|
||||
Name = "Sales Order"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = new Guid("12773c2c-64e7-478c-af17-8471f943a5ed"),
|
||||
Description = "Other",
|
||||
Name = "Other"
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@ -1127,8 +1127,8 @@ namespace Marco.Pms.Services.Controllers
|
||||
|
||||
// Step 1: Ensure employee is allocated to the project for this tenant.
|
||||
var projectAllocation = await _context.ProjectAllocations
|
||||
.Include(pa => pa.Employee)!.ThenInclude(e => e.JobRole)
|
||||
.Include(pa => pa.Employee)!.ThenInclude(e => e.Organization)
|
||||
.Include(pa => pa.Employee)!.ThenInclude(e => e!.JobRole)
|
||||
.Include(pa => pa.Employee)!.ThenInclude(e => e!.Organization)
|
||||
.Include(pa => pa.Project)
|
||||
.FirstOrDefaultAsync(pa =>
|
||||
pa.ProjectId == projectId &&
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user