﻿<?xml version="1.0" encoding="utf-8"?>
<Report ScriptLanguage="CSharp" DoublePass="true" StartReportEvent="_StartReport" ReportInfo.Created="09/27/2013 16:01:23" ReportInfo.Modified="08/07/2015 11:47:32" ReportInfo.CreatorVersion="1.6.57.0">
  <ScriptText>using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing;
using System.Data;
using FastReport;
using FastReport.Data;
using FastReport.Dialog;
using FastReport.Barcode;
using FastReport.Table;
using FastReport.Utils;

namespace FastReport
{
  public class ReportScript
  {

    int decimalValue = 0;
    
    private void _StartReport(object sender, EventArgs e)
    {
      //Style      
      string stylePath = Report.GetParameterValue(&quot;MainAppPath&quot;).ToString() + &quot;\\Resources\\DocStyles\\Styles\\&quot; +
        Report.GetColumnValue(&quot;companies.InvoiceStylePath&quot;).ToString();
      if (stylePath.Length &gt; 0)
      {
        picStyle.ImageLocation = stylePath;
      }
             
      //Logo
      string logoPath = Report.GetColumnValue(&quot;companies.LogoPath&quot;).ToString();
      if (logoPath.Length &gt; 0)
      {         
        picLogo.ImageLocation = Report.GetParameterValue(&quot;MainAppPath&quot;).ToString() + &quot;\\Resources\\Logos\\&quot; + logoPath;
        picLogo.Printable = true; 
      }
      else
      {
        picLogo.Printable = false;
      }             
      
      //Qty Column format      
      decimalValue = Convert.ToInt32(Report.GetColumnValue(&quot;programs_config.QtyDecimalValue&quot;));
      
    }
    
    
    private void PageHeader1_AfterData(object sender, EventArgs e)
    {
      //Print the User
      if (Report.GetColumnValue(&quot;trans.User&quot;).ToString().Length == 0)
      {
        lblUser.Visible = false;
        txtUser.Visible = false;  
      }
    }
    
    
    private void Data1_AfterData(object sender, EventArgs e)
    {
      //Include when items were sold with a zero qty
      decimal qty = Convert.ToDecimal(Report.GetColumnValue(&quot;trans_items.Qty&quot;));
      decimal unitPrice = 0;
      decimal total = 0;
      if (qty != 0)
      {
        //Total          
        if (String.Compare(Report.GetColumnValue(&quot;suppliers.TaxOnInvoice&quot;).ToString(), &quot;inclusive&quot;, true) == 0)
          total = Convert.ToDecimal(Report.GetColumnValue(&quot;trans_items.TotalIncl&quot;)); 
        else
          total = Convert.ToDecimal(Report.GetColumnValue(&quot;trans_items.TotalExcl&quot;));          
          
        //Unit Price
        unitPrice = (total / qty); 
      }
      //exclude notes
      if (Report.GetColumnValue(&quot;trans_items.ProductCode&quot;).ToString().Length &gt; 0)
      {
        txtQty.Text = String.Format(&quot;{0:F&quot; + decimalValue + &quot;}&quot;, qty);
        txtItemPrice.Text = unitPrice.ToString(&quot;# ### ###.00&quot;);
        txtItemTotal.Text = total.ToString(&quot;# ### ###.00&quot;);
      }      
    }

    

    private void PageFooter1_AfterData(object sender, EventArgs e)
    {
      //Total Qty field - format
      decimal qtyVal = 0; 
      if (Decimal.TryParse(txtTotQty.Text, out qtyVal))
      {
        txtTotQty.Text = &quot;Total Qty: &quot; + String.Format(&quot;{0:F&quot; + decimalValue + &quot;}&quot;, qtyVal);
      }      

    }
    
    

    

    
  }
}
</ScriptText>
  <Dictionary>
    <MySqlDataConnection Name="Connection" ConnectionString="rijcmlqvHU7gJfSuBQWLYh0DOGH3+Qi6ukYxcxpZPbTzhS1gWY2znM045239pVyhdFvZLSh9rUUZxOR6xchBWStN/gwdyERYh+GjVW/kjP4bdj187c=">
      <TableDataSource Name="companies" DataType="System.Int32" Enabled="true" TableName="companies" SelectCommand="select * from companies where ID = 1">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="Name" DataType="System.String"/>
        <Column Name="Email" DataType="System.String"/>
        <Column Name="Address" DataType="System.String"/>
        <Column Name="RegNo" DataType="System.String"/>
        <Column Name="VATno" DataType="System.String"/>
        <Column Name="ContactNo" DataType="System.String"/>
        <Column Name="AltNo" DataType="System.String"/>
        <Column Name="FaxNo" DataType="System.String"/>
        <Column Name="CellNo" DataType="System.String"/>
        <Column Name="LogoPath" DataType="System.String"/>
        <Column Name="InvoiceSize" DataType="System.String"/>
        <Column Name="InvoiceStylePath" DataType="System.String"/>
        <Column Name="VATrate" DataType="System.String"/>
        <Column Name="BankingDetails" DataType="System.String"/>
      </TableDataSource>
      <TableDataSource Name="programs_config" DataType="System.Int32" Enabled="true" TableName="programs_config">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="PaymentMethods" DataType="System.String"/>
        <Column Name="InvSlipNote" DataType="System.String"/>
        <Column Name="InvCustomLabel1" DataType="System.String"/>
        <Column Name="InvCustomLabel2" DataType="System.String"/>
        <Column Name="InvCustomLabel3" DataType="System.String"/>
        <Column Name="InvCustomLabel4" DataType="System.String"/>
        <Column Name="InvCustomLabel5" DataType="System.String"/>
        <Column Name="InvCustomLabel6" DataType="System.String"/>
        <Column Name="InvShowRetailPriceExcl" DataType="System.Byte"/>
        <Column Name="SellingUnderCostOption" DataType="System.String"/>
        <Column Name="DefaultInvoiceType" DataType="System.String"/>
        <Column Name="AfterAddingItemToGridDo" DataType="System.String"/>
        <Column Name="QuotationSlipNote" DataType="System.String"/>
        <Column Name="PrintTo_CashInvoice" DataType="System.String"/>
        <Column Name="PrintTo_Refund" DataType="System.String"/>
        <Column Name="PrintTo_Payout" DataType="System.String"/>
        <Column Name="PrintTo_AccInvoice" DataType="System.String"/>
        <Column Name="PrintTo_CreditNote" DataType="System.String"/>
        <Column Name="PrintTo_Receipt" DataType="System.String"/>
        <Column Name="PrintTo_Journal" DataType="System.String"/>
        <Column Name="PrintTo_Quotation" DataType="System.String"/>
        <Column Name="Copies_CashInvoice" DataType="System.UInt32"/>
        <Column Name="Copies_Refund" DataType="System.UInt32"/>
        <Column Name="Copies_Payout" DataType="System.UInt32"/>
        <Column Name="Copies_AccInvoice" DataType="System.UInt32"/>
        <Column Name="Copies_CreditNote" DataType="System.UInt32"/>
        <Column Name="Copies_Receipt" DataType="System.UInt32"/>
        <Column Name="Copies_Journal" DataType="System.UInt32"/>
        <Column Name="Copies_Quotation" DataType="System.UInt32"/>
        <Column Name="SlipSize_CashInvoice" DataType="System.String"/>
        <Column Name="SlipSize_Refund" DataType="System.String"/>
        <Column Name="SlipSize_Payout" DataType="System.String"/>
        <Column Name="SlipSize_AccInvoice" DataType="System.String"/>
        <Column Name="SlipSize_CreditNote" DataType="System.String"/>
        <Column Name="SlipSize_Receipt" DataType="System.String"/>
        <Column Name="SlipSize_Journal" DataType="System.String"/>
        <Column Name="SlipSize_Quotation" DataType="System.String"/>
        <Column Name="AfterTransDo1_CashInvoice" DataType="System.String"/>
        <Column Name="AfterTransDo1_Refund" DataType="System.String"/>
        <Column Name="AfterTransDo1_Payout" DataType="System.String"/>
        <Column Name="AfterTransDo1_AccInvoice" DataType="System.String"/>
        <Column Name="AfterTransDo1_CreditNote" DataType="System.String"/>
        <Column Name="AfterTransDo1_Receipt" DataType="System.String"/>
        <Column Name="AfterTransDo1_Journal" DataType="System.String"/>
        <Column Name="AfterTransDo1_Quotation" DataType="System.String"/>
        <Column Name="AfterTransDo2_CashInvoice" DataType="System.String"/>
        <Column Name="AfterTransDo2_Refund" DataType="System.String"/>
        <Column Name="AfterTransDo2_Payout" DataType="System.String"/>
        <Column Name="AfterTransDo2_AccInvoice" DataType="System.String"/>
        <Column Name="AfterTransDo2_CreditNote" DataType="System.String"/>
        <Column Name="AfterTransDo2_Receipt" DataType="System.String"/>
        <Column Name="AfterTransDo2_Journal" DataType="System.String"/>
        <Column Name="AfterTransDo2_Quotation" DataType="System.String"/>
        <Column Name="EmailAccount" DataType="System.String"/>
        <Column Name="EmailAddress" DataType="System.String"/>
        <Column Name="EmailUserName" DataType="System.String"/>
        <Column Name="EmailPassword" DataType="System.String"/>
        <Column Name="EmailSMTPAddress" DataType="System.String"/>
        <Column Name="EmailSMTPPort" DataType="System.String"/>
        <Column Name="PayOutReasons" DataType="System.String"/>
        <Column Name="CashDrawerType" DataType="System.String"/>
        <Column Name="CashDrawerComPort" DataType="System.Int32"/>
        <Column Name="CashDrawerKickerCode1" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode2" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode3" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode4" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode5" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode6" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode7" DataType="System.UInt32"/>
        <Column Name="CashDrawerKickerCode8" DataType="System.UInt32"/>
        <Column Name="CashDrawerSlipPrinter" DataType="System.String"/>
        <Column Name="DefaultPurchaseType" DataType="System.String"/>
        <Column Name="Copies_CashPurchase" DataType="System.UInt32"/>
        <Column Name="Copies_CashPurchaseReturn" DataType="System.UInt32"/>
        <Column Name="Copies_AccPurchase" DataType="System.UInt32"/>
        <Column Name="Copies_DebitNote" DataType="System.UInt32"/>
        <Column Name="Copies_Payment" DataType="System.UInt32"/>
        <Column Name="Copies_CreditorJournal" DataType="System.UInt32"/>
        <Column Name="Copies_PurchaseOrder" DataType="System.UInt32"/>
        <Column Name="AfterAddingItemToGridDo_Purchases" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel1" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel2" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel3" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel4" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel5" DataType="System.String"/>
        <Column Name="PurchaseCustomLabel6" DataType="System.String"/>
        <Column Name="PrintTo_CashPurchase" DataType="System.String"/>
        <Column Name="PrintTo_CashPurchaseReturn" DataType="System.String"/>
        <Column Name="PrintTo_AccPurchase" DataType="System.String"/>
        <Column Name="PrintTo_DebitNote" DataType="System.String"/>
        <Column Name="PrintTo_Payment" DataType="System.String"/>
        <Column Name="PrintTo_CreditorJournal" DataType="System.String"/>
        <Column Name="PrintTo_PurchaseOrder" DataType="System.String"/>
        <Column Name="SlipSize_CashPurchase" DataType="System.String"/>
        <Column Name="SlipSize_CashPurchaseReturn" DataType="System.String"/>
        <Column Name="SlipSize_AccPurchase" DataType="System.String"/>
        <Column Name="SlipSize_DebitNote" DataType="System.String"/>
        <Column Name="SlipSize_Payment" DataType="System.String"/>
        <Column Name="SlipSize_CreditorJournal" DataType="System.String"/>
        <Column Name="SlipSize_PurchaseOrder" DataType="System.String"/>
        <Column Name="AfterTransDo1_CashPurchase" DataType="System.String"/>
        <Column Name="AfterTransDo1_CashPurchaseReturn" DataType="System.String"/>
        <Column Name="AfterTransDo1_AccPurchase" DataType="System.String"/>
        <Column Name="AfterTransDo1_DebitNote" DataType="System.String"/>
        <Column Name="AfterTransDo1_Payment" DataType="System.String"/>
        <Column Name="AfterTransDo1_CreditorJournal" DataType="System.String"/>
        <Column Name="AfterTransDo1_PurchaseOrder" DataType="System.String"/>
        <Column Name="AfterTransDo2_CashPurchase" DataType="System.String"/>
        <Column Name="AfterTransDo2_CashPurchaseReturn" DataType="System.String"/>
        <Column Name="AfterTransDo2_AccPurchase" DataType="System.String"/>
        <Column Name="AfterTransDo2_DebitNote" DataType="System.String"/>
        <Column Name="AfterTransDo2_Payment" DataType="System.String"/>
        <Column Name="AfterTransDo2_CreditorJournal" DataType="System.String"/>
        <Column Name="AfterTransDo2_PurchaseOrder" DataType="System.String"/>
        <Column Name="QtyDecimalValue" DataType="System.UInt32"/>
      </TableDataSource>
      <TableDataSource Name="trans" DataType="System.Int32" PropName="cash_sales" Enabled="true" TableName="trans" SelectCommand="select * from debit_notes where transID = 1 and companyID = 1">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="ComputerName" DataType="System.String"/>
        <Column Name="SlipNote" DataType="System.String"/>
        <Column Name="TotalExcl" DataType="System.Decimal"/>
        <Column Name="TotalVAT" DataType="System.Decimal"/>
        <Column Name="TotalIncl" DataType="System.Decimal"/>
        <Column Name="TransID" DataType="System.UInt32"/>
        <Column Name="User" DataType="System.String"/>
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="SupplierName" DataType="System.String"/>
        <Column Name="CreditNoteDate" DataType="System.DateTime"/>
        <Column Name="StatementNote" DataType="System.String"/>
        <Column Name="RelatedTransID" DataType="System.UInt32"/>
      </TableDataSource>
      <TableDataSource Name="trans_items" DataType="System.Int32" PropName="cash_sales_items" Enabled="true" TableName="trans_items" SelectCommand="select * from debit_notes_items where relatedID = 1 and companyid = 1">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="ProductID" DataType="System.UInt32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="IsProduct" DataType="System.Byte"/>
        <Column Name="ProductCode" DataType="System.String"/>
        <Column Name="Description" DataType="System.String"/>
        <Column Name="Qty" DataType="System.Decimal"/>
        <Column Name="TotalVAT" DataType="System.Decimal"/>
        <Column Name="RelatedID" DataType="System.UInt32"/>
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="TotalExcl" DataType="System.Decimal"/>
        <Column Name="TotalIncl" DataType="System.Decimal"/>
        <Column Name="User" DataType="System.String"/>
        <Column Name="Reason" DataType="System.String"/>
      </TableDataSource>
      <TableDataSource Name="Table" Alias="suppliers" DataType="System.Int32" Enabled="true" SelectCommand="SELECT * FROM suppliers WHERE ID &gt; 1">
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="SupplierID" DataType="System.UInt32"/>
        <Column Name="Name" DataType="System.String"/>
        <Column Name="Email" DataType="System.String"/>
        <Column Name="BillingAddress" DataType="System.String"/>
        <Column Name="ContactNo" DataType="System.String"/>
        <Column Name="BankingDetails" DataType="System.String"/>
        <Column Name="TaxOnInvoice" DataType="System.String"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="LastCashPurchaseDate" DataType="System.DateTime"/>
        <Column Name="LastCashPurchaseReturnDate" DataType="System.DateTime"/>
        <Column Name="LastAccountPurchaseDate" DataType="System.DateTime"/>
        <Column Name="LastDebitNoteDate" DataType="System.DateTime"/>
        <Column Name="LastPaymentDate" DataType="System.DateTime"/>
        <Column Name="LastJournalDate" DataType="System.DateTime"/>
        <Column Name="TotalDue" DataType="System.Decimal"/>
      </TableDataSource>
    </MySqlDataConnection>
    <Relation Name="sales_sales_items" ParentDataSource="null" ChildDataSource="null" ParentColumns="ID" ChildColumns="SalesID" Enabled="true"/>
    <Relation Name="sales_companies" ParentDataSource="null" ChildDataSource="null" ParentColumns="CompanyID" ChildColumns="ID" Enabled="true"/>
    <Parameter Name="MainAppPath" DataType="System.String"/>
    <Parameter Name="CompanyID" DataType="System.Int32"/>
    <Total Name="Total_Qty" Expression="[trans_items.Qty]" Evaluator="Data1" PrintOn="PageFooter1" ResetAfterPrint="false"/>
    <Total Name="Total_Lines" TotalType="Count" Evaluator="Data1" PrintOn="PageFooter1" ResetAfterPrint="false" EvaluateCondition="[trans_items.Qty] != 0"/>
  </Dictionary>
  <ReportPage Name="Page1" PaperWidth="148.1" PaperHeight="210.1" RawPaperSize="11" LeftMargin="5" TopMargin="5" RightMargin="5" BottomMargin="5">
    <PageHeaderBand Name="PageHeader1" Width="522.02" Height="179.55" AfterDataEvent="PageHeader1_AfterData">
      <TextObject Name="Text57" Left="434.7" Top="141.75" Width="85.05" Height="18.9" Text="[trans.RelatedTransID]" Font="Segoe UI, 8pt"/>
      <TextObject Name="Text58" Left="359.1" Top="141.75" Width="75.6" Height="18.9" Text="Rel. #:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <PictureObject Name="picStyle" Width="510.95" Height="74.55" SizeMode="StretchImage"/>
      <TextObject Name="Text2" Left="264.6" Top="56.7" Width="236.25" Height="18.9" Text="Date: [trans.Date]" Format="Custom" Format.Format="yyyy-MM-dd HH:mm" HorzAlign="Center" Font="Segoe UI, 9pt"/>
      <TextObject Name="Text14" Top="75.6" Width="491.4" Height="28.35" Text="[companies.Name]" WordWrap="false" Font="Segoe UI Light, 12pt, style=Bold" TextFill.Color="DimGray" Clip="false"/>
      <TextObject Name="Text18" Left="9.45" Top="103.95" Width="151.2" Height="56.7" CanGrow="true" CanShrink="true" Text="[companies.Address]" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <TextObject Name="txtInvoice" Left="264.6" Top="9.45" Width="141.75" Height="28.35" Border.Shadow="true" Border.ShadowColor="Transparent" Text="Debit Note" HorzAlign="Right" Font="Segoe UI Light, 12pt, style=Bold" TextFill.Color="DimGray"/>
      <TextObject Name="txtUser" Left="434.7" Top="103.95" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="[trans.User]" Font="Segoe UI, 8pt"/>
      <TextObject Name="lblUser" Left="359.1" Top="103.95" Width="75.6" Height="18.9" CanGrow="true" CanShrink="true" Text="User:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text44" Left="255.15" Top="103.95" Width="94.5" Height="18.9" CanGrow="true" CanShrink="true" Text="[companies.RegNo]" Font="Segoe UI, 8pt"/>
      <TextObject Name="txtVatNo" Left="255.15" Top="122.85" Width="94.5" Height="18.9" CanGrow="true" CanShrink="true" Text="[companies.VATno]" Font="Segoe UI, 8pt"/>
      <TextObject Name="Text46" Left="255.15" Top="160.65" Width="94.5" Height="18.9" CanGrow="true" CanShrink="true" Text="[companies.AltNo]" Font="Segoe UI, 8pt"/>
      <TextObject Name="Text48" Left="170.1" Top="103.95" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="Reg. No:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text49" Left="170.1" Top="122.85" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="VAT No:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text50" Left="170.1" Top="160.65" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="Alt. / Fax. No:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <PictureObject Name="picLogo" Left="18.9" Width="226.8" Height="66.15" Printable="false"/>
      <TextObject Name="Text55" Left="255.15" Top="141.75" Width="94.5" Height="18.9" CanGrow="true" CanShrink="true" Text="[companies.ContactNo]" Font="Segoe UI, 8pt"/>
      <TextObject Name="Text56" Left="170.1" Top="141.75" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="Tel. No:" HorzAlign="Right" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
      <TextObject Name="txtInvoiceNumber" Left="406.35" Top="9.45" Width="94.5" Height="28.35" Text="# [trans.TransID]" Font="Segoe UI Light, 12pt"/>
      <TextObject Name="Text4" Left="9.45" Top="160.65" Width="151.2" Height="18.9" CanGrow="true" CanShrink="true" Text="[companies.Email]" Font="Segoe UI, 8pt"/>
      <ChildBand Name="Child1" Top="183.55" Width="522.02" Height="103.95">
        <ShapeObject Name="Shape2" Width="255.15" Height="103.95" Border.Color="LightGray" Border.Width="2" Shape="RoundRectangle"/>
        <TextObject Name="Text9" Left="18.9" Top="47.25" Width="226.8" Height="47.25" Text="[suppliers.BillingAddress]" Font="Segoe UI, 8pt" TextFill.Color="DimGray"/>
        <TextObject Name="Text3" Left="18.9" Top="28.35" Width="226.8" Height="18.9" Text="[trans.SupplierName]" Font="Segoe UI, 8pt"/>
        <TextObject Name="Text20" Left="12.45" Top="9.45" Width="103.95" Height="18.9" Text="Return To:" Font="Segoe UI, 8pt, style=Bold" TextFill.Color="DimGray"/>
        <ChildBand Name="Child2" Top="291.5" Width="522.02" Height="28.35" AfterDataEvent="Child2_AfterData">
          <ShapeObject Name="Shape1" Width="510.3" Height="28.35" Border.Color="Silver" Shape="RoundRectangle"/>
          <TextObject Name="Text11" Left="9.45" Top="5" Width="94.5" Height="18.9" Text="Code" Font="Segoe UI, 9pt"/>
          <TextObject Name="Text10" Left="113.4" Top="5" Width="94.5" Height="18.9" Text="Description" Font="Segoe UI, 9pt"/>
          <TextObject Name="Text15" Left="425.25" Top="5" Width="75.6" Height="18.9" Text="Total" HorzAlign="Right" Font="Segoe UI, 9pt"/>
          <TextObject Name="Text54" Left="330.75" Top="5" Width="85.05" Height="18.9" Text="Price" HorzAlign="Right" Font="Segoe UI, 9pt"/>
          <TextObject Name="Text65" Left="274.05" Top="5" Width="37.8" Height="18.9" Text="Qty" HorzAlign="Right" Font="Segoe UI, 9pt"/>
        </ChildBand>
      </ChildBand>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="323.85" Width="522.02" Height="18.9" CanGrow="true" CanShrink="true" AfterDataEvent="Data1_AfterData" DataSource="trans_items" KeepTogether="true" KeepDetail="true">
      <TextObject Name="Text8" Left="9.45" Width="94.5" Height="18.9" CanGrow="true" CanShrink="true" Text="[trans_items.ProductCode]" Font="Segoe UI, 8pt"/>
      <TextObject Name="Text12" Left="113.4" Width="151.2" Height="18.9" CanGrow="true" CanShrink="true" Text="[trans_items.Description]" Font="Segoe UI, 8pt"/>
      <TextObject Name="txtItemTotal" Left="425.25" Width="75.6" Height="18.9" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="txtItemPrice" Left="330.75" Width="85.05" Height="18.9" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="txtQty" Left="274.05" Width="37.8" Height="18.9" HideZeros="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="EllipsisCharacter"/>
    </DataBand>
    <PageFooterBand Name="PageFooter1" Top="346.75" Width="522.02" Height="94.5" AfterDataEvent="PageFooter1_AfterData">
      <TextObject Name="Text5" Left="425.25" Top="18.9" Width="75.6" Height="18.9" Text="[trans.TotalExcl]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 9pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text6" Left="425.25" Top="37.8" Width="75.6" Height="18.9" Text="[trans.TotalVAT]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 9pt" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text7" Left="425.25" Top="56.7" Width="75.6" Height="18.9" Text="[trans.TotalIncl]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 9pt, style=Bold" Trimming="EllipsisCharacter"/>
      <TextObject Name="Text27" Left="340.2" Top="18.9" Width="75.6" Height="18.9" Text="Sub Total:" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text28" Left="340.2" Top="37.8" Width="75.6" Height="18.9" Text="VAT @ [companies.VATrate]%:" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text29" Left="340.2" Top="56.7" Width="75.6" Height="18.9" Text="Total:" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="DimGray"/>
      <LineObject Name="Line1" Left="9.45" Top="9.45" Width="491.4" Border.Color="DimGray" Border.Style="Dash" Border.Width="0.25"/>
      <TextObject Name="Text22" Left="18.9" Top="56.7" Width="75.6" Height="18.9" Text="[PageNofM]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="txtTotQty" Left="103.95" Top="56.7" Width="85.05" Height="18.9" Text="[Total_Qty]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="txtTotLines" Left="198.45" Top="56.7" Width="103.95" Height="18.9" Text="Total Lines: [Total_Lines]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="0" Format.DecimalSeparator="." Format.GroupSeparator="," Format.NegativePattern="1" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
    </PageFooterBand>
  </ReportPage>
</Report>
