Money

Invoice amounts are always whole numbers, in both currencies.

Things to know

  • Create takes a MoneyCurrency (OC or RM) and a whole int. The game keeps invoice amounts as whole numbers, even for RM, so an invoice never has a fraction. See Money. (The game stores ItemInvoiceData.amount as int and rounds RM to a whole number when it creates the invoice. The game’s Money.money type never appears in this API.)