Represents the CICA document called Barge Invoice
Document.
Namespace:
BargeExAssembly: BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)
Syntax
C# |
---|
[SerializableAttribute] public class BargeInvoice : BargeExDocumentBase |
Visual Basic (Declaration) |
---|
<SerializableAttribute> _ Public Class BargeInvoice _ Inherits BargeExDocumentBase |
Visual C++ |
---|
[SerializableAttribute] public ref class BargeInvoice : public BargeExDocumentBase |
Remarks
The Barge Invoice Document provides a means for a marine trading partner to transmit an invoice to another marine trading partner for services performed. The Barge Invoice Document allows the sender to specify interested parties as well as invoice summary and invoice line items.
Utilizing the Barge Invoice Document, the sender can tie invoice line items to Barge Service Order Line Items and Barge Status documents.
Examples
The following example creates an instance of the BargeEx
BargeInvoice class
and sets its common properties. This example does not detail how to
set InvoiceLineItem collection
items. Please refer to the
InvoiceLineItem
documentation for more information.
CopyVisual Basic
' Create a new BargeEx BargeInvoice object Dim BargeInvoice As New BargeEx.BargeInvoice() ' Update the BargeInvoice properties before ' returning the object to the user With BargeInvoice ' Update the DocumentHeader property .Header.SenderTradingPartnerNumber = "12345678" .Header.ReceiverTradingPartnerNumber = "87654321" .Header.InstanceIdentifier = "ABC123" .Header.CreateDateTime = DateTime.Parse("01/01/2008 16:00") ' Set the ApplicationHeader properties .CreateDateTime = DateTime.Parse("01/01/2008 16:00") .TransactionIdentifier = "ABC456" .Note = "BargeInvoice test note." .ResponsibleLocationName = "Fleet ABC" ' Set the RemitTo object With .RemitTo .Name = "ABC Fleeting Company Lock Box" .TaxID = "123456789" .Address = New BargeEx.Address("123 Straight Way", "Small Town USA", "OH", "54321-1234") End With ' Set the BilledTo object With .BilledTo .Name = "XYZ Barge Line" .Address = New BargeEx.Address("456 Boardwalk Ave", "Riverview", "MO", "67890-0987") End With ' Set the BilledFrom object With .BilledFrom .Name = "ABC Fleeting Company" .Address = New BargeEx.Address("123 Other Drive", "Small Town USA", "OH", "54321-1234") End With ' Set the InvoiceInformation properties .InvoiceDate = DateTime.Parse("01/01/2008 16:00") .InvoiceNumber = "ABC12345" .TotalAmountDue = 1000 .InvoiceDueDate = DateTime.Parse("01/01/2008 16:00") .InvoiceNetDays = 30 ' Add any InvoiceLineItems to the LineItems collection ' ... End With ' BargeInvoice
CopyC#
// Create a new BargeEx BargeInvoice object BargeEx.BargeInvoice BargeInvoice = new BargeEx.BargeInvoice(); // Update the BargeInvoice properties before // returning the object to the user // Update the DocumentHeader property BargeInvoice.Header.SenderTradingPartnerNumber = "12345678"; BargeInvoice.Header.ReceiverTradingPartnerNumber = "87654321"; BargeInvoice.Header.InstanceIdentifier = "ABC123"; BargeInvoice.Header.CreateDateTime = DateTime.Parse("01/01/2008 16:00"); // Set the ApplicationHeader properties BargeInvoice.CreateDateTime = DateTime.Parse("01/01/2008 16:00"); BargeInvoice.TransactionIdentifier = "ABC456"; BargeInvoice.Note = "BargeInvoice test note."; BargeInvoice.ResponsibleLocationName = "Fleet ABC"; // Set the RemitTo object BargeInvoice.RemitTo.Name = "ABC Fleeting Company Lock Box"; BargeInvoice.RemitTo.TaxID = "123456789"; BargeInvoice.RemitTo.Address = new BargeEx.Address("123 Straight Way", "Small Town USA", "OH", "54321-1234"); // Set the BilledTo object BargeInvoice.BilledTo.Name = "XYZ Barge Line"; BargeInvoice.BilledTo.Address = new BargeEx.Address("456 Boardwalk Ave", "Riverview", "MO", "67890-0987"); // Set the BilledFrom object BargeInvoice.BilledFrom.Name = "ABC Fleeting Company"; BargeInvoice.BilledFrom.Address = new BargeEx.Address("123 Other Drive", "Small Town USA", "OH", "54321-1234"); // Set the InvoiceInformation properties BargeInvoice.InvoiceDate = DateTime.Parse("01/01/2008 16:00"); BargeInvoice.InvoiceNumber = "ABC12345"; BargeInvoice.TotalAmountDue = 1000; BargeInvoice.InvoiceDueDate = DateTime.Parse("01/01/2008 16:00"); BargeInvoice.InvoiceNetDays = 30; // Add any InvoiceLineItems to the LineItems collection // ...
Inheritance Hierarchy
System..::.Object
BargeEx.Internal..::.SerializableBase
BargeEx.Internal..::.DocumentBase
BargeEx.Internal..::.BargeExDocumentBase
BargeEx..::.BargeInvoice
BargeEx.Internal..::.SerializableBase
BargeEx.Internal..::.DocumentBase
BargeEx.Internal..::.BargeExDocumentBase
BargeEx..::.BargeInvoice