GithubHelp home page GithubHelp logo

Comments (4)

hivam avatar hivam commented on August 10, 2024

@blaggacao No comprendo muy bien el issue, veo que el impuesto (10,20) no lo está mostrando en la imgen 3, pero no entiendo la imagen 4.

Nosotros no hemos tenido ese problema, es posible que tenga relación con la forma cómo gestionas el CREE.

Quita el CREE del producto y realiza de nuevo la prueba.

Si puedes hacer un screencast nos ayudaría a entender mejor el isuue.

from l10n_co_point_of_sale.

blaggacao avatar blaggacao commented on August 10, 2024

Para replicar es suficiente crear un grupo de impuestos con dos hijos uno siendo la contrapartida del otro.

Para aclarar:
Imagen 1: Impuesto y valor = Falso
Imagen 2: Valor = Falso
Imagen 3: Valor e impuesto = Correcto
Imagen 4: Ejemplo pagado con 2000, donde después había que conciliar los 10,20 de diferencia manualmente.

Claramente esperaba que ustedes tambien hayan encontrado ese bug. 😄

Lo que pasa:
En el POS, la contrapartida no esta teniendose en cuenta (por las razones que fueran) y genera un pago con un valor alterado, mientras server side, las cosas se están recalculando(?) bien y por ende el pago equivocado no coincide con los valores correctos dejando abierto un balance.

from l10n_co_point_of_sale.

blaggacao avatar blaggacao commented on August 10, 2024

The reason is that code taxes are not supported in the POS, while we make heavy use of those... Obviously this won't work....

More precisely, one of the children - the counterparty - is a code tax, which is simply ignored, while its predecessor child is applied, beeing a percentage tax.

from l10n_co_point_of_sale.

blaggacao avatar blaggacao commented on August 10, 2024

You can use the reinstalled "division" type to get the correct counterparty amount:
First child: <field name="include_base_amount" eval="True"/>
eg.: base_amount=1000 > base_amount=1008 (CREE 8 x mil)
Second Child: <field name="amount_type">division</field>, <field name="include_base_amount" eval="True"/>

base_amount / (1 - tax.amount / 100) - base_amount
1008 / (1 - -0.8 / 100) - 1008 = -8
> base_amount
> 1000

Well you can also just do -0.8 +0.8 without any of the above... 😸

from l10n_co_point_of_sale.

Related Issues (6)

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.