1 17 package org.openbravo.erpCommon.ad_forms; 18 19 import org.apache.log4j.Logger ; 20 import org.openbravo.database.ConnectionProvider; 22 import java.sql.Connection ; 23 24 25 26 public class DocLine_Material extends DocLine { 27 static Logger log4jDocLine_Material = Logger.getLogger(DocLine_Material.class); 28 29 35 public DocLine_Material (String DocumentType, String TrxHeader_ID, String TrxLine_ID){ 36 super(DocumentType, TrxHeader_ID, TrxLine_ID); 37 } 38 39 40 public String m_M_Locator_ID = ""; 41 public String m_M_LocatorTo_ID = ""; 42 43 47 public void setQty (String qty, ConnectionProvider conn){ 48 log4jDocLine_Material.debug(" setQty - qty= " + qty); 49 super.setQty(qty); p_productInfo.setQty(qty, p_productInfo.m_C_UOM_ID, conn); 51 log4jDocLine_Material.debug(" setQty - productInfo.qty = "+ p_productInfo.m_qty); 52 } 54 59 public String getProductCosts (AcctSchema as, ConnectionProvider conn, Connection con){ 60 return p_productInfo.getProductCosts(as, conn, con); 61 } 63 70 public Account getAccount(String AcctType, AcctSchema as, ConnectionProvider conn){ 71 return p_productInfo.getAccount (AcctType, as, conn); 72 } 74 75 public String getServletInfo() { 76 return "Servlet for the accounting"; 77 } } 79 | Popular Tags |