status, pa material na artikel

This commit is contained in:
David Štaleker
2025-07-18 10:07:11 +02:00
parent 959bf95053
commit f0e07ebfca
2 changed files with 22 additions and 3 deletions

View File

@@ -242,13 +242,15 @@ namespace EveryThing.Pages.Projects
Discount = 0,
IdInvoiceFk = idInvoice,
IdProjectPartItem = projectPartItem.IdProjectPartItem,
IdItemFk = projectPartItem.IdMaterialFk,
ItemDescription = projectPartItem.MaterialDimensions,
IdItemFk = projectPartItem.IdItemFk,
ItemDescription = "",
Note = "",
Price = projectPartItem.MaterialPrice,
Quantity = projectPartItem.NumberOfItems
Quantity = projectPartItem.NumberOfItems * projectPartItem.NumberOfSets
};
_context.InvoiceItems.Add(newInvoiceItem);
projectPartItem.Status = ProjectPartItemStatus.InCooperation;
}
_context.SaveChanges();
}