1 14 package org.compiere.acct; 15 16 import java.sql.*; 17 import java.math.*; 18 19 import org.compiere.model.*; 20 21 28 public class DocLine_Material extends DocLine 29 { 30 36 public DocLine_Material (String DocumentType, int TrxHeader_ID, int TrxLine_ID) 37 { 38 super(DocumentType, TrxHeader_ID, TrxLine_ID); 39 } 41 42 private int m_M_Locator_ID = 0; 43 private int m_M_LocatorTo_ID = 0; 44 45 49 public void setM_Locator_ID (int M_Locator_ID) 50 { 51 m_M_Locator_ID = M_Locator_ID; 52 } 54 58 public int getM_Locator_ID() 59 { 60 return m_M_Locator_ID; 61 } 63 67 public void setM_LocatorTo_ID (int M_Locator_ID) 68 { 69 m_M_LocatorTo_ID = M_Locator_ID; 70 } 72 76 public int getM_LocatorTo_ID() 77 { 78 return m_M_LocatorTo_ID; 79 } 81 85 public int getC_UOM_ID() 86 { 87 if (p_DocumentType.equals(DocVO.DOCTYPE_MatShipment) 89 || p_DocumentType.equals(DocVO.DOCTYPE_MatReceipt)) 90 return super.getC_UOM_ID(); 91 return p_productInfo.getC_UOM_ID(); 93 } 95 99 public void setQty (BigDecimal qty) 100 { 101 super.setQty(qty); p_productInfo.setQty (qty, p_productInfo.getC_UOM_ID()); 103 } 105 110 public BigDecimal getProductCosts (AcctSchema as) 111 { 112 return p_productInfo.getProductCosts(as); 113 } 115 122 public Account getAccount(int AcctType, AcctSchema as) 123 { 124 return p_productInfo.getAccount (AcctType, as); 125 } 127 } | Popular Tags |