跳至内容
菜单
此问题已终结
1 回复
2403 查看

Hi all,


Small question: in invoicing (account_move) we see some fields like:

- amount_untaxed & amount_untaxed.signed

- amount_tax & amount_tax_signed


What's the difference or what is it for?



thx in advance!


roeland

形象
丢弃
最佳答案

Hi Roeland Vandecan,

Based on my R&D

Found this field in (account.move) model

use in compute total amount.

  1. amount_untaxed:
    • Represents the untaxed amount without considering whether it's a debit or credit.
    • This field typically holds the absolute value of the untaxed amount, regardless of whether it's positive (debit) or negative (credit).
  2. amount_untaxed_signed:
    • Represents the untaxed amount with its sign preserved.
    • If the untaxed amount is positive (debit), it's stored as a positive value. If it's negative (credit), it's stored as a negative value.
  3. amount_tax:
    • Represents the tax amount without considering whether it's a debit or credit.
    • Similar to amount_untaxed, this field typically holds the absolute value of the tax amount, regardless of its direction.
  4. amount_tax_signed:
    • Represents the tax amount with its sign preserved.
    • If the tax amount is positive (debit), it's stored as a positive value. If it's negative (credit), it's stored as a negative value.

The purpose of maintaining both signed and unsigned versions of these fields is to provide flexibility for various accounting operations and reporting requirements. 

  • Unsigned amounts (amount_untaxed and amount_tax) are useful for calculating totals, performing arithmetic operations, and ensuring consistency in financial calculations.
  • Signed amounts (amount_untaxed_signed and amount_tax_signed) are valuable for reporting and analysis purposes, as they reflect the nature of the transaction (debit or credit) and help in preparing accurate financial statements.


Thanks 

形象
丢弃
编写者

Thx Nikhil, it makes sense now... :-)

相关帖文 回复 查看 活动
2
8月 24
9630
0
11月 23
1195
1
9月 23
2176
0
10月 23
1956
2
9月 23
2983