1 / 28

Spanish Professional Localization Pack Extension Module Webinar

Spanish Professional Localization Pack Extension Module Webinar. November 26th, 2009. Agenda. Functionality and Demo 15 min. Process and Tools 10 min. Development Technique 10 min. Q & A 25 min. Agenda. Functionality and Demo Process and Tools

zoe-shaw
Download Presentation

Spanish Professional Localization Pack Extension Module Webinar

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Spanish Professional Localization PackExtension Module Webinar November 26th, 2009

  2. Agenda Functionality and Demo 15 min. Process and Tools 10 min. Development Technique 10 min. Q & A 25 min.

  3. Agenda Functionality and Demo Process and Tools Development Technique Q & A

  4. Content & Installation Spanish Professional Localization Pack The Spanish Professional Localization Pack is a “commercial” pack Content: • Invoice Register Books • 347 Third parties transactions annual tax statement • 349 Summary statement of Intra-community transactions • Spanish Community Localization Pack • Spanish translation • Charts of Accounts • Tax ID validation • Domestic bank account validation • Accounting Alerts • Spanish tax rates • Dependent modules -> Tax Report launcher

  5. Functional Highlights Spanish Professional Localization Pack (SPLP) • Goal: • To show you how the Tax Report Launcher allows us to generate and launch tax reports • To show you how Spanish Tax Reports are launched • Functional Concept: • Tax Report => List of transactions subject to taxes (VAT by example) • but NOT only that… • Key thing => Ability to setup different types of “Tax parameters”: • Input • Constant • Output -> “Tax rates”

  6. Spanish Professional Localization Pack (SPLP) Functional Highlights End user Openbravo Transactions Input data Tax Report Tax Report Group Tax Rates TAX REPORT LAUNCHER Tax Report parameters Input Constant Output Tax Report as a “valid” file

  7. Spanish Professional Localization Pack – Tax Report Launcher Functional Highlights DEMO Tax Report Launcher & 347, 349 tax reports

  8. FUNCTIONALITY AND DEMO : RECAP • Spanish Professional Localization Pack content • Spanish tax reports built by using the Tax Report Launcher framework (community framework) • Tax Report parameters as the key way to get tax report data • Tax report parameters linked to Tax Rates

  9. Agenda Functionality and Demo Process and Tools Development Technique Q & A

  10. Spanish Professional Localization PackPack as a container of modules. Managing module's dependencies, releasing new module's versions. • Module version structure: • XXX.YYY.ZZZ • New major version required when: • Dependencies modification • Added or removed dependencies • Modified first version of a dependency • API change Major version Minor version

  11. core Spanish Professional Localization PackPack as a container of modules. Managing module's dependencies, releasing new module's versions. • A module can depend on another module. • 3 attributes in a dependency: • Dependant module • First version • Last version (not mandatory) • Always a dependency on core 347 347 Depends on Tax Rep. Launcher

  12. alerts valid. valid. CoA tax CoA esES Spanish Professional Localization PackPack as a container of modules. Managing module's dependencies, releasing new module's versions. IRB 349 347 SLP • A pack includes modules and/or other packs • 2 attributes in an inclussion: • Included module • Version • In one only .obx file, all modules are included SPLP

  13. Spanish Professional Localization PackPack as a container of modules. Managing module's dependencies, releasing new module's versions. • 4 possible cases while installing packs / modules from file system/central repository • Installing a pack from file system may install different versions of it’s contained module than installing from central repository

  14. Spanish Professional Localization PackPack as a container of modules. Managing module's dependencies, releasing new module's versions. • RECAPITULATION • Modules have got versions • A pack is a set of modules • Dependencies mechanism prevents from bad installations of modules

  15. Agenda Functionality and Demo Process and Tools Development Technique Q & A

  16. AEAT 347 Report AEAT 349 Report Sample Report Future Reports Spanish Professional Localization Pack Implementing Java interfaces for modular development Openbravo ERP JAVA INTERFACE TAX REPORT LAUNCHER JAVA IMPLEMENTATION

  17. Spanish Professional Localization Pack Implementing Java interfaces for modular development JAVA INTERFACE • Abstract type which defines a list of: - Method signatures - Constant declarations (static and final) • The reserved word interface is used • It can't be directly instantiated. Another class must implement the interface, i.e., it must implement all the methods publicinterface OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception; }

  18. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  19. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReportimplementsOBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  20. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  21. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  22. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  23. Spanish Professional Localization Pack – Tax Report Launcher Implementing Java interfaces for modular development DEMO HELLO WORLD Report

  24. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  25. Spanish Professional Localization Pack Implementing Java interfaces for modular development HELLO WORLD IMPLEMENTATION package org.openbravo.module.taxreportlauncher.helloworldreport; // Imports are hidden public class HelloWorldReport implements OBTL_TaxReport_I { public HashMap<String, Object> generateElectronicFile(String strOrgId, String strReportId, String strAcctSchemaId, String strYearId, String strPeriodId, Map<String, String> inputParams) throws OBException, Exception { HashMap<String, Object> myMap = new HashMap<String, Object>(); // Use StringBuffer because it is safe in multi-thread StringBuffer sb = new StringBuffer(); sb.append("Hello World!"); // File content. Mandatory myMap.put("file", sb); // File name. Input Parameter with Search Key "fileName“. Not mandatory myMap.put("fileName", inputParams.get("fileName")); return myMap; } }

  26. Wrap-Up SPLP introduction. Functionality and Demo of the Tax Report Launcher : - SPLP content - Tax reports built from the Tax Report Launcher - Tax Report Launcher as a community module Modules, Packs, Dependencies and versions: - Differences between modules and packages - Dependencies management - Versions management Implementing Java Interfaces for a modular development: - Tax Report Launcher public Java Interface - Hello World report Java implementation - Hello World report setup for the Tax Report Launcher and execution

  27. Spanish Professional Localization Pack Q & A Next Webinar: Quick Start December 10th 4-5 PM (CET) Interesting Links: http://forge.openbravo.com/projects/spainprofessionallocpack http://forge.openbravo.com/projects/localizationpackspain patricia.sanjuan @openbravo.com david.alsasua @openbravo.com @openbravo.com victor.martinez

More Related