question: protected Fact createComponentIssue ( MAcctSchema as ) { final Fact fact = new Fact ( this , as , Fact . POST_Actual ) ; BigDecimal totalCost = Env . ZERO ; FactLine dr = null ; FactLine cr = null ; MAccount debit = m_line . getAccount ( ProductCost . ACCTTYPE_P_WorkInProcess , as ) ; MAccount credit = m_line . getAccount ( ProductCost . ACCTTYPE_P_Asset , as ) ; if ( m_cc . isFloorStock ( ) ) { credit = m_line . getAccount ( ProductCost . ACCTTYPE_P_FloorStock , as ) ; } for ( MCostDetail cd : getCostDetails ( ) ) { BigDecimal cost = MCostDetail . getTotalCost ( cd , as ) ; if ( cost . compareTo ( Env . ZERO ) == 0 ) continue ; if ( cost . scale ( ) > as . getStdPrecision ( ) ) cost = cost . setScale ( as . getStdPrecision ( ) , RoundingMode . HALF_UP ) ; dr = fact . createLine ( m_line , debit , as . getC_Currency_ID ( ) , cost ) ; totalCost = totalCost . add ( cost ) ; } cr = fact . createLine ( m_line , credit , as . getC_Currency_ID ( ) , totalCost . negate ( ) ) ; return fact ; }
target:  The Issue Component product created next account fact Debit Work in Process Account for each Cost Element using current cost Create a fact line for each cost element type Material Labor(Resources) Burden Overhead  Outsite Processing	 Credit Product Asset Account for each Cost Element using current cost Create a fact line for each cost element type Material Labor(Resources) Burden Overhead  Outsite Processing		 Credit Floor Stock Account for each Cost Element using current cost Create a fact line for each cost element type Material Labor(Resources) Burden Overhead  Outsite Processing		