bug fixed

This commit is contained in:
kamonwan taengsuk
2023-06-27 13:43:20 +07:00
parent 4847f47ffe
commit 0ed7123115
9 changed files with 243 additions and 173 deletions

View File

@@ -30,22 +30,21 @@ namespace rmutr_report.Controllers
[FromBody] durable_articles_three durable_articles_threes)
{
//Console.WriteLine(durable_articles_threes.specification_data[0].data_detail[0].data_detail2);
var a1 = durable_articles_threes.data.Where(d => d.amount == d.amount)
.Sum(o => o.amount);
if (a1!=null)
{
durable_articles_threes.total_amount = a1;
}
// var a1 = durable_articles_threes.data.Sum(o => o.amount);
// if (durable_articles_threes.data!=null)
// {
// durable_articles_threes.total_amount = a1;
//
// }
int a = 1;
foreach (var q in durable_articles_threes.quotation)
{
string t = "ใบเสนอราคาบริษัทที่ " + a++ +" ";
q.company = t + q.company;
//a++;
}
// int a = 1;
// foreach (var q in durable_articles_threes.quotation)
// {
//
// string t = "ใบเสนอราคาบริษัทที่ " + a++ +" ";
// q.company = t + q.company;
// //a++;
// }
var _durable_articles_three = new List<durable_articles_three>() {durable_articles_threes};