Code Monkey home page Code Monkey logo

cambiare-gtq's Introduction

Cambiare GTQ

Conector para tipo de cambio en ERPNext, basado en las tasas de cambio del Banco de Guatemala

https://www.banguat.gob.gt/variables/ws/TipoCambio.asmx

License

GNU General Public License v3.0

Installation instructions

Supports ERPNext Version 13


How to Install

  1. bench get-app --branch production https://github.com/sihaysistema/cambiare-gtq.git
  2. bench setup requirements
  3. bench build --app cambiare_gtq
  4. bench restart
  5. bench --site [your.site.name] install-app cambiare_gtq
  6. bench --site [your.site.name] migrate

How To Use:

Cambiare GTQ Wiki

cambiare-gtq's People

Contributors

monroy95 avatar nathsmo avatar ronaldoramirez avatar tropicalrambler avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

askmetoo

cambiare-gtq's Issues

[feature] Doctype Batch Cheque Print

This doctype is a single doctype to generate multiple cambiare cheque print set

Company
Transaction Start Date
Transaction End Date
Button: Generate Cambiare Cheque Print Set
[ ] Add logic to create multiple cambiare check print sets from the child table bank account table.
Table: "cheque print set bank account"

URGENT: Custom fields valid from & valid to

Currency Exchange DocType
valid_from: datetime
valid_to: datetime

Custom field: export fixtures [Custom Field]

remember to clean all hooks.py form Other apps before exporting!

Inyectar datos de BANGUAT via API para tipo de cambio

Obtener tipo de cambio USD GTQ
Crear dos registros por evento uno de Moneda origen a moneda destino, y otro de moneda destino a moneda origen.
Ambos son para compra y para venta simultáneamente.

usar API propio

Add following currency conversions - hardcoded

Add these currencies to automatically create a currency exchange in ERPNext.
Sourced from Banco de Guatemala.

Currency Currency ISO Letter Code Currency ISO Number Code Codigo Banguat Nombre Banguat
Pesos Mexicanos MXN 420 18 Pesos Mexicanos
Lempiras Hondureños HNL 340 19 Lempiras Hondureños
El Salvador Colon SVC 222 17 Colones Salvadoreños
Cordoba Oro NIO 558 21 Córdobas Nicaragüenses
Costa Rican Colon CRC 188 16 Colones Costarricenses
Canadian Dollar CAD 124 7 Dólares Canadienses
Euro EUR 978 24 Euro

Currency textual name translations

  • Add custom field to currency doctype: currency_textual_name

  • Load to test server the translations as data import, including currency_textual_name field

  • Factor code to obtain currency_textual_name based on ISO code, fed by user (from report filter) and finally search translation of the obtained string.

Add basic Exchange Rate Types as fixtures.

  • Monthly Average Exchange Rate

This is meant to use the average exchange rate for the month of the transactions.
Thus, if 2 transactions belong on november 2019, and 4 transactions belong on december 2020, the 2 transactions will be applied the average exchange rate for november 2019, and the 4 transactions will be applied the exchange rate for december 2019.

  • Code: ER-MA

"Exchange Rate Monthly Average"

  • Yearly Average Exchange Rate

This is meant to use the average exchange rate for the year for the transactions. Thus, if 3 transactions belong in 2019, and 4 transactions belong in 2020, the 3 transactions will be applied the average exchange rate for 2019, and the 4 transactions will be applied the exchange rate for 2020.

  • Code: ER-YA

"Exchange Rate Yearly Average"

  • Year to date Average Exchange Rate
    This is meant to use the average exchange rate for the year-to-date, using a user specified date as the last date in the period.

  • Code: ER-YTD

"Exchange Rate Year To Date "

  • End of the month exchange rate
    This is meant to use the exchange rate for the end of the month, for all applicable transactions: If 3 transactions are available for January 2020, those 3 transactions will use the exchange rate of January 31, 2020.

  • Code: ER-EOM

"Exchange Rate for End Of the Month"

  • Exchange Rate date of Report Issue Date
    This is meant to use the average exchange rate for the month, for those transactions belonging to that month. Example: 5 transactions belong on November 2019, and 2 transactions belong on december 2019. 5 transactions will use the average exchange rate for the month of november 2019, and 2 transactions will use the average exchange rate for the month of december 2019.

  • Code: ER-RID

"Exchange Rate for Report Issue Date"

  • Historical exchange rate (exchange rate per day of each transaction)
    This is meant to pair the transaction date with the exchange rate for the same date as the transaction.

  • Code: ER-HIST

"Exchange Rate, Historical"

  • Report Range Average Exchange Rate
    This is meant to use the average exchange rate for all the dates contained in the report, with the earliest date being the first date of transaction data, and the latest date the latest date available for transaction data.

  • Code: ER-RR

"Exchange Rate Report Range"

Obtain missing exchange rates

Function will check currency exchanges that exist in ERPNext.
Will ask user to indicate begin date and end date for checking and obtaining amounts.

  • Function to verify monthly that all exchange rates have been loaded.
    If they haven't, create them
  • Function to verify daily that all exchange rates for the period have been loaded.
    If they haven't, create them

For each currency pair, user can select how to create the records

  • In configuration doctype, for each currency required, user can select to create records from that currency to GTQ
  • In configuration doctype, for each currency required, user can select to create records from GTQ to that currency

For example if user wants USD to GTQ exchange rate (1 USD = 7.76 GTQ) but not GTQ to USD exchange rate, user can select that exchange pair only, and that exchange pair only is created.

[feature ] Doctype: Cambiare Cheque Print Set

Fields:
Date: creation_date
Source Bank Account: link. Company. source_bank_account
Company: Link. Company. company
Currency: Link. Read Only update from Source Bank Account
Transaction Start Date: Date start_date
Transaction End Date: Date end_date

Button: "Get Cheque Payments"

  • Logic for button to obtain the cheque payments from J.E. and P.E.where Mode of Payment = Cheque. If no Cheque, do not include any payments.

Table: Table Options: "Cheque to Print"

Documentation must warn:
One check per Journal Entry
One check per Payment Entry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.