The purpose of this tutorial is to give you an end-to-end example of customization. End-to-end refers to using many of the developer tools at our disposal to enhance the system.
2014-03-06 AM Meeting - Technology Session #1 (ppt)
--chuboe_scan_v - calculates multiplier and adjusted qty (qty * multiplier)
CREATE OR REPLACE VIEW chuboe_scan_v as
SELECT chuboe_scan.ad_client_id, chuboe_scan.ad_org_id, chuboe_scan.chuboe_scan_id, chuboe_scan.chuboe_scan_uu, chuboe_scan.created, chuboe_scan.createdby, chuboe_scan.description, chuboe_scan.isactive, chuboe_scan.name, chuboe_scan.updated, chuboe_scan.updatedby, chuboe_scan.m_inoutline_id, chuboe_scan.m_product_id, chuboe_scan.qty, chuboe_scan.movementtype,
CASE
WHEN "position"(chuboe_scan.movementtype::text, '+'::text) = 0 THEN (-1)
ELSE 1
END AS multiplier,
CASE
WHEN "position"(chuboe_scan.movementtype::text, '+'::text) = 0 THEN (-1)
ELSE 1
END::numeric * chuboe_scan.qty AS qty_adj
FROM chuboe_scan
;
--chuboe_scan_sum_v - sums adjusted qty grouped by product and scan. answers question "How many in stock"
CREATE OR REPLACE VIEW chuboe_scan_sum_v AS
SELECT sum(chuboe_scan_v.qty_adj) AS qty_adj, chuboe_scan_v.m_product_id, chuboe_scan_v.name, 100 AS createdby, 'now'::text::date AS created, 100 AS updatedby, 'now'::text::date AS updated, 0 AS ad_org_id, chuboe_scan_v.ad_client_id
FROM chuboe_scan_v
GROUP BY chuboe_scan_v.m_product_id, chuboe_scan_v.name, chuboe_scan_v.ad_client_id
;
2014-03-11 AM Meeting - Technology Session #3 (ppt)
2014-03-18 AM Meeting - Technology Session #7 (ppt) Migration to new Prod Environment
Export Pack Out and Export Plug In - Install on New System via Felix Console in one step
2014-03-18 PM Meeting - Technology Session #8 (ppt) Pull Plugin Code into New Dev Environment
Notes:
Use iDempiere code (Plug In) found in Bitbucket and install as plugin in iDempiere.
If you get a permissions error ("Cannot access Process") when you try to use your new plugin, run the "Role Access Update" process. This will give your roles access to any windows, processes, etc.. that were missed during the Pack In process. Please note this only affects roles where Manual = "N" or not checked.