Package org.openbravo.erpCommon.ad_forms
Class DocLine_Material
- java.lang.Object
-
- org.openbravo.erpCommon.ad_forms.DocLine
-
- org.openbravo.erpCommon.ad_forms.DocLine_Material
-
public class DocLine_Material extends DocLine
-
-
Field Summary
Fields Modifier and Type Field Description String
m_breakdownqty
String
m_M_Locator_ID
LocatorString
m_M_LocatorTo_ID
String
m_M_Warehouse_ID
String
m_Productiontype
ProductionMaterialTransaction
transaction
-
Fields inherited from class org.openbravo.erpCommon.ad_forms.DocLine
m_A_Asset_ID, m_account, m_AD_Org_ID, m_AD_OrgTrx_ID, m_AmtAcctCr, m_AmtAcctDr, m_AmtSourceCr, m_AmtSourceDr, m_C_AcctSchema_ID, m_C_Activity_ID, m_C_BPartner_ID, m_C_Campaign_ID, m_C_Charge_ID, m_C_Costcenter_ID, m_C_Currency_ID, m_C_Glitem_ID, m_C_LocFrom_ID, m_C_LocTo_ID, m_C_Project_ID, m_C_SalesRegion_ID, m_C_Tax_ID, m_C_UOM_ID, m_C_WithHolding_ID, m_ChargeAmt, m_DateAcct, m_DateDoc, m_description, m_Line, m_M_Product_ID, m_qty, m_Record_Id2, m_TrxHeader_ID, m_TrxLine_ID, m_User1_ID, m_User2_ID, p_DocumentType, p_productInfo, ZERO
-
-
Constructor Summary
Constructors Constructor Description DocLine_Material(String DocumentType, String TrxHeader_ID, String TrxLine_ID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Account
getAccount(String AcctType, AcctSchema as, ConnectionProvider conn)
Line Account from ProductString
getBreakdownQty()
String
getProductCosts(String date, AcctSchema as, ConnectionProvider conn, Connection con)
Get Total Product Costs.String
getServletInfo()
Warehouse
getWarehouse()
void
setBreakdownQty(String breakdownqty)
void
setQty(String qty, ConnectionProvider conn)
Set Trasaction Quantity and Storage Qtyvoid
setTransaction(MaterialTransaction transaction)
-
Methods inherited from class org.openbravo.erpCommon.ad_forms.DocLine
copyInfo, getAccount, getAmount, getAmtSourceCr, getAmtSourceDr, getC_AcctSchema_ID, getChargeAccount, getM_C_Tax_ID, getM_C_WithHolding_ID, getM_description, loadAttributes, setAccount, setAD_Org_ID, setAmount, setAmount, setConvertedAmt, setM_C_Tax_ID, setM_C_WithHolding_ID, setQty
-
-
-
-
Field Detail
-
m_M_Locator_ID
public String m_M_Locator_ID
Locator
-
m_M_LocatorTo_ID
public String m_M_LocatorTo_ID
-
m_M_Warehouse_ID
public String m_M_Warehouse_ID
-
m_Productiontype
public String m_Productiontype
Production
-
transaction
public MaterialTransaction transaction
-
m_breakdownqty
public String m_breakdownqty
-
-
Method Detail
-
setQty
public void setQty(String qty, ConnectionProvider conn)
Set Trasaction Quantity and Storage Qty- Parameters:
qty
- qty
-
setTransaction
public void setTransaction(MaterialTransaction transaction)
-
getWarehouse
public Warehouse getWarehouse()
-
getProductCosts
public String getProductCosts(String date, AcctSchema as, ConnectionProvider conn, Connection con)
Get Total Product Costs. If exists a transaction retrieves the cost from it, otherwise calls theProductInfo.getProductDefaultCosts(String, BigDecimal, Organization, Warehouse, Currency)
- Parameters:
date
- String with the accounting date used in case there is no material transaction.as
-
-
getAccount
public Account getAccount(String AcctType, AcctSchema as, ConnectionProvider conn)
Line Account from Product- Parameters:
AcctType
- see ProoductInfo.ACCTTYPE_* (0..3)as
- accounting schema- Returns:
- Requested Product Account
-
getBreakdownQty
public String getBreakdownQty()
-
setBreakdownQty
public void setBreakdownQty(String breakdownqty)
-
getServletInfo
public String getServletInfo()
- Overrides:
getServletInfo
in classDocLine
-
-