Quintiq file version 2.0
|
#parent: #root
|
Method GetTotalBaseCost (
|
AccountAssignment accountassignment
|
) declarative remote as Real
|
{
|
Description: 'Returns the total base cost of the inventory supply.'
|
TextBody:
|
[*
|
// desmondt Sep-10-2014 (created)
|
rate := guard( this.ProductInStockingPointInPeriodPlanningLeaf().CurrencyInPeriod().Rate(), 1.0 );
|
|
basecostperqty := rate * guard( this.GetAccountCost( accountassignment ).Cost(), 0 );
|
|
value := maxvalue( basecostperqty * this.Quantity(), 0 );
|
|
return value;
|
*]
|
}
|