StandardDebitNote class
A class representing a standard debit note used for issuing debit to a customer.
The StandardDebitNote class holds all necessary data for a debit note, including the customer and supplier information, the debit note lines (items), tax details, payment means, delivery information, and other related fields. It can generate the XML representation of the debit note, suitable for reporting and invoicing purposes.
Constructors
-
StandardDebitNote.new({required int icv, required String id, required String uuid, required DateTime issueDate, required DateTime issueTime, required String currency, required BusinessParty customer, required List<
InvoiceLine> lines, required TaxDetails tax, required LegalMonetaryTotal monetaryTotal, required String pih, required BillingReference billingReference, required PaymentMeans paymentMeans, required Delivery delivery, AllowanceCharge? allowanceCharge}) - Constructor to initialize the StandardDebitNote object with necessary values.
Properties
- allowanceCharge → AllowanceCharge?
-
The allowance or charge related to the debit note (if applicable).
final
- billingReference → BillingReference
-
The billing reference associated with the debit note.
final
- currency → String
-
Currency used in the debit note (e.g., SAR for Saudi Riyals).
final
- customer → BusinessParty
-
The customer to whom the debit note is issued.
final
- delivery → Delivery
-
The delivery information related to the debit note.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icv → int
-
Internal control number (ICV) for the debit note.
final
- id → String
-
Unique identifier for the debit note.
final
- issueDate → DateTime
-
The date the debit note was issued.
final
- issueTime → DateTime
-
The time the debit note was issued.
final
-
lines
→ List<
InvoiceLine> -
The list of items (debit note lines) associated with the debit note.
final
- monetaryTotal → LegalMonetaryTotal
-
The legal monetary total of the debit note (e.g., subtotal, taxes, total).
final
- paymentMeans → PaymentMeans
-
The payment means related to the debit note.
final
- pih → String
-
The PIH (Payment Instructions Header) or additional reference for the debit note.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supplier → MyBusinessInfo?
-
The supplier information, fetched from local storage.
no setter
- tax → TaxDetails
-
The tax details related to the debit note.
final
- uuid → String
-
Universal Unique Identifier (UUID) for the debit note.
final
Methods
-
generateAndSaveXml(
String fileName) → Future< void> - Generates and saves the XML representation of the debit note to a file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
) → String - Generates the XML representation of the debit note.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited