#6029 (How many decimal places for discount field?)

by Luc Saffre · in Developers · assigned to Luc Saffre

Résumé

Concepts sous-jacents

Commentaires

  • 1 année, 6 mois ago by Luc Saffre about #6029 (How many decimal places for discount field?) : I also saw this issue where a user of HubSpot has problems to sync with Sage because he gave a discount from $995 to $940 and Sage seems to insist on having discounts specified in percent.
  • 1 année, 6 mois ago by Luc Saffre about #6029 (How many decimal places for discount field?) : I had a look into the UBL specification: in the Peppol XML file of an invoice there isn't even a place for specifying a discount percentage. Each <cac:InvoiceLine> has a <cac:Price> child, which has an optional <cac:AllowanceCharge>, which is just the "The total discount subtracted from the Item gro...
  • 1 année, 6 mois ago by Luc Saffre about #6029 (How many decimal places for discount field?) : I now saw that we have #2941 (PercentageField should be a QuantityField and return Percentage values). IOW this is an old thought. What makes me hesitate to do this change is that Lino's QuantityField is not a well-known and widely used practice, and it would have the disadvantage that we cannot easily sort or make sums or averages on the discount field.
  • 1 année, 6 mois ago by Luc Saffre about #6029 (How many decimal places for discount field?) : Created new Ticket #6029 (How many decimal places for discount field?).
  • 1 année, 6 mois ago by Luc Saffre about #6029 (How many decimal places for discount field?) : I changed the default decimal_paces of PercentageField from 2 to 0 because it's silly to write "10.00%" or "70.00%". Yes I remember a customer who wanted to give 3.75% of discount to their customers, but these cases are rare. If we want such flexibility, we might implement PercentField as a Quantity...