Class: GOBL::Bill::Totals
- Defined in:
- lib/generated/gobl/bill/totals.rb
Overview
Totals contains the summaries of all calculations for the invoice.
Constant Summary collapse
- SCHEMA_ID =
The Schema ID of the GOBL Totals structure
'https://gobl.org/draft-0/bill/invoice#/$defs/Totals'
Instance Attribute Summary collapse
-
#advance ⇒ GOBL::Num::Amount
readonly
Total amount already paid in advance.
-
#charge ⇒ GOBL::Num::Amount
readonly
Sum of all document level charges.
-
#discount ⇒ GOBL::Num::Amount
readonly
Sum of all document level discounts.
-
#due ⇒ GOBL::Num::Amount
readonly
How much actually needs to be paid now.
-
#outlays ⇒ GOBL::Num::Amount
readonly
Total paid in outlays that need to be reimbursed.
-
#payable ⇒ GOBL::Num::Amount
readonly
Total amount to be paid after applying taxes and outlays.
-
#rounding ⇒ GOBL::Num::Amount
readonly
Rounding amount to apply to the invoice in case the total and payable amounts don’t quite match.
-
#sum ⇒ GOBL::Num::Amount
readonly
Sum of all line item sums.
-
#tax ⇒ GOBL::Num::Amount
readonly
Total amount of tax to apply to the invoice.
-
#tax_included ⇒ GOBL::Num::Amount
readonly
If prices include tax, this is the total tax included in the price.
-
#taxes ⇒ GOBL::Tax::Total
readonly
Summary of all the taxes included in the invoice.
-
#total ⇒ GOBL::Num::Amount
readonly
Sum of all line sums minus the discounts, plus the charges, without tax.
-
#total_with_tax ⇒ GOBL::Num::Amount
readonly
Grand total after all taxes have been applied.
Method Summary
Methods inherited from Object
Methods inherited from Struct
#as_json, from_data, from_json!, #to_json
Instance Attribute Details
#advance ⇒ GOBL::Num::Amount (readonly)
Total amount already paid in advance.
77 |
# File 'lib/generated/gobl/bill/totals.rb', line 77 property :advance, GOBL::Num::Amount |
#charge ⇒ GOBL::Num::Amount (readonly)
Sum of all document level charges
29 |
# File 'lib/generated/gobl/bill/totals.rb', line 29 property :charge, GOBL::Num::Amount |
#discount ⇒ GOBL::Num::Amount (readonly)
Sum of all document level discounts
24 |
# File 'lib/generated/gobl/bill/totals.rb', line 24 property :discount, GOBL::Num::Amount |
#due ⇒ GOBL::Num::Amount (readonly)
How much actually needs to be paid now.
82 |
# File 'lib/generated/gobl/bill/totals.rb', line 82 property :due, GOBL::Num::Amount |
#outlays ⇒ GOBL::Num::Amount (readonly)
Total paid in outlays that need to be reimbursed
66 |
# File 'lib/generated/gobl/bill/totals.rb', line 66 property :outlays, GOBL::Num::Amount |
#payable ⇒ GOBL::Num::Amount (readonly)
Total amount to be paid after applying taxes and outlays.
71 |
# File 'lib/generated/gobl/bill/totals.rb', line 71 property :payable, GOBL::Num::Amount |
#rounding ⇒ GOBL::Num::Amount (readonly)
Rounding amount to apply to the invoice in case the total and payable amounts don’t quite match.
61 |
# File 'lib/generated/gobl/bill/totals.rb', line 61 property :rounding, GOBL::Num::Amount |
#sum ⇒ GOBL::Num::Amount (readonly)
Sum of all line item sums
18 |
# File 'lib/generated/gobl/bill/totals.rb', line 18 property :sum, GOBL::Num::Amount |
#tax ⇒ GOBL::Num::Amount (readonly)
Total amount of tax to apply to the invoice.
50 |
# File 'lib/generated/gobl/bill/totals.rb', line 50 property :tax, GOBL::Num::Amount |
#tax_included ⇒ GOBL::Num::Amount (readonly)
If prices include tax, this is the total tax included in the price.
34 |
# File 'lib/generated/gobl/bill/totals.rb', line 34 property :tax_included, GOBL::Num::Amount |
#taxes ⇒ GOBL::Tax::Total (readonly)
Summary of all the taxes included in the invoice.
45 |
# File 'lib/generated/gobl/bill/totals.rb', line 45 property :taxes, GOBL::Tax::Total |
#total ⇒ GOBL::Num::Amount (readonly)
Sum of all line sums minus the discounts, plus the charges, without tax.
39 |
# File 'lib/generated/gobl/bill/totals.rb', line 39 property :total, GOBL::Num::Amount |
#total_with_tax ⇒ GOBL::Num::Amount (readonly)
Grand total after all taxes have been applied.
55 |
# File 'lib/generated/gobl/bill/totals.rb', line 55 property :total_with_tax, GOBL::Num::Amount |