struct
Zugpferd::SpecifiedTradeAllowanceCharge
- Zugpferd::SpecifiedTradeAllowanceCharge
- Struct
- Value
- Object
Overview
A document-level or line-level allowance or charge.
At document level: BG-20 (charge) or BG-21 (allowance), held in TradeSettlement#allowance_charges.
At line level: BG-27 (allowance) or BG-28 (charge), held in SupplyChainTradeLineItem#allowance_charges.
Defined in:
zugpferd/allowance_charge.crConstructors
Instance Method Summary
-
#actual_amount : MonetaryAmount
The monetary amount of the allowance or charge (BT-92 doc-allowance / BT-99 doc-charge / BT-136 line-allowance / BT-141 line-charge).
-
#actual_amount=(actual_amount : MonetaryAmount)
The monetary amount of the allowance or charge (BT-92 doc-allowance / BT-99 doc-charge / BT-136 line-allowance / BT-141 line-charge).
-
#charge=(charge : Bool)
Whether this entry is a surcharge (
true, BG-20/28) or an allowance/discount (false, BG-21/27). -
#charge? : Bool
Whether this entry is a surcharge (
true, BG-20/28) or an allowance/discount (false, BG-21/27). -
#reason : String | Nil
Free-text reason for the allowance or charge (BT-97/104/139/144).
-
#reason=(reason : String | Nil)
Free-text reason for the allowance or charge (BT-97/104/139/144).
-
#reason_code : String | Nil
Coded reason using UNTDID 4465 (BT-98/105/140/145).
-
#reason_code=(reason_code : String | Nil)
Coded reason using UNTDID 4465 (BT-98/105/140/145).
-
#tax_category_code : ApplicableTradeTax::CategoryCode
VAT category that applies to this allowance or charge (BT-95/102/151).
-
#tax_category_code=(tax_category_code : ApplicableTradeTax::CategoryCode)
VAT category that applies to this allowance or charge (BT-95/102/151).
-
#tax_rate_percent : MonetaryAmount | Nil
VAT rate percentage for this allowance or charge (BT-96/103/152).
-
#tax_rate_percent=(tax_rate_percent : MonetaryAmount | Nil)
VAT rate percentage for this allowance or charge (BT-96/103/152).
Constructor Detail
Instance Method Detail
The monetary amount of the allowance or charge (BT-92 doc-allowance / BT-99 doc-charge / BT-136 line-allowance / BT-141 line-charge).
The monetary amount of the allowance or charge (BT-92 doc-allowance / BT-99 doc-charge / BT-136 line-allowance / BT-141 line-charge).
Whether this entry is a surcharge (true, BG-20/28) or an allowance/discount (false, BG-21/27).
Whether this entry is a surcharge (true, BG-20/28) or an allowance/discount (false, BG-21/27).
Free-text reason for the allowance or charge (BT-97/104/139/144). Optional but recommended.
Free-text reason for the allowance or charge (BT-97/104/139/144). Optional but recommended.
Coded reason using UNTDID 4465 (BT-98/105/140/145). Examples: "64" = special agreement, "95" = discount, "SAA" = settlement allowance.
Coded reason using UNTDID 4465 (BT-98/105/140/145). Examples: "64" = special agreement, "95" = discount, "SAA" = settlement allowance.
VAT category that applies to this allowance or charge (BT-95/102/151). Required at document level; not used for line-level entries.
VAT category that applies to this allowance or charge (BT-95/102/151). Required at document level; not used for line-level entries.
VAT rate percentage for this allowance or charge (BT-96/103/152). Nil for exempt or zero-rate categories.
VAT rate percentage for this allowance or charge (BT-96/103/152). Nil for exempt or zero-rate categories.