Plugin: Alt OrderLine
From iDempiere en
- Creator: Red1 (talk) - RED1.org
- Current Version: 2.1
- License: GPLv2 - Free as in Freedom not Free Lunch
- Source: BitBucket
- Plugin: alt.orderlineplugin & 2Pack
- Forum: red1.org
- Sponsor: AulerSipel.
Continuation
- This project is a separate plugin and continuation of Plugin:_Alternative_Output.
- To be able to group items arbitrarily and have control over their output display
- Use that plugin if you just want a simple display and control of alternative output.
- This plugin here has additional CONSOLIDATE and CONSOLIDATE_SAME_LINE output
- Again, what is vital is that this is a pure separate non impact to core plugin with no meta-model or design entanglement. Everything follows the Java and OSGi concept of Object-Oriented componentisation with loose coupling.
Tab Model
- The extra tab model is same as C_OrderLine with each line for each display output row.
- Same as previous plugin, it has simplified fields.
- C_ALTOrderLine parent key is C_Order_ID, it can have many to one C_Order parent.
CONSOLIDATE for Readability
- Similar to previous plugin, it uses hash # character in BOM parent Document Note box, to effect any group of products.
- HEADER#CONSOLIDATE will take any similar product lines into one with its qty value summed up
- HEADER#CONSOLIDATE_SAME_LINE will group only those that have same qtys.
- For example:
- Cable A1 - Qty=100 meters
- Cable A1 - Qty=100 meters
- Will result in:
- 2 X Cable A1 - Qty=100 meters
Screenshots of Examples
- See screen above of normal OrderLine tab showing source that has two lines of similar products and similar qtys (2 sets of screws at qty=8)
- They will be used to quickly test the plugin as shown on screens below.
- First the setting is to #CONSOLIDATE#, then Prepare the Sales Order.
- Note the output has both lines merged with the qty = 16
- Next we change to #CONSOLIDATE_SAME_LINE, and Prepare the same Sales Order again.
- Note that now the alternative orderline has maintained the qty = 8 but description is '2 X <product>'
Easy Source
- I have made the source code as pushed to bitbucket well described so that any coder can change it easily.
- Note that the ALT tab did not apply discount for LineNetAmt, but that is easy to solve in code - just copy the original C_OrderLine column values. What is important is the ability to group arbitrarily any set of products quickly and to change description for PrintFormat to be more readable.
2Pack
- 2Pack is embedded in alt.orderline plugin jar
- After auto Pack In, under System Admin, the PackOut window can be reused to modify and pack out again.
Print Format
- Now a PrintFormat option for Sales Order Window is set for Document Type 'Standard Order'
- It is a copy of the Order Template but referring to a new View that access the Alt table.
- In this example is tested with a new case of 2 X 5 Qty and discount field is also resolved.
- User can also switch back to old PrintFormat from the pull down menu.
- This finally proved that all cases can be handled with no impact to core.
Feedback
Please rate this plugin:
{{#w4grb_rate:Plugin:_Alt_OrderLine}}
<w4grb_ratinglist pagevotes idpage="Plugin:_Alt_OrderLine"/>
If you want to provide additional comments, please use the Discussion page.
