reportextension 60100 GNASalesInvoice extends "Standard Sales - Invoice"
{
dataset
{
// The dates are want are located in my header. I add that as a dataset below.
add(Header)
{
// I name the new header xml mappings what I want them to be, and add the formatting according to some documentation I found.
column("DocumentDate_mmddyyyy"; Format("Document Date", 0, '<Closing><Month,2>/<Day,2>/<Year>'))
{
}
column("DueDate_mmddyyyy"; Format("Due Date", 0, '<Closing><Month,2>/<Day,2>/<Year>'))
{
}
}
add(Line)
{
column(Variant_Code; "Variant Code")
{
}
}
}
// Be sure to render your report and add the word doc to the path in order to have your changes visible!
rendering
{
layout(GNASalesInvoiceLayout)
{
Type = Word;
Caption = 'Standard Sales - Invoice w/ Variant (Word)';
Summary = 'Standard Sales - Invoice w/ Variant: Word';
LayoutFile = 'src\Report Extensions\GNASalesInvoice.ReportExt.docx';
}
}
}