2017-08-07 15:47 GMT+02:00 Sergi Almacellas Abellana <se...@koolpi.com>:
> El 07/08/17 a les 15:19, Cédric Krier ha escrit:
>
>> On 2017-08-07 14:40, Sergi Almacellas Abellana wrote:
>>>
>>> El 07/08/17 a les 13:25, Cédric Krier ha escrit:
>>>>
>>>> On 2017-08-07 13:16, Sergi Almacellas Abellana wrote:
>>>>>
>>>>> El 07/08/17 a les 12:40, Cédric Krier ha escrit:
>>>>>>
>>>>>> On 2017-08-07 12:14, Sergi Almacellas Abellana wrote:
>>>>>>>
>>>>>>> El 07/08/17 a les 12:00, Cédric Krier ha escrit:
>>>>>>>>
>>>>>>>> I do not understand. Could you give concrete example (not linked to
>>>>>>>> module implementation).
>>>>>>>
>>>>>>> The tax mapping it's used for two things:
>>>>>>>
>>>>>>> 1. Proposing a default operation key to the user depending on the
>>>>>>> taxes
>>>>>>> selected on the invoice.
>>>>>>> 2. Restricting the available operation keys. In Spain there are some
>>>>>>> keys that are only available for "in" invoices and others for "out"
>>>>>>> invoices. As each tax has the "sale" or "purchase" kind, we define
>>>>>>> the
>>>>>>> available keys on it. All the taxes that are not related to
>>>>>>> intracomunitary operations have an empty keys, so no operation key
>>>>>>> can
>>>>>>> be selected for this invoices.
>>>>>>
>>>>>> But why do you need more than 1 key per tax?
>>>>>
>>>>> No, only one.
>>>>>>
>>>>>> How do you select the key? Based on which criteria?
>>>>>
>>>>> We select the default key, based on which is most commonly used, but
>>>>> the
>>>>> user can customize the key as it may be a different one.
>>>>
>>>> Please be more specific. I do not understand how this key is selected.
>>>>
>>> It depends on the kind of operation. Here are the available keys:
>>>
>>>
>>> https://bitbucket.org/trytonspain/trytond-aeat_349/src/54658e4c5ebde8be3061820e3358eb4985566989/aeat.py?at=default&fileviewer=file-view-default#aeat.py-37
>>
>>
>> Yes they look very similar to the Belgian ones which are link to the tax
>> in a one2one relation. So I do not understand why one tax could have
>> many optional keys.
>>
>
> Probably we are missing some taxes, and that's why we allow to change it
> latter.

Ideally there should be a tax and this would improve some things.
However we aleady have +1000 taxes defined, so we need other changes
before we can use taxes only.

>
> But a direct relation with the tax makes sense for me.
>
>
> --
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk
>
> --
> You received this message because you are subscribed to the Google Groups
> "tryton" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tryton/706e928e-923a-2b5a-947f-7b9b5a746670%40koolpi.com.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/CADWJ7GmW6sXyTeunf7ebtmQ4iWNs6AqmKO%3D%2By0m7ot0KsAJsag%40mail.gmail.com.

Reply via email to