|
|
#11 |
|
Banned
|
Цитата:
![]() X++: AmountMST cost = this.itemPrice(ModuleInventPurchSales::Invent);
AmountMST sales = this.itemPrice(ModuleInventPurchSales::Sales);
...
//Avoid division by zero
if (sales == 0)
{
mcrCatalogAreaAnalysisTmp.CogsPercent = 0;
}
else
{
mcrCatalogAreaAnalysisTmp.CogsPercent = cost / sales;
} |
|
|
|
| За это сообщение автора поблагодарили: S.Kuskov (2). | |