Compare commits
No commits in common. "51f6808d8df5a23dcea6ce89fe60eaa208dcf7e3" and "1b4f9059f4316288ee82a7fc409df8bf58f01204" have entirely different histories.
51f6808d8d
...
1b4f9059f4
@ -160,31 +160,16 @@ namespace API.BusinessLogic
|
|||||||
listItem.Amount = (listItem.Amount / 1000) + listItemDTO.Amount;
|
listItem.Amount = (listItem.Amount / 1000) + listItemDTO.Amount;
|
||||||
listItem.Unit = "kg";
|
listItem.Unit = "kg";
|
||||||
}
|
}
|
||||||
else if (listItem.Unit == "kg" && listItemDTO.Unit == "g")
|
|
||||||
{
|
|
||||||
listItem.Amount = (listItemDTO.Amount / 1000) + listItem.Amount;
|
|
||||||
listItem.Unit = "kg";
|
|
||||||
}
|
|
||||||
else if (listItem.Unit == "ml" && listItemDTO.Unit == "l")
|
else if (listItem.Unit == "ml" && listItemDTO.Unit == "l")
|
||||||
{
|
{
|
||||||
listItem.Amount = (listItem.Amount / 1000) + listItemDTO.Amount;
|
listItem.Amount = (listItem.Amount / 1000) + listItemDTO.Amount;
|
||||||
listItem.Unit = "l";
|
listItem.Unit = "l";
|
||||||
}
|
}
|
||||||
else if (listItem.Unit == "l" && listItemDTO.Unit == "ml")
|
|
||||||
{
|
|
||||||
listItem.Amount = (listItemDTO.Amount / 1000) + listItem.Amount;
|
|
||||||
listItem.Unit = "l";
|
|
||||||
}
|
|
||||||
else if (listItem.Unit == "dl" && listItemDTO.Unit == "l")
|
else if (listItem.Unit == "dl" && listItemDTO.Unit == "l")
|
||||||
{
|
{
|
||||||
listItem.Amount = (listItem.Amount / 10) + listItemDTO.Amount;
|
listItem.Amount = (listItem.Amount / 10) + listItemDTO.Amount;
|
||||||
listItem.Unit = "l";
|
listItem.Unit = "l";
|
||||||
}
|
}
|
||||||
else if (listItem.Unit == "l" && listItemDTO.Unit == "dl")
|
|
||||||
{
|
|
||||||
listItem.Amount = (listItemDTO.Amount / 10) + listItem.Amount;
|
|
||||||
listItem.Unit = "l";
|
|
||||||
}
|
|
||||||
|
|
||||||
listItem.Checked = false;
|
listItem.Checked = false;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user