Package org.openbravo.model.procurement
Class Requisition
- java.lang.Object
-
- org.openbravo.base.structure.BaseOBObject
-
- org.openbravo.model.procurement.Requisition
-
- All Implemented Interfaces:
Serializable
,BaseOBObjectDef
,OBNotSingleton
,OBProvidable
,ActiveEnabled
,ClientEnabled
,DynamicEnabled
,Identifiable
,OrganizationEnabled
,Traceable
public class Requisition extends BaseOBObject implements Traceable, ClientEnabled, OrganizationEnabled, ActiveEnabled
Entity class for entity ProcurementRequisition (stored in table M_Requisition).
Help: This table contains the headers of products demand. In the header it can be set a preferred vendor and/or price list. The requisitions are owned by an user of the Openbravo instance and have different statuses, each of them allowing different actions.In this window users manage only his own requisitions.
NOTE: This class should not be instantiated directly. To instantiate this class theOBProvider
should be used.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITY_NAME
static String
PROPERTY_ACTIVE
Property active stored in column IsActive in table M_Requisitionstatic String
PROPERTY_BUSINESSPARTNER
Property businessPartner stored in column C_BPartner_ID in table M_Requisition
Help: A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.static String
PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table M_Requisitionstatic String
PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table M_Requisitionstatic String
PROPERTY_CREATEPO
Property createPO stored in column Createpo in table M_Requisition
Help: Button to generate the corresponding purchase orders to fulfill the products demand.static String
PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table M_Requisitionstatic String
PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table M_Requisition
Help: Indicates the currency to be used when processing this document.static String
PROPERTY_DESCRIPTION
Property description stored in column Description in table M_Requisition
Help: A description is limited to 255 characters.static String
PROPERTY_DOCUMENTACTION
Property documentAction stored in column DocAction in table M_Requisition
Help: You find the current status in the Document Status field. The options are listed in a popupstatic String
PROPERTY_DOCUMENTNO
Property documentNo stored in column DocumentNo in table M_Requisitionstatic String
PROPERTY_DOCUMENTSTATUS
Property documentStatus stored in column DocStatus in table M_Requisition
Help: The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.static String
PROPERTY_ID
Property id stored in column M_Requisition_ID in table M_Requisition
Help: The ID identifies a unique requisitionstatic String
PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table M_Requisitionstatic String
PROPERTY_PRICELIST
Property priceList stored in column M_PriceList_ID in table M_Requisition
Help: Price Lists are used to determine the pricing, margin and cost of items purchased or sold.static String
PROPERTY_PROCESSED
Property processed stored in column Processed in table M_Requisition
Help: The Processed checkbox indicates that a document has been processed.static String
PROPERTY_PROCESSNOW
Property processNow stored in column Processing in table M_Requisition
Help: When this field is set as 'Y' a process is being performed on this record.static String
PROPERTY_PROCUREMENTREQUISITIONLINELIST
Property procurementRequisitionLineList stored in table M_Requisitionstatic String
PROPERTY_UPDATED
Property updated stored in column Updated in table M_Requisitionstatic String
PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table M_Requisitionstatic String
PROPERTY_USERCONTACT
Property userContact stored in column AD_User_ID in table M_Requisition
Help: The User identifies a unique user in the system. This could be an internal user or a business partner contactstatic String
TABLE_NAME
-
Fields inherited from class org.openbravo.base.structure.BaseOBObject
ID
-
-
Constructor Summary
Constructors Constructor Description Requisition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BusinessPartner
getBusinessPartner()
Client
getClient()
Client fieldUser
getCreatedBy()
Created by audit userDate
getCreationDate()
Creation date of auditCurrency
getCurrency()
String
getDescription()
String
getDocumentAction()
String
getDocumentNo()
String
getDocumentStatus()
String
getEntityName()
String
getId()
Organization
getOrganization()
Gets organization fieldPriceList
getPriceList()
List<RequisitionLine>
getProcurementRequisitionLineList()
Help: This table contains each product demand of a requisition. The demand is defined by a product, the date when is needed to have and the quantity. It is also possible to define a preferred vendor, price list and the correspondent prices. The demands are locked when are being used to generate the purchase orders so there are not created duplicate purchase orders for the same demand.Date
getUpdated()
Update date of auditUser
getUpdatedBy()
Update by audit userUser
getUserContact()
Boolean
isActive()
Gets active fieldBoolean
isCreatePO()
Boolean
isProcessed()
Boolean
isProcessNow()
void
setActive(Boolean active)
Sets active fieldvoid
setBusinessPartner(BusinessPartner businessPartner)
void
setClient(Client client)
Client fieldvoid
setCreatedBy(User createdBy)
Created by audit uservoid
setCreatePO(Boolean createPO)
void
setCreationDate(Date creationDate)
Creation date of auditvoid
setCurrency(Currency currency)
void
setDescription(String description)
void
setDocumentAction(String documentAction)
void
setDocumentNo(String documentNo)
void
setDocumentStatus(String documentStatus)
void
setId(String id)
void
setOrganization(Organization organization)
Sets organization fieldvoid
setPriceList(PriceList priceList)
void
setProcessed(Boolean processed)
void
setProcessNow(Boolean processNow)
void
setProcurementRequisitionLineList(List<RequisitionLine> procurementRequisitionLineList)
Help: This table contains each product demand of a requisition. The demand is defined by a product, the date when is needed to have and the quantity. It is also possible to define a preferred vendor, price list and the correspondent prices. The demands are locked when are being used to generate the purchase orders so there are not created duplicate purchase orders for the same demand.void
setUpdated(Date updated)
Update date of auditvoid
setUpdatedBy(User updatedBy)
Update by audit uservoid
setUserContact(User userContact)
-
Methods inherited from class org.openbravo.base.structure.BaseOBObject
checkDerivedReadable, get, get, get, getEntity, getIdentifier, getValue, isAllowRead, isNewOBObject, isOrgClientAccessCheckEnabled, isWriteAccessCheckEnabled, set, setAccessChecks, setAllowRead, setDefaultValue, setId, setNewOBObject, setValue, toString, validate
-
-
-
-
Field Detail
-
TABLE_NAME
public static final String TABLE_NAME
- See Also:
- Constant Field Values
-
ENTITY_NAME
public static final String ENTITY_NAME
- See Also:
- Constant Field Values
-
PROPERTY_ID
public static final String PROPERTY_ID
Property id stored in column M_Requisition_ID in table M_Requisition
Help: The ID identifies a unique requisition- See Also:
- Constant Field Values
-
PROPERTY_CLIENT
public static final String PROPERTY_CLIENT
Property client stored in column AD_Client_ID in table M_Requisition- See Also:
ClientEnabled
, Constant Field Values
-
PROPERTY_ORGANIZATION
public static final String PROPERTY_ORGANIZATION
Property organization stored in column AD_Org_ID in table M_Requisition- See Also:
OrganizationEnabled
, Constant Field Values
-
PROPERTY_ACTIVE
public static final String PROPERTY_ACTIVE
Property active stored in column IsActive in table M_Requisition- See Also:
ActiveEnabled
, Constant Field Values
-
PROPERTY_CREATIONDATE
public static final String PROPERTY_CREATIONDATE
Property creationDate stored in column Created in table M_Requisition- See Also:
Traceable
, Constant Field Values
-
PROPERTY_CREATEDBY
public static final String PROPERTY_CREATEDBY
Property createdBy stored in column Createdby in table M_Requisition- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATED
public static final String PROPERTY_UPDATED
Property updated stored in column Updated in table M_Requisition- See Also:
Traceable
, Constant Field Values
-
PROPERTY_UPDATEDBY
public static final String PROPERTY_UPDATEDBY
Property updatedBy stored in column Updatedby in table M_Requisition- See Also:
Traceable
, Constant Field Values
-
PROPERTY_DESCRIPTION
public static final String PROPERTY_DESCRIPTION
Property description stored in column Description in table M_Requisition
Help: A description is limited to 255 characters.- See Also:
- Constant Field Values
-
PROPERTY_DOCUMENTNO
public static final String PROPERTY_DOCUMENTNO
Property documentNo stored in column DocumentNo in table M_Requisition- See Also:
- Constant Field Values
-
PROPERTY_BUSINESSPARTNER
public static final String PROPERTY_BUSINESSPARTNER
Property businessPartner stored in column C_BPartner_ID in table M_Requisition
Help: A Business Partner is anyone with whom you transact. This can include a customer, vendor, employee or any combination of these.- See Also:
- Constant Field Values
-
PROPERTY_PRICELIST
public static final String PROPERTY_PRICELIST
Property priceList stored in column M_PriceList_ID in table M_Requisition
Help: Price Lists are used to determine the pricing, margin and cost of items purchased or sold.- See Also:
- Constant Field Values
-
PROPERTY_CURRENCY
public static final String PROPERTY_CURRENCY
Property currency stored in column C_Currency_ID in table M_Requisition
Help: Indicates the currency to be used when processing this document.- See Also:
- Constant Field Values
-
PROPERTY_CREATEPO
public static final String PROPERTY_CREATEPO
Property createPO stored in column Createpo in table M_Requisition
Help: Button to generate the corresponding purchase orders to fulfill the products demand.- See Also:
- Constant Field Values
-
PROPERTY_DOCUMENTSTATUS
public static final String PROPERTY_DOCUMENTSTATUS
Property documentStatus stored in column DocStatus in table M_Requisition
Help: The Document Status indicates the status of a document at this time. To change the status of a document, use one of the buttons usually located at the bottom of the document window.- See Also:
- Constant Field Values
-
PROPERTY_DOCUMENTACTION
public static final String PROPERTY_DOCUMENTACTION
Property documentAction stored in column DocAction in table M_Requisition
Help: You find the current status in the Document Status field. The options are listed in a popup- See Also:
- Constant Field Values
-
PROPERTY_PROCESSED
public static final String PROPERTY_PROCESSED
Property processed stored in column Processed in table M_Requisition
Help: The Processed checkbox indicates that a document has been processed.- See Also:
- Constant Field Values
-
PROPERTY_USERCONTACT
public static final String PROPERTY_USERCONTACT
Property userContact stored in column AD_User_ID in table M_Requisition
Help: The User identifies a unique user in the system. This could be an internal user or a business partner contact- See Also:
- Constant Field Values
-
PROPERTY_PROCESSNOW
public static final String PROPERTY_PROCESSNOW
Property processNow stored in column Processing in table M_Requisition
Help: When this field is set as 'Y' a process is being performed on this record.- See Also:
- Constant Field Values
-
PROPERTY_PROCUREMENTREQUISITIONLINELIST
public static final String PROPERTY_PROCUREMENTREQUISITIONLINELIST
Property procurementRequisitionLineList stored in table M_Requisition- See Also:
- Constant Field Values
-
-
Method Detail
-
getEntityName
public String getEntityName()
- Specified by:
getEntityName
in interfaceIdentifiable
- Specified by:
getEntityName
in classBaseOBObject
-
getId
public String getId()
- Specified by:
getId
in interfaceBaseOBObjectDef
- Specified by:
getId
in interfaceIdentifiable
- Overrides:
getId
in classBaseOBObject
- See Also:
PROPERTY_ID
-
setId
public void setId(String id)
- See Also:
PROPERTY_ID
-
getClient
public Client getClient()
Description copied from interface:ClientEnabled
Client field- Specified by:
getClient
in interfaceClientEnabled
- Returns:
- client
- See Also:
PROPERTY_CLIENT
-
setClient
public void setClient(Client client)
Description copied from interface:ClientEnabled
Client field- Specified by:
setClient
in interfaceClientEnabled
- See Also:
PROPERTY_CLIENT
-
getOrganization
public Organization getOrganization()
Description copied from interface:OrganizationEnabled
Gets organization field- Specified by:
getOrganization
in interfaceOrganizationEnabled
- Returns:
- organization
- See Also:
PROPERTY_ORGANIZATION
-
setOrganization
public void setOrganization(Organization organization)
Description copied from interface:OrganizationEnabled
Sets organization field- Specified by:
setOrganization
in interfaceOrganizationEnabled
- See Also:
PROPERTY_ORGANIZATION
-
isActive
public Boolean isActive()
Description copied from interface:ActiveEnabled
Gets active field- Specified by:
isActive
in interfaceActiveEnabled
- Returns:
- active
- See Also:
PROPERTY_ACTIVE
-
setActive
public void setActive(Boolean active)
Description copied from interface:ActiveEnabled
Sets active field- Specified by:
setActive
in interfaceActiveEnabled
- See Also:
PROPERTY_ACTIVE
-
getCreationDate
public Date getCreationDate()
Description copied from interface:Traceable
Creation date of audit- Specified by:
getCreationDate
in interfaceTraceable
- Returns:
- Date of creation
- See Also:
PROPERTY_CREATIONDATE
-
setCreationDate
public void setCreationDate(Date creationDate)
Description copied from interface:Traceable
Creation date of audit- Specified by:
setCreationDate
in interfaceTraceable
- See Also:
PROPERTY_CREATIONDATE
-
getCreatedBy
public User getCreatedBy()
Description copied from interface:Traceable
Created by audit user- Specified by:
getCreatedBy
in interfaceTraceable
- Returns:
- User
- See Also:
PROPERTY_CREATEDBY
-
setCreatedBy
public void setCreatedBy(User createdBy)
Description copied from interface:Traceable
Created by audit user- Specified by:
setCreatedBy
in interfaceTraceable
- See Also:
PROPERTY_CREATEDBY
-
getUpdated
public Date getUpdated()
Description copied from interface:Traceable
Update date of audit- Specified by:
getUpdated
in interfaceTraceable
- Returns:
- Date of update
- See Also:
PROPERTY_UPDATED
-
setUpdated
public void setUpdated(Date updated)
Description copied from interface:Traceable
Update date of audit- Specified by:
setUpdated
in interfaceTraceable
- See Also:
PROPERTY_UPDATED
-
getUpdatedBy
public User getUpdatedBy()
Description copied from interface:Traceable
Update by audit user- Specified by:
getUpdatedBy
in interfaceTraceable
- Returns:
- User who updated
- See Also:
PROPERTY_UPDATEDBY
-
setUpdatedBy
public void setUpdatedBy(User updatedBy)
Description copied from interface:Traceable
Update by audit user- Specified by:
setUpdatedBy
in interfaceTraceable
- See Also:
PROPERTY_UPDATEDBY
-
getDescription
public String getDescription()
- See Also:
PROPERTY_DESCRIPTION
-
setDescription
public void setDescription(String description)
- See Also:
PROPERTY_DESCRIPTION
-
getDocumentNo
public String getDocumentNo()
- See Also:
PROPERTY_DOCUMENTNO
-
setDocumentNo
public void setDocumentNo(String documentNo)
- See Also:
PROPERTY_DOCUMENTNO
-
getBusinessPartner
public BusinessPartner getBusinessPartner()
- See Also:
PROPERTY_BUSINESSPARTNER
-
setBusinessPartner
public void setBusinessPartner(BusinessPartner businessPartner)
- See Also:
PROPERTY_BUSINESSPARTNER
-
getPriceList
public PriceList getPriceList()
- See Also:
PROPERTY_PRICELIST
-
setPriceList
public void setPriceList(PriceList priceList)
- See Also:
PROPERTY_PRICELIST
-
getCurrency
public Currency getCurrency()
- See Also:
PROPERTY_CURRENCY
-
setCurrency
public void setCurrency(Currency currency)
- See Also:
PROPERTY_CURRENCY
-
isCreatePO
public Boolean isCreatePO()
- See Also:
PROPERTY_CREATEPO
-
setCreatePO
public void setCreatePO(Boolean createPO)
- See Also:
PROPERTY_CREATEPO
-
getDocumentStatus
public String getDocumentStatus()
- See Also:
PROPERTY_DOCUMENTSTATUS
-
setDocumentStatus
public void setDocumentStatus(String documentStatus)
- See Also:
PROPERTY_DOCUMENTSTATUS
-
getDocumentAction
public String getDocumentAction()
- See Also:
PROPERTY_DOCUMENTACTION
-
setDocumentAction
public void setDocumentAction(String documentAction)
- See Also:
PROPERTY_DOCUMENTACTION
-
isProcessed
public Boolean isProcessed()
- See Also:
PROPERTY_PROCESSED
-
setProcessed
public void setProcessed(Boolean processed)
- See Also:
PROPERTY_PROCESSED
-
getUserContact
public User getUserContact()
- See Also:
PROPERTY_USERCONTACT
-
setUserContact
public void setUserContact(User userContact)
- See Also:
PROPERTY_USERCONTACT
-
isProcessNow
public Boolean isProcessNow()
- See Also:
PROPERTY_PROCESSNOW
-
setProcessNow
public void setProcessNow(Boolean processNow)
- See Also:
PROPERTY_PROCESSNOW
-
getProcurementRequisitionLineList
public List<RequisitionLine> getProcurementRequisitionLineList()
Help: This table contains each product demand of a requisition. The demand is defined by a product, the date when is needed to have and the quantity. It is also possible to define a preferred vendor, price list and the correspondent prices. The demands are locked when are being used to generate the purchase orders so there are not created duplicate purchase orders for the same demand.- See Also:
RequisitionLine
-
setProcurementRequisitionLineList
public void setProcurementRequisitionLineList(List<RequisitionLine> procurementRequisitionLineList)
Help: This table contains each product demand of a requisition. The demand is defined by a product, the date when is needed to have and the quantity. It is also possible to define a preferred vendor, price list and the correspondent prices. The demands are locked when are being used to generate the purchase orders so there are not created duplicate purchase orders for the same demand.- See Also:
RequisitionLine
-
-