public void updateInventItemPrice()
{
CostingVersion costingVersion;
...
// copy sales prices
insertInventItemPrice(#commonCostingVersionId, ModuleInventPurchSales::Sales, CostingVersionPriceType::Sales, NoYes::No, NoYes::No, NoYes::No, NoYes::No,
InventItemCostingType::Undefined);
if(new DictConfigurationKey(new DictTable(tablenum(InventDimCombination)).configurationKeyId()).enabled())
{
// copy records from InventDimCombination to InventItemPrice
// copy cost prices
insertInventItemPriceDimCost(#commonCostingVersionId, NoYes::No, InventItemCostingType::Undefined);
insertInventItemPriceDimCost('', NoYes::Yes, InventItemCostingType::Last);
// copy purcahse prices
insertInventItemPriceDimSalesPurchase(#commonCostingVersionId, ModuleInventPurchSales::Purch, CostingVersionPriceType::Purch, NoYes::No, NoYes::Yes,
InventItemCostingType::Undefined);
insertInventItemPriceDimSalesPurchase('', ModuleInventPurchSales::Purch, CostingVersionPriceType::Purch, NoYes::Yes, NoYes::Yes,
InventItemCostingType::Last);
// copy sales prices
insertInventItemPriceDimSalesPurchase(#commonCostingVersionId, ModuleInventPurchSales::Sales, CostingVersionPriceType::Sales, NoYes::No, NoYes::No,
InventItemCostingType::Undefined);
}
if (rowCount)
...
ttscommit;
}