Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incluir valor de soles y dólares en los productos #300

Open
Eghinner opened this issue Oct 17, 2022 · 13 comments
Open

Incluir valor de soles y dólares en los productos #300

Eghinner opened this issue Oct 17, 2022 · 13 comments
Labels

Comments

@Eghinner
Copy link
Contributor

  • Resultado actual:

El usuario proveedor puede agregar y/o editer el precio del producto unicamente en soles

  • Resultado esperado:

Al crear o editar un producto hay dos campos de precio. Uno en soles que puede ser llenado o editado, y uno en dolares que mostrara la conversion de soles a dolares.

@Eghinner Eghinner added DEV Check DEV Check blocked blocked while another feature or view is being resolved labels Oct 17, 2022
@Eghinner
Copy link
Contributor Author

Eghinner commented Oct 17, 2022

The app must adapt to this change

@Eghinner
Copy link
Contributor Author

Eghinner commented Oct 17, 2022

I suggest EE-3
@victor-heliomar
@Israel-Laguan
@Luisparr14
@joset98
Can you help us with a suggestion?

@Israel-Laguan
Copy link
Contributor

The biggest consideration is the convert rate. It will be fixed? In this case, maybe it's a EE-1. If the conversion rate is variable, for example using a certain API, it can be even EE-5.

@joset98
Copy link
Contributor

joset98 commented Oct 17, 2022

i suggest EE-2

@Luisparr14
Copy link
Contributor

I think it should be variable, so, EE-3 sounds good for me.

@heliomar-pena
Copy link
Contributor

heliomar-pena commented Oct 17, 2022

The biggest consideration is the convert rate. It will be fixed? In this case, maybe it's a EE-1. If the conversion rate is variable, for example using a certain API, it can be even EE-5.

I remember that Daniel said that the provider could add the price in Soles or in USD, but it would not be converted

@Eghinner can you confirm please?

@heliomar-pena
Copy link
Contributor

We need to considerate that this will affect the invoice generated in the APP, so before we were adding up the prices of all the products in the cart, but now it looks like is not possible, for example:

  • Laptop 1500 S/.
  • Mouse 100 USD.
  • Some food 500 S/.
  • Keyboard 100 USD

If that is what I remember what Daniel said, and we don't convert it between USD - Soles, then we can't sum this products, and should have two bills instead, for example:

S/. bill USD. bill
Laptop 1500 S/. Mouse 100 USD.
Some food 500 S/. Keyboard 100 USD
Total: 2000 S./ Total: 200 USD

@heliomar-pena
Copy link
Contributor

In any case, we should considerate that it's not just the change in the backend, it also requires making important changes in the APP, especially in the Cart and the invoice logic, so I think in it like this:

Task E.E
Create a new column in the database 1
Create a new field / button in the admin panel to select the currency 1
Modify admin panel cards to show properly the price of the products with the new currency 1
Modify the APK to show properly the price of the products with the new currency 1
Modify the APK logic to generate the total of the product (blocked until get if is needed to convert between the currencies) 1-2
Modify the APK logic to handle the cart (now you should save the currency of the product at the cart) 1-2
Modify the APK logic to create the invoice to adapt it to the new functionality of currencies 1-2

In total, for me, this task is between 7 and 10 E.E

@Eghinner
Copy link
Contributor Author

Update

Resultado esperado:

Debe haber una opcion para escoger la moneda deseada, lo cual solo cambiara el simbolo que acompaña el precio

Detalles tecnicos

  • Se debe agregar un input select con dos opciones [soles, dolares] que cambie en el precio el simbolo y guarde en base de datos el tipo de moneda deseado.

  • Modificar la lógica del APK para manejar el carrito (ahora debe guardar la moneda del producto en el carrito)

  • La APK debe actualizarse para no mostrar el total si hay distintos tipos de moneda en la consulta

@Eghinner
Copy link
Contributor Author

It will be divided into several tasks in both admin-panel and did-app. Estimated in EE-7 due to the amount of changes.

@heliomar-pena
Copy link
Contributor

Update

Resultado esperado:

Debe haber una opcion para escoger la moneda deseada, lo cual solo cambiara el simbolo que acompaña el precio

Detalles tecnicos

* Se debe agregar un input select con dos opciones [soles, dolares] que cambie en el precio el simbolo y guarde en base de datos el tipo de moneda deseado.

* Modificar la lógica del APK para manejar el carrito (ahora debe guardar la moneda del producto en el carrito)

* La APK debe actualizarse para no mostrar el total si hay distintos tipos de moneda en la consulta

Hmm ok I think the tasks that I suggested still are valid since we still should to check how to handle the "Cart" and the "Total amount" in the APK and invoice now that we have products that have the price in different currencies

@Eghinner Eghinner removed the blocked blocked while another feature or view is being resolved label Mar 6, 2023
@angelik0828
Copy link
Contributor

@victor-heliomar @Israel-Laguan @joset98 @yreyes2903 podrían por favor ayudarme con la estimación definitiva de esta tarea

@Israel-Laguan
Copy link
Contributor

Creo que 3 para cambiar en todos lados

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants