Skip to content
Snippets Groups Projects
Commit ad60b27e authored by Maximilian Schröger's avatar Maximilian Schröger
Browse files

Ascii Documentation in Product, Offer and Contract

parent e3360104
No related branches found
No related tags found
No related merge requests found
= PRODUCT
:hardbreaks:
Entity contains meta data of the Product module.
It provides data from database table _PRODUCT_.
== Submodules
* Parts list (Prod2Prod)
* Product price
* Stock
\ No newline at end of file
= PRODUCTCODE
:hardbreaks:
Unique identification number of the product. (max. 30 characters, not automatically generated)
\ No newline at end of file
......@@ -135,9 +135,11 @@
</entityField>
<entityField>
<name>PRICELIST</name>
<documentation>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/documentation.adoc</documentation>
<title>Price list</title>
<tableName>PRODUCTPRICE</tableName>
<columnName>PRICELIST</columnName>
<mandatoryProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/mandatoryProcess.js</mandatoryProcess>
<possibleItemsProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/possibleItemsProcess.js</possibleItemsProcess>
<state>AUTO</state>
<stateProcess>%aditoprj%/entity/Productprice_entity/entityfields/pricelist/stateProcess.js</stateProcess>
......
= PRODUCTPRICE
:hardbreaks:
Entity contains price lists for the linked product.
It provides data from database table _PRODUCTPRICE_.
== New price list via product
By creation via product you have to select a price list type using the field _PRICELIST_.
== New price list via organisation (custom price list)
By creation via an organisation you don't have do select a price list type because
it's a custom price list \-> field _RELATION_ID_ is filled automatically by parameter _Relation_Id_param_.
\ No newline at end of file
= PRICELIST
:hardbreaks:
Field indicates the type of the price list.
== onValidation
There's a **verficiation** for current pricelist whether an **identical price list already exists** for product.
The following criteria will be checked in function _ProductUtils.checkForIndenticalPriceLists()_:
* Identical price list type
* Identical from quantity
* Identical currency
* Identical purchase price/sales price
* Idcentical Valid from and valid to OR
If all criteria are fulfilled, price list can not be saved.
\ No newline at end of file
import("system.vars");
import("system.result");
if(vars.get("$field.RELATION_ID") != "")
result.string("false");
else
result.string("true");
\ No newline at end of file
......@@ -3,6 +3,7 @@
<name>Stock_entity</name>
<title>Stock</title>
<majorModelMode>DISTRIBUTED</majorModelMode>
<documentation>%aditoprj%/entity/Stock_entity/documentation.adoc</documentation>
<recordContainerType>DB</recordContainerType>
<alias>Data_alias</alias>
<conditionProcess>%aditoprj%/entity/Stock_entity/conditionProcess.js</conditionProcess>
......
= STOCK
:hardbreaks:
Entity contains stock for the linked product.
It provides data from database table _STOCK_.
\ No newline at end of file
......@@ -5,7 +5,7 @@ import("Product_lib");
if(vars.exists("$param.ProductId_param") && vars.get("$param.ProductId_param") != "")
{
var ProductUtils = new ProductUtils();
var pUtils = new ProductUtils();
result.string( ProductUtils.getStockCount(vars.get("$param.ProductId_param")) );
result.string( pUtils.getStockCount(vars.get("$param.ProductId_param")) );
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment