<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Frepple / TestForecast1</title> <link rel='stylesheet' href='../styles.css' type='text/css' /> <!--PageHeaderFmt--> </head> <body> <div id="container"> <div id="menubar"> <div id="logo" align="center"> <br/><img src='../frepple.bmp' alt="frepple" /><br/> <a href='http://www.frepple.com/'> <strong>a Free<br/>Production Planning<br/>Library</strong> </a></div> <div id="menu"> <br/> <h3><a href='../Main/HomePage.html'>Main</a></h3> <h3><a href='../UI/Main.html'>User Manual</a></h3> <h3><a href='../Tutorial/Main.html'>Tutorial</a></h3> <h3><a href='Main.html'>Reference Manual</a></h3> <h3><a href='../Main/FAQ.html'>FAQ</a></h3> <h3><a href='../reference/index.html'>C++ API</a></h3> <br/><div> </div> </div> </div> <div id="content"> <br/> <!--PageText--> <div id='wikitext'> <p><a class='wikilink' href='../Main/HomePage.html'>Main</a> > <span class='wikitrail'><a class='wikilink' href='Main.html'>Reference Manual</a> > <a class='wikilink' href='Test.html'>Unit tests</a> > <a class='selflink' href='TestForecast1.html'>TestForecast1</a></span> </p> <p class='vspace'>The first step in the forecast netting process is associating each actual order with a forecast it can net from.<br />This test case test this matching algorithm. </p> <p class='vspace'>A customer hierarchy is modeled as follows: "grandparent customer" > "parent customer" > "customer".<br />An item hierarchy is modeled as follows: "grandparent item" > "parent item" > "item".<br />Forecasts are defined at various combinations of these levels.<br />Actual orders are then looking for a matching forecast in these hierarchies. </p> <p class='vspace'>Different scenarios are being validated: </p><ul><li>A: an order matches a forecast at 'customer'+'item' level </li><li>B: an order matches a forecast at 'item' level </li><li>C: an order matches a forecast at 'parent customer' + 'item' level </li><li>D: an order matches a forecast at 'customer' + 'parent item' level </li><li>E: an order matches a forecast at 'parent customer' + 'parent item' level </li></ul> </div> <!--PageFooterFmt--> <!--HTMLFooter--> </div></div> </body> </html>