Plugin: Alt OrderLine

From iDempiere en
Revision as of 12:06, 14 December 2015 by Red1 (talk | contribs) (→‎Easy Source)


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

SOrderLineAlt.png
  • 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
AltCONSOLIDATE.png
AltConsolidated.png

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 Seeders at qty=5)
  • 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 = 10
  • Next we change to #CONSOLIDATE_SAME_LINE, and Prepare the same Sales Order again.
  • Note that now the alternative orderline has maintained the qty = 5 but description is '2 X <product>'

Easy Source

AltCONSOLIDATESAMELINE.png
AltConsolidatedSameLine.png
  • 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 has discount for LineNetAmt, and the PrintFormat later easily gives this alternative version.
  • Also note that during BOM Parent setting, only the first record need be registered to give effect. This setup is not strict and inclusive rather than exclusive. After some playing around the user should be very efficient and quick is doing any variant required.

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

AltPrintFormat.png
  • 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.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.