﻿<?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/19/2015 09:20:23" 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;));
      
      //Show Amount Due on Sales docs
      if (Report.GetColumnValue(&quot;programs_config.ShowAmountDueOnSalesDocs&quot;).ToString() == &quot;1&quot;)
      {
        lblAmountDue.Visible = true;
        txtAmountDue.Visible = true;
      }
      else
      {
        lblAmountDue.Visible = false;
        txtAmountDue.Visible = false;
      }
      
    }
    
    
    private void PageHeader1_AfterData(object sender, EventArgs e)
    {
      //Print the SalesRep
      if (Report.GetColumnValue(&quot;trans.SalesRep&quot;).ToString().Length == 0)
      {
        txtSalesRep1.Visible = false;
        txtSalesRep2.Visible = false;  
      }
      
      //Print the Delivery Address
      if (Report.GetColumnValue(&quot;trans.DeliveryAddress&quot;).ToString().Length == 0)
      {
        shpDelAddress.Visible = false;
        txtDelAddress1.Visible = false;
        txtDelAddress2.Visible = false;  
      }
    }
    
    
    private void Child1_AfterData(object sender, EventArgs e)
    {
      if (txtCustomText1.Text.Length &gt; 0)
      {
        txtCustomText1.Visible = true;
        txtCustomLabel1.Visible = true;
      }      
      if (txtCustomText2.Text.Length &gt; 0)
      {
        txtCustomText2.Visible = true;
        txtCustomLabel2.Visible = true;
      }
      if (txtCustomText3.Text.Length &gt; 0)
      {
        txtCustomText3.Visible = true;
        txtCustomLabel3.Visible = true;
      }
      if (txtCustomText4.Text.Length &gt; 0)
      {
        txtCustomText4.Visible = true;
        txtCustomLabel4.Visible = true;
      }
      if (txtCustomText5.Text.Length &gt; 0)
      {
        txtCustomText5.Visible = true;
        txtCustomLabel5.Visible = true;
      }
      if (txtCustomText6.Text.Length &gt; 0)
      {
        txtCustomText6.Visible = true;
        txtCustomLabel6.Visible = true;
      }       
    }
         
    

    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          
        total = Convert.ToDecimal(Report.GetColumnValue(&quot;trans_items.TotalCost&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 Data2_AfterData(object sender, EventArgs e)
    {
      //Print the Note
      if (Report.GetColumnValue(&quot;trans.SlipNote&quot;).ToString().Length == 0)
        Data2.Visible = false;      
    }
    

    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="rijcmlqmUGi0DHzhik04BO5+uxHPNJg6XdWlo9sfl3oNLbLcC5ELgVy3yM4U7/vviW/yU/VlCYnkUjA+BNt9VEI/Ru/VpjNr+7vnU1aaINsulUBaEI=">
      <TableDataSource Name="clients" DataType="System.Int32" Enabled="true" TableName="clients" SelectCommand="SELECT * FROM clients WHERE ID = 1">
        <Column Name="ID" 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="ClientID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="LastCashTransDate" DataType="System.DateTime"/>
        <Column Name="LastCashInvoiceDate" DataType="System.DateTime"/>
        <Column Name="LastCashRefundDate" DataType="System.DateTime"/>
        <Column Name="LastAccountTransDate" DataType="System.DateTime"/>
        <Column Name="LastAccountInvoiceDate" DataType="System.DateTime"/>
        <Column Name="LastCreditNoteDate" DataType="System.DateTime"/>
        <Column Name="LastReceiptDate" DataType="System.DateTime"/>
        <Column Name="LastJournalDate" DataType="System.DateTime"/>
        <Column Name="TotalDue" DataType="System.Decimal"/>
        <Column Name="PriceOverrideRule" DataType="System.String"/>
        <Column Name="PriceOverrideValue" DataType="System.Decimal"/>
        <Column Name="Note" DataType="System.String"/>
        <Column Name="InterestOver" DataType="System.String"/>
        <Column Name="InterestValue" DataType="System.Decimal"/>
        <Column Name="Area" DataType="System.String"/>
        <Column Name="City" DataType="System.String"/>
        <Column Name="CreditLimit" DataType="System.Decimal"/>
        <Column Name="Status" DataType="System.String"/>
      </TableDataSource>
      <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" SelectCommand="SELECT InvShowRetailPriceExcl, QtyDecimalValue,&#13;&#10;InvCustomLabel1, InvCustomLabel2, InvCustomLabel3,&#13;&#10;InvCustomLabel4, InvCustomLabel5, InvCustomLabel6, ShowAmountDueOnSalesDocs &#13;&#10;FROM programs_config WHERE CompanyID = @CompanyID">
        <Column Name="QtyDecimalValue" DataType="System.UInt32"/>
        <Column Name="InvShowRetailPriceExcl" DataType="System.Byte"/>
        <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="ShowAmountDueOnSalesDocs" DataType="System.Byte"/>
        <CommandParameter Name="CompanyID" DataType="254" Expression="[CompanyID]"/>
      </TableDataSource>
      <TableDataSource Name="trans" DataType="System.Int32" PropName="cash_sales" Enabled="true" TableName="trans" SelectCommand="select * from ibt 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="SalesRep" DataType="System.String"/>
        <Column Name="ClientID" DataType="System.UInt32"/>
        <Column Name="ClientName" DataType="System.String"/>
        <Column Name="SlipNote" DataType="System.String"/>
        <Column Name="Custom1" DataType="System.String"/>
        <Column Name="Custom2" DataType="System.String"/>
        <Column Name="Custom3" DataType="System.String"/>
        <Column Name="Custom4" DataType="System.String"/>
        <Column Name="Custom5" DataType="System.String"/>
        <Column Name="Custom6" DataType="System.String"/>
        <Column Name="TransID" DataType="System.UInt32"/>
        <Column Name="DeliveryAddress" DataType="System.String"/>
        <Column Name="TotalCost" DataType="System.Decimal"/>
      </TableDataSource>
      <TableDataSource Name="trans_items" DataType="System.Int32" PropName="cash_sales_items" Enabled="true" TableName="trans_items" SelectCommand="select * from ibt_items where relatedID = 1 and companyid = 1">
        <Column Name="ProductCode" DataType="System.String"/>
        <Column Name="Description" DataType="System.String"/>
        <Column Name="Qty" DataType="System.Decimal"/>
        <Column Name="TotalCost" DataType="System.Decimal"/>
        <Column Name="ID" DataType="System.UInt32"/>
        <Column Name="CompanyID" DataType="System.UInt32"/>
        <Column Name="RelatedID" DataType="System.UInt32"/>
        <Column Name="ClientID" DataType="System.UInt32"/>
        <Column Name="ProductID" DataType="System.UInt32"/>
        <Column Name="Date" DataType="System.DateTime"/>
        <Column Name="IsProduct" DataType="System.Byte"/>
        <Column Name="QtyAvailable" DataType="System.Decimal"/>
        <Column Name="SalesRep" DataType="System.String"/>
        <Column Name="RelIBTreturnIDs" DataType="System.String"/>
        <Column Name="RelIBTreturnQtys" 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"/>
    <Parameter Name="Copy" DataType="System.String"/>
    <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">
      <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="122.85" Height="28.35" Border.Shadow="true" Border.ShadowColor="Transparent" Text="IBT" HorzAlign="Right" Font="Segoe UI Light, 14pt, style=Bold" TextFill.Color="DimGray"/>
      <TextObject Name="txtSalesRep2" Left="434.7" Top="103.95" Width="85.05" Height="18.9" CanGrow="true" CanShrink="true" Text="[trans.SalesRep]" Font="Segoe UI, 8pt"/>
      <TextObject Name="txtSalesRep1" Left="359.1" Top="103.95" Width="75.6" Height="18.9" CanGrow="true" CanShrink="true" Text="Sales Rep:" 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="387.45" Top="9.45" Width="113.4" Height="28.35" Text="# [trans.TransID]" Font="Segoe UI Light, 14pt"/>
      <TextObject Name="Text1" Left="264.6" Top="37.8" Width="236.25" Height="18.9" Text="[Copy]" HorzAlign="Center" Font="Segoe UI, 9pt"/>
      <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="Child3" Top="183.55" Width="522.02" Height="103.95">
        <TextObject Name="Text9" Left="18.9" Top="47.25" Width="226.8" Height="47.25" Text="[clients.BillingAddress]" Font="Segoe UI, 8pt"/>
        <TextObject Name="Text3" Left="18.9" Top="28.35" Width="226.8" Height="18.9" Text="[trans.ClientName]" Font="Segoe UI, 9pt"/>
        <TextObject Name="txtDelAddress2" Left="274.05" Top="28.35" Width="226.8" Height="66.15" Text="[trans.DeliveryAddress]" Font="Segoe UI, 9pt"/>
        <TextObject Name="Text20" Left="12.45" Top="9.45" Width="75.6" Height="18.9" Text="Invoice To:" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="DimGray"/>
        <TextObject Name="txtDelAddress1" Left="274.05" Top="9.45" Width="75.6" Height="18.9" Text="Deliver To:" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="DimGray"/>
        <ShapeObject Name="Shape2" Width="255.15" Height="103.95" Border.Color="Silver" Border.Width="1.5" Shape="RoundRectangle"/>
        <ShapeObject Name="shpDelAddress" Left="255.15" Width="255.15" Height="103.95" Border.Color="Silver" Border.Width="1.5" Shape="RoundRectangle"/>
        <ChildBand Name="Child1" Top="291.5" Width="522.02" Height="75.6" CanGrow="true" CanShrink="true" AfterDataEvent="Child1_AfterData">
          <TextObject Name="txtCustomLabel1" Left="9.45" Top="9.45" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel1]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomLabel2" Left="9.45" Top="28.35" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel2]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomLabel3" Left="9.45" Top="47.25" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel3]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomLabel4" Left="264.6" Top="9.45" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel4]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomLabel5" Left="264.6" Top="28.35" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel5]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomLabel6" Left="264.6" Top="47.25" Width="85.05" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[programs_config.InvCustomLabel6]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
          <TextObject Name="txtCustomText1" Left="103.95" Top="9.45" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom1]" Font="Segoe UI, 9pt"/>
          <TextObject Name="txtCustomText2" Left="103.95" Top="28.35" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom2]" Font="Segoe UI, 9pt"/>
          <TextObject Name="txtCustomText3" Left="103.95" Top="47.25" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom3]" Font="Segoe UI, 9pt"/>
          <TextObject Name="txtCustomText4" Left="359.1" Top="9.45" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom4]" Font="Segoe UI, 9pt"/>
          <TextObject Name="txtCustomText5" Left="359.1" Top="28.35" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom5]" Font="Segoe UI, 9pt"/>
          <TextObject Name="txtCustomText6" Left="359.1" Top="47.25" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="[trans.Custom6]" Font="Segoe UI, 9pt"/>
          <ChildBand Name="Child2" Top="371.1" 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>
      </ChildBand>
    </PageHeaderBand>
    <DataBand Name="Data1" Top="403.45" 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" CanShrink="true" Text="[trans_items.ProductCode]" WordWrap="false" Font="Segoe UI, 8pt" Trimming="Character"/>
      <TextObject Name="Text12" Left="113.4" Width="151.2" Height="18.9" CanShrink="true" Text="[trans_items.Description]" WordWrap="false" Font="Segoe UI, 8pt" Trimming="Character"/>
      <TextObject Name="txtItemTotal" Left="425.25" Width="75.6" Height="18.9" CanShrink="true" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="Character"/>
      <TextObject Name="txtItemPrice" Left="330.75" Width="85.05" Height="18.9" CanShrink="true" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="Character"/>
      <TextObject Name="txtQty" Left="274.05" Width="37.8" Height="18.9" CanShrink="true" Format="Currency" Format.UseLocale="true" HorzAlign="Right" WordWrap="false" Font="Segoe UI, 8pt" Trimming="Character"/>
    </DataBand>
    <DataBand Name="Data2" Top="426.35" Width="522.02" Height="94.5" CanGrow="true" CanShrink="true" AfterDataEvent="Data2_AfterData" PrintOnBottom="true">
      <TextObject Name="Text61" Left="9.45" Width="75.6" Height="18.9" CanGrow="true" CanShrink="true" Text="Note:" VertAlign="Center" Font="Segoe UI, 7pt, style=Bold" TextFill.Color="DimGray"/>
      <TextObject Name="Text62" Left="18.9" Top="18.9" Width="481.95" Height="75.6" CanGrow="true" CanShrink="true" Text="[trans.SlipNote]" Font="Segoe UI, 7pt"/>
      <TextObject Name="lblZeroRated" Left="374" Width="141.75" Height="18.9" Visible="false" CanGrow="true" CanShrink="true" Text="Zero-Rated Items * " HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
    </DataBand>
    <PageFooterBand Name="PageFooter1" Top="524.85" Width="522.02" Height="160.65" AfterDataEvent="PageFooter1_AfterData">
      <TextObject Name="Text7" Left="425.25" Top="28.35" Width="75.6" Height="18.9" Text="[trans.TotalCost]" 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="Text29" Left="330.75" Top="28.35" Width="85.05" Height="18.9" Text="Total:" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="DimGray"/>
      <LineObject Name="Line1" Left="9.45" Top="1.89" Width="491.4" Border.Color="DimGray" Border.Style="Dash" Border.Width="0.25"/>
      <ShapeObject Name="Shape3" Top="9.45" Width="245.7" Height="94.5" Border.Color="Silver" Border.Width="1.5" Shape="RoundRectangle"/>
      <TextObject Name="Text22" Left="9.45" Top="103.95" Width="75.6" Height="18.9" Text="[PageNofM]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="Text60" Left="9.45" Top="18.9" Width="151.2" Height="18.9" Text="Banking Details:" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="DimGray"/>
      <TextObject Name="Text19" Left="18.9" Top="37.8" Width="207.9" Height="56.7" Text="[companies.BankingDetails]" Font="Segoe UI, 9pt"/>
      <TextObject Name="txtTotQty" Left="94.5" Top="103.95" Width="85.05" Height="18.9" Text="[Total_Qty]" Font="Segoe UI, 9pt" TextFill.Color="DimGray"/>
      <TextObject Name="txtTotLines" Left="189" Top="103.95" 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"/>
      <TextObject Name="txtAmountDue" Left="425.25" Top="66.15" Width="75.6" Height="18.9" Text="[clients.TotalDue]" Format="Number" Format.UseLocale="false" Format.DecimalDigits="2" Format.DecimalSeparator="." Format.GroupSeparator=" " Format.NegativePattern="1" HorzAlign="Right" WordWrap="false" Trimming="EllipsisCharacter"/>
      <TextObject Name="lblAmountDue" Left="311.85" Top="66.15" Width="103.95" Height="18.9" Text="Balance Due:" Font="Segoe UI Light, 10pt, style=Bold" TextFill.Color="DimGray"/>
    </PageFooterBand>
  </ReportPage>
</Report>
