<FlowDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
              xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
              xmlns:xrd="clr-namespace:CodeReason.Reports.Document;assembly=CodeReason.Reports"
              xmlns:xrbc="clr-namespace:CodeReason.Reports.Document.Barcode;assembly=CodeReason.Reports"
              PageHeight="29.6cm" PageWidth="21cm" ColumnWidth="25cm">
    <xrd:ReportProperties>
    </xrd:ReportProperties>
    
        <xrd:SectionReportHeader PageHeaderHeight="28.9" Padding="18,5,0,20" FontSize="17">
         <Table Name="BillPageNumber">
          <Table.Columns>
                <TableColumn Width="200" />
                <TableColumn Width="550" />
               </Table.Columns> 
               <TableRowGroup>
                 <TableRow>
                 <TableCell Padding="0,10,20,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Page
                            <xrd:InlineContextValue PropertyName="PageNumber" /> of
                            <xrd:InlineContextValue PropertyName="PageCount" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="0,10,20,0">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                        <xrd:InlineContextValue PropertyName="Reporttitle" />
                        </Paragraph>
                    </TableCell>
                 </TableRow>
                 </TableRowGroup>
         </Table>
         <Table Name="BillHeader" CellSpacing="0">
            <Table.Columns>
                <TableColumn Width="*" />
            </Table.Columns>
            <TableRowGroup>
                 <TableRow>
                 
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="20" FontWeight="Bold" FontFamily="Times New Roman">
                            <xrd:InlineDocumentValue PropertyName="FirmName" />
                        </Paragraph>
                    </TableCell>
                    <!--<TableCell>
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">Page
                            <xrd:InlineContextValue PropertyName="PageNumber" /> of
                            <xrd:InlineContextValue PropertyName="PageCount" />
                        </Paragraph>
                    </TableCell>-->
                 </TableRow>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="14" FontFamily="Times New Roman">
                            <xrd:InlineDocumentValue PropertyName="DoorNo" />,
                            <xrd:InlineDocumentValue PropertyName="Street" />,
                            <xrd:InlineDocumentValue PropertyName="City" />,
                            
                        </Paragraph>
                    </TableCell>                   
                </TableRow>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="14" FontFamily="Times New Roman">
                           
                            <xrd:InlineDocumentValue PropertyName="District" />,
                            <xrd:InlineDocumentValue PropertyName="State" />,Pin:
                            <xrd:InlineDocumentValue PropertyName="PinCode" /> ,
                        </Paragraph>
                    </TableCell>                   
                </TableRow>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" LineHeight="1" FontFamily="Times New Roman">Ph:
                            <xrd:InlineDocumentValue PropertyName="Phone1" />,
                            <xrd:InlineDocumentValue PropertyName="Phone2" />,
                            <xrd:InlineDocumentValue PropertyName="Phone3" />,Flic:
                            <xrd:InlineDocumentValue PropertyName="FoodLic" />
                        </Paragraph>
                    </TableCell>
                </TableRow>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman"> GOODS AND SERVICES TAX INVOICE RULES - FORM GST INV-1
                        </Paragraph>
                    </TableCell>
                </TableRow>
                <!--<TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman"> 
                           <xrd:InlineDocumentValue PropertyName="MBillType" />
                        </Paragraph>
                    </TableCell>
                </TableRow>-->
          </TableRowGroup>
         </Table>
        <Table Name="BillCustomerDet" Margin="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
            <Table.Columns>
                <TableColumn Width="374" />
                <TableColumn Width="374" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,5,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> GSTIN :
                            <xrd:InlineDocumentValue PropertyName="GSTIN" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,5,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Transportaion Mode :
                            <xrd:InlineDocumentValue PropertyName="MDispatchThrough" />
                        </Paragraph>
                    </TableCell>
                                  
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Tax is Payable On Reverse Charge:(Yes/No)
                          <!--  <xrd:InlineDocumentValue PropertyName=" " />-->
                           
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Veh.No :
                            <xrd:InlineDocumentValue PropertyName="MVehicleNumber" />
                        </Paragraph>
                    </TableCell>
                 </TableRow>  
              </TableRowGroup>
           <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Invoice Serial No.:
                            <xrd:InlineDocumentValue PropertyName="MSeries" />
                            <xrd:InlineDocumentValue PropertyName="MVno" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Date and Time of Supply :
                            <xrd:InlineDocumentValue PropertyName="MBillDate" />
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,3,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> Invoice Date :
                            <xrd:InlineDocumentValue PropertyName="MBillDate" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,3,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> Place of Supply :
                            <xrd:InlineDocumentValue PropertyName="State" />
                        </Paragraph>
                    </TableCell>
                   </TableRow> 
            </TableRowGroup>
        </Table>
    <!--</xrd:SectionReportHeader>-->
    <Table Name ="Receiverdet" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,1,0">
        <Table.Columns>
                <TableColumn Width="374" />
                <TableColumn Width="374" />
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="13" FontFamily="Times New Roman" FontWeight="Bold"> Details of Receiver(Billed to)
                            
                        </Paragraph>
                    </TableCell>
                    <TableCell >
                        <Paragraph TextAlignment="Center" FontSize="13" FontFamily="Times New Roman" FontWeight="Bold"> Details of Consignee(Shipped to)
                           
                        </Paragraph>
                    </TableCell>
                   </TableRow> 
            </TableRowGroup>

    </Table>
    <Table Name="BillCustomerDetil" Margin="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
            <Table.Columns>
                <TableColumn Width="374" />
                <TableColumn Width="374" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,3,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">
                        <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Left"> Name :
                            <xrd:InlineDocumentValue PropertyName="DelLedgerName" />
                            </TextBlock>
                        </Paragraph>
                        
                    </TableCell>
                    
                    <TableCell Padding="2,3,0,0">
                         <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">
                        <TextBlock TextTrimming="CharacterEllipsis" TextAlignment="Left"> Name :
                            <xrd:InlineDocumentValue PropertyName="DelLedgerName" />
                            </TextBlock>
                        </Paragraph>
                    </TableCell>                  
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
                    
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">
                        <TextBlock TextTrimming="CharacterEllipsis"
                        TextAlignment="Left">Address :
                           <xrd:InlineDocumentValue PropertyName="DelAdd1" />,
                            <xrd:InlineDocumentValue PropertyName="DelAdd2" />,
                            <xrd:InlineDocumentValue PropertyName="DelAdd3" />
                            </TextBlock>
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">
                        <TextBlock TextTrimming="CharacterEllipsis"
                        TextAlignment="Left">Address :
                            <xrd:InlineDocumentValue PropertyName="DelAdd1" />,
                            <xrd:InlineDocumentValue PropertyName="DelAdd2" />,
                            <xrd:InlineDocumentValue PropertyName="DelAdd3" />
                        </TextBlock>
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
             <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,3,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> Mobile :
                            <xrd:InlineDocumentValue PropertyName="DelPhone" />
                        </Paragraph>
                    </TableCell>
                    
                    <TableCell Padding="2,3,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Mobile :
                            <xrd:InlineDocumentValue PropertyName="DelPhone" />
                        </Paragraph>
                    </TableCell>                  
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> State :
                            <xrd:InlineDocumentValue PropertyName="MStateName" />State Code :
                            <xrd:InlineDocumentValue PropertyName="MStateCode" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">State :
                            <xrd:InlineDocumentValue PropertyName="MStateName" />State Code :
                            <xrd:InlineDocumentValue PropertyName="MStateCode" />
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
           
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> GSTIN :
                            <xrd:InlineDocumentValue PropertyName="MGSTIN" />
                        </Paragraph>
                    </TableCell>
                    <TableCell Padding="2,0,0,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">GSTIN :
                            <xrd:InlineDocumentValue PropertyName="MGSTIN" />
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
        </Table>
   
    <Table Name="ItemHeaders" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1" Margin="0">
            <Table.Resources>
                <!-- Style for header/footer rows. 
                <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontWeight" Value="DemiBold"/>
                    <Setter Property="FontSize" Value="13"/>
                    <Setter Property="FontFamily" Value="Times New Roman"/>
                    
                    <Setter Property="Background" Value="LightGray" FontFamily="Arial"/>
                </Style>

                Style for data rows. -->
                <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontFamily" Value="Times New Roman"/>
                    <Setter Property="FontSize" Value="13"/>
                    
                </Style>

                <!-- Style for data cells. 
               <Style TargetType="{x:Type TableCell}">
                    <Setter Property="Padding" Value="0.1cm"/>
                    <Setter Property="BorderBrush" Value="Black"/>
                    <Setter Property="BorderThickness" Value="0.00cm"/>
                   
                 </Style>-->
            </Table.Resources>

            <Table.Columns>
                <TableColumn Width="25.0" />
                <TableColumn Width="200.0" />
                <TableColumn Width="63.0" />
                <!--<TableColumn Width="50.0" />-->
                <TableColumn Width="45.0" />
                <TableColumn Width="30.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="60.0" />
                <TableColumn Width="40.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="55.0" />
               <TableColumn Width="65.0" />
            </Table.Columns>
            <TableRowGroup Style="{StaticResource dataRowStyle}">
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                            <Bold>Sl</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                            <Bold>Item Description</Bold>
                        </Paragraph>
                    </TableCell>                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>HSN Code</Bold>
                        </Paragraph>
                    </TableCell>
                    <!--<TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>MRP</Bold>
                        </Paragraph>
                    </TableCell>-->
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Qty</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>UOM</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Rate</Bold>
                        </Paragraph>
                    </TableCell>
                                      
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Disc</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Taxable Value</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>GST %</Bold>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>CGST (Amt)</Bold>
                        </Paragraph>
                    </TableCell>
                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>SGST (Amt)</Bold>
                        </Paragraph>
                    </TableCell>                    
                  
                  <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Total</Bold>
                        </Paragraph>
                    </TableCell>                
                </TableRow>
            </TableRowGroup>
            </Table>
             </xrd:SectionReportHeader>
    
    <xrd:DocumentFooter DocumentFooterHeight ="25" Padding="18,20,0,20" FontSize="15" FontFamily="Times New Roman">
        <Table Name="ItemTotals" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,0,0">
        <Table.Columns>
               <TableColumn Width="323" />
                <TableColumn Width="210" />
                <TableColumn Width="90" />
                <TableColumn Width="60" />
                <TableColumn Width="70" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                   <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                            <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Draft 10cpi">
                                <xrd:InlineAggregateValue AggregateGroup="Qty" AggregateValueType="Sum" EmptyValue="0"  />
                            </Paragraph>
                    </TableCell>
                    
                     <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Times New Roman">
                            <xrd:InlineDocumentValue PropertyName="MTaxableAmt" /> 
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Times New Roman">
                        <xrd:InlineAggregateValue AggregateGroup="CGST-ComputedAmt" AggregateValueType="Sum" EmptyValue="0"  />   
                        </Paragraph>
                    </TableCell>		   
                    <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Times New Roman">
                        <xrd:InlineAggregateValue AggregateGroup="SGST-ComputedAmt" AggregateValueType="Sum" EmptyValue="0"  />   
                        </Paragraph>
                    </TableCell>		    
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Draft 10cpi"> 
                           <xrd:InlineAggregateValue AggregateGroup="LineTotal" AggregateValueType="Sum" EmptyValue="0"  />
                        </Paragraph>
                    </TableCell>
                                
                </TableRow>
            </TableRowGroup>
        </Table>
       <Table Name="BillCustomerDe" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
            <Table.Columns>
                <TableColumn Width="382" />
                <TableColumn Width="130" />
                <TableColumn Width="150" />
                <TableColumn Width="89" />
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman" FontWeight="Bold" > Invoice Value (In Words)
                        </Paragraph>
                    
                    </TableCell>
                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman">Scheme Total :
                        <xrd:InlineDocumentValue PropertyName="MSchemeTotal" />   
                        </Paragraph>
                    </TableCell> 
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                          
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                          
                        </Paragraph>
                    </TableCell>                    
                </TableRow>
                
            </TableRowGroup>
  
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="15" FontFamily="Times New Roman"> 
                           <xrd:InlineDocumentValue PropertyName="AmountInWords" />
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                          
                        </Paragraph>
                    </TableCell>                    
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">Discount After Tax
                          
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                           <xrd:InlineDocumentValue PropertyName="MOtherDiscounts" />  
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman"> 
                            
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                          
                        </Paragraph>
                    </TableCell>                    
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">Roundoff
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                       <xrd:InlineDocumentValue PropertyName="MRoundOFF" />      
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman" FontWeight="bold">Bill Type :
                            <xrd:InlineDocumentValue PropertyName="MBillType" /> 
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Times New Roman">
                          
                        </Paragraph>
                    </TableCell>                    
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,0" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="16" FontFamily="Times New Roman">INVOICE TOTAL
                           
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,0" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="16" FontFamily="Times New Roman">
                          <xrd:InlineDocumentValue PropertyName="MGrandTotal" />     
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            
        </Table>
         <Table Name="Billsignato" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,0">
            <Table.Columns>
                <TableColumn Width="382" />
                <TableColumn Width="370" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                     <TableCell BorderBrush="Black" BorderThickness="1,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">YOUR TERMS AND CONDITION OF SALE
                        </Paragraph>
                    </TableCell>
               
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">
                        <xrd:InlineDocumentValue PropertyName="FirmName" />
                        </Paragraph>
                    </TableCell>
                </TableRow>
            </TableRowGroup>
            </Table>
             <Table Name="Billend" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,0">
            <Table.Columns>
                <TableColumn Width="381" />
                <TableColumn Width="371" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman"><Bold>WARRANTY:-</Bold>On the strength of the warranty issued to us by our suppliers we hereby certify that the food/foods mentioned in this invoice
is/are warranted to be of the nature and quality which it/these purport/purports to be

                        </Paragraph>
                    </TableCell>
               
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">
                        
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
          
            </Table>
             <Table Name="Billsign" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,1">
            <Table.Columns>
                <TableColumn Width="381" />
                <TableColumn Width="371" />
                <TableColumn Width="371" />
                <TableColumn Width="371" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">
                        </Paragraph>
                    </TableCell>
                   <TableCell BorderBrush="Black" BorderThickness="1,0,1,0" Padding="0,0,20,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">Signature : -------------
                        
                        </Paragraph>
                    </TableCell>
                </TableRow>
            </TableRowGroup> 
            
            </Table>
               <Table Name="Billauthorisd" Margin="0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,1">
            <Table.Columns>
                <TableColumn Width="381" />
                <TableColumn Width="371" />
                <TableColumn Width="389" />
                <TableColumn Width="371" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman"><Bold>DECLARATION:-</Bold> Certified that all particulars shown in the above tax invoice are true and correct in all respect and the amount indicated represents the price actually charged and there is no flow of additional consideration directly or indirectly to the buyer.
                        
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">Authorised Signatory
                        
                        </Paragraph>
                    </TableCell>
                     </TableRow>
            </TableRowGroup>
                    <TableRowGroup>
                <TableRow>
                <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> Name  :
                        </Paragraph>
                    </TableCell>
                    </TableRow>
                    </TableRowGroup>
                    <TableRowGroup>
                <TableRow>
                <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Times New Roman">
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Times New Roman"> Designation :
                        </Paragraph>
                    </TableCell>
                </TableRow>
            </TableRowGroup>
             </Table>
             
      
        
             
        
        <Table Name="PageFooter" CellSpacing="0" Margin="0">
            <Table.Columns>
                <TableColumn Width="360" />
                <TableColumn Width="360" />
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell>
                        <Paragraph  FontSize="10">Horizon Technology Solutions
                            <!--<Image Tag="dpd.jpg" Height="0.5cm" />-->
                        </Paragraph>
                    </TableCell>
                   <!-- <TableCell>
                        <Paragraph TextAlignment="Right">
                            Page
                            <xrd:InlineContextValue PropertyName="PageNumber" FontWeight="Bold" /> of
                            <xrd:InlineContextValue PropertyName="PageCount" FontWeight="Bold" />
                        </Paragraph>
                    </TableCell>-->
                </TableRow>
            </TableRowGroup>
        </Table>
    
    </xrd:DocumentFooter>
    <Section Padding="0" FontSize="12" BreakPageBefore="True">
       <Table CellSpacing="0" Margin="0" BorderBrush="Black" Padding="0,0,0,0" BorderThickness="1,1,1,1">
            <Table.Resources>
                <!-- Style for header/footer rows. -->
                <Style x:Key="headerFooterRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontWeight" Value="DemiBold"/>
                    <Setter Property="FontSize" Value="13"/>
                    <Setter Property="FontFamily" Value="Times New Roman"/>
                    
                    <!--<Setter Property="Background" Value="LightGray" FontFamily="Arial"/>-->
                </Style>

                <!-- Style for data rows. -->
                <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontFamily" Value="Times New Roman"/>
                    <Setter Property="FontSize" Value="13"/>
                    
                </Style>

                <!-- Style for data cells. -->
                <Style TargetType="{x:Type TableCell}">
                    <Setter Property="Padding" Value="0.1cm"/>
                    <Setter Property="BorderBrush" Value="Black"/>
                    <Setter Property="BorderThickness" Value="0.00cm"/>
                   
                 </Style>
            </Table.Resources>

            <Table.Columns>
                <TableColumn Width="25.0" />
                <TableColumn Width="200.0" />
                <TableColumn Width="63.0" />
                <!--<TableColumn Width="50.0" />-->
                <TableColumn Width="45.0" />
                <TableColumn Width="30.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="60.0" />
                <TableColumn Width="40.0" />
                <TableColumn Width="55.0" />
                <TableColumn Width="55.0" />
               <TableColumn Width="65.0" />
            </Table.Columns>            
            <TableRowGroup Style="{StaticResource dataRowStyle}">
                <xrd:TableRowForDataTable TableName="BillItemDet">
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="Slno" />
                        </Paragraph>
                    </TableCell>
                   
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                        <TextBlock TextTrimming="CharacterEllipsis">  
                            <xrd:InlineTableCellValue PropertyName="ItemName" />
                            </TextBlock>
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                        <TextBlock TextTrimming="CharacterEllipsis"
                        TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="HSNCode" />
                            </TextBlock>
                        </Paragraph>
                    </TableCell>
                     <!--<TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Left">
                        <TextBlock TextTrimming="CharacterEllipsis"
                        TextAlignment="Left">
                            <xrd:InlineTableCellValue PropertyName="MRP" />
                            </TextBlock>
                        </Paragraph>
                    </TableCell>-->
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph  TextAlignment="Right">
                             <xrd:InlineTableCellValue PropertyName="Qty" AggregateGroup="Qty"/>
                        </Paragraph>
                    </TableCell>
                     <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph  TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="UnitName" />
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="InputRate" />
                        </Paragraph>
                    </TableCell>
                   
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="LineDiscountAmountTot" />
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="Taxable" />
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="Taxper" />
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="CGST-ComputedAmt" AggregateGroup="CGST-ComputedAmt"/>
                        </Paragraph>
                    </TableCell>
                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="SGST-ComputedAmt" AggregateGroup="SGST-ComputedAmt" />
                        </Paragraph>
                    </TableCell>   
                     <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                    
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="LineTotal" AggregateGroup="LineTotal"/>
                        </Paragraph>
                    </TableCell>
                </xrd:TableRowForDataTable>
            </TableRowGroup>
        </Table>
    </Section>
</FlowDocument>

