MaterialRevaluation Object
Description
MaterialRevaluation is a business object that enables you to update the items' price (average price or standard price only), revaluate the stock, and create journal entries accordingly.
This object applies only to companies that manage their stock using Continuous Stock system.
This object enables you to:
- Add a material revaluation.
- Retrieve a material revaluation by its key.
- Update a material revaluation.
- Save the object in XML format.
Source table: OMRV.
Object Model
Add | Adds a record to the object table in SAP Business One company database. |
Cancel | Not supported. |
Close | Not supported. |
GetAsXML | Returns the object from XML data, which is stored as string in a buffer. |
GetByKey | Retrieves and sets the values of the object's properties by the object's absolute key from the Company database. |
Remove | Not supported. |
SaveToFile | Save the object to a file as XML data. |
SaveXML | Save object as XML document |
Update | Updates the object data in the company database. |
Public Properties
Browser | Returns the DataBrowser object. |
Comments | Sets or returns comments for the document. (field name: Comments). Length: 254 characters. |
CreationDate | Returns the creation date of the document. (field name: CreateDate). |
DataSource | Not used. (field name: DataSource). |
DocDate | Sets or returns the document posting date. (field name: DocDate). |
DocEntry | Returns the document entry key that uniquely identifies the document. (field name: DocEntry). |
DocNum | Sets or returns the number of the document. (field name: DocNum). |
DocTime | Sets or returns the document creation time. (field name: DocTime). |
JournalMemo | Sets or returns the journal entry remarks that is copied later to the accounting document. (field name: JrnlMemo). Length: 50 characters. |
Lines | Returns the MaterialRevaluation_lines child object. |
Reference1 | P>Sets or returns the first reference code of the document. (field name: Ref1). Length: 11 characters. |
Reference2 | Sets or returns the second reference code of the document. (field name: Ref2). Length: 11 characters. |
RevalType | Sets or returns the revaluation type: price change or material debit/credit. (field name: RevalType). Length: 1 character. |
RevaluationExpenseAccount | Sets or returns the revaluation expense account code. (field name: RExpnAcct). Length: 15 characters. |
RevaluationIncomeAccount | Sets or returns the revaluation income account code. (field name: RIncmAcct). Length: 15 characters. |
Series | Sets or returns the auto-number series that generated the document number. (field name: Series). This is a foreign key to the Series object. |
TaxDate | Sets or returns the date for the tax calculation or payment. (field name: TaxDate). |
TransNum | Returns the transaction number that SAP Business One creates for the document. (field name: TransId). This is a foreign key to the JournalEntries object. |
UpdateDate | Returns the date when the material revaluation was last updated. (field name: UpdateDate). |
UserFields | Returns the UserFields object. |
UserSignature | Returns the ID of the user who created the document. (field name: UserSign). |
Remarks
Country-specific object for Poland.