<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.5" Padding="18,0,0,0" FontSize="17">
         <Table Name="BillPageNumber">
          <Table.Columns>
                <TableColumn Width="200" />
                <TableColumn Width="550" />
               </Table.Columns> 
               <TableRowGroup>
                 <TableRow>
                 <TableCell Padding="0,20,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="Bill" Margin="20,0,0,0" CellSpacing="0" Padding="0,0,0,0" BorderBrush="Black" BorderThickness="0,0,0,0">
            <Table.Columns>
              <!--  <TableColumn Width="100" />-->
                <TableColumn Width="300" />
            </Table.Columns>
            <TableRowGroup>
		        <TableRow>
		          <!--   <TableCell>
                    <Paragraph>
                          <Image Tag="C:\Program Files (x86)\Horizon Technology Solutions\Horizon ERP\Templates\SR Distributors_Logo.jpg"/>
                             </Paragraph>
                    </TableCell>-->
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">
                        </Paragraph>
                    </TableCell>
                    <TableCell>
                  			<Table Name="BillAddDet" Margin="0" CellSpacing="0" Padding="0,0,0,0" BorderBrush="Black" BorderThickness="0">
                  			<Table.Columns>
                  				<TableColumn Width="410" />
                  			</Table.Columns>
                  			<TableRowGroup>
                      		<TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Right" FontSize="20" FontWeight="Bold" FontFamily="Roman PS">
                            <xrd:InlineDocumentValue PropertyName="FirmName" />
                        </Paragraph>
                   
                    </TableCell>
                    </TableRow>
                    <TableRow>
                    <TableCell>
                         <Paragraph TextAlignment="Right" FontSize="14" FontFamily="Roman PS">
                            <xrd:InlineDocumentValue PropertyName="DoorNo" />
                            <xrd:InlineDocumentValue PropertyName="Street" />
                            <xrd:InlineDocumentValue PropertyName="City" />
                            </Paragraph>
                            </TableCell>
                       </TableRow>
                       <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Right" FontSize="14" FontFamily="Roman PS">
                           
                            <xrd:InlineDocumentValue PropertyName="District" />,
                            <xrd:InlineDocumentValue PropertyName="State" />,Pincode :
                            <xrd:InlineDocumentValue PropertyName="PinCode" /> 
                        </Paragraph>
                    </TableCell>                   
                </TableRow>
                  <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Right" FontSize="12" LineHeight="1" FontFamily="Roman PS">Ph:
                           <xrd:InlineDocumentValue PropertyName="Phone1" />,
                            <xrd:InlineDocumentValue PropertyName="Phone2" />,
                            <xrd:InlineDocumentValue PropertyName="Phone3" />
                        </Paragraph>
                    </TableCell>
                </TableRow>
                 <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Right" FontSize="12" LineHeight="1" FontFamily="Roman PS">GSTIN :
                            <xrd:InlineDocumentValue PropertyName="GSTIN" />
                        </Paragraph>
                    </TableCell>
                </TableRow>
                 </TableRowGroup>
         </Table>
                </TableCell>
         </TableRow>
         </TableRowGroup>
         </Table>   
         <Table Name="TAXRULE" Margin="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,0,0,0">
            <Table.Columns>
                <TableColumn Width="758" />                
            </Table.Columns>
            <TableRowGroup>
            
                
                     <TableRow>
                <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial" >----------------------------------------------GOODS AND SERVICES TAX INVOICE RULES - FORM GST INV-1----------------------------------------
                        </Paragraph>
                    </TableCell>
                </TableRow>
               </TableRowGroup>
</Table>

 <Table Name="BillCustomerDet" Margin="20,0,20,0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,0,0,0">
          <Table.Columns>
              <TableColumn Width="500" />
              <TableColumn Width="90" />
              <TableColumn Width="200" />
              
          </Table.Columns>
          <TableRowGroup>
              <TableRow>
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> Bill To,
                      </Paragraph>
                  </TableCell>
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS" Padding="0,0,0,0">Invoice No. 
                      </Paragraph>
                  </TableCell> 
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS" Padding="0,0,0,0"> :
                          <xrd:InlineDocumentValue PropertyName="MSeries" /> 
                          <xrd:InlineDocumentValue PropertyName="MVno" />                         
                      </Paragraph>
                  </TableCell>   
              </TableRow>
          </TableRowGroup>
           <TableRowGroup>
              <TableRow>
                   <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> 
                            <xrd:InlineDocumentValue PropertyName="DelLedgerName" />
                      </Paragraph>
                  </TableCell>
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS" Padding="0,0,0,0">Invoice Date 
                      </Paragraph>
                  </TableCell>       
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS" Padding="0,0,0,0"> :
                           <xrd:InlineDocumentValue PropertyName="MBillDate" />
                      </Paragraph>
                  </TableCell>    
              </TableRow>
          </TableRowGroup>
          <TableRowGroup>
              <TableRow>
                   <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> 
                           <xrd:InlineDocumentValue PropertyName="DelAdd1" />
                            <xrd:InlineDocumentValue PropertyName="DelAdd2" />
                             <xrd:InlineDocumentValue PropertyName="DelAdd3" />
                      </Paragraph>
                     
                  </TableCell>
                      
              </TableRow>
          </TableRowGroup>
          <TableRowGroup>
              <TableRow>
                   <TableCell>
                       <Paragraph TextAlignment="Left" FontSize="13" FontFamily="Roman PS">GSTIN :
                            <xrd:InlineDocumentValue PropertyName="MGSTIN" />
                        </Paragraph>
                  </TableCell>
                  
              </TableRow>
          </TableRowGroup>
         
          <TableRowGroup>
              <TableRow>
                  <TableCell>
                      <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Ph: 
                           <xrd:InlineDocumentValue PropertyName="MMobile" />  
                      </Paragraph>
                  </TableCell>
                  
                   </TableRow>
          </TableRowGroup>
      </Table>            
           
 <Table Name="ItemHeaders" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1" Margin="20,0,0,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="Roman PS"/>
                    
                    <Setter Property="Background" Value="LightGray" FontFamily="Arial"/>
                </Style>

                Style for data rows. -->
                <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontFamily" Value="Roman PS"/>
                    <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="157.0" />
                <TableColumn Width="60.0" />
                 <TableColumn Width="50.0" />
                <TableColumn Width="45.0" />
                <TableColumn Width="65.0" />
                <TableColumn Width="85.0" />
                <TableColumn Width="85.0" />
                <TableColumn Width="85.0" />
                <TableColumn Width="60.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>Rate</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>Taxable Value</Bold>
                        </Paragraph>
                    </TableCell>
                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>CGST</Bold>
                        </Paragraph>
                        <Table Name="CGSTtot" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,1,0">
                <Table.Columns>
                <TableColumn Width="42" />
                <TableColumn Width="55" />                        
                        </Table.Columns>
              <TableRowGroup>
                     <TableRow>
                    <TableCell FontWeight="bold" BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Rate     
                        </Paragraph>
                  </TableCell>
                   <TableCell FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Amt
                        </Paragraph>
                   </TableCell> 
                    </TableRow>
                   </TableRowGroup>                                                                                                                                                                                                                                                                                                                                                                  
        </Table>  
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>SGST</Bold>
                        </Paragraph>
                        <Table Name="SGSTtot" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,1,0">
                <Table.Columns>
                <TableColumn Width="42" />
                <TableColumn Width="55" />                        
                        </Table.Columns>
              <TableRowGroup>
                     <TableRow>
                    <TableCell FontWeight="bold" BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Rate     
                        </Paragraph>
                  </TableCell>
                   <TableCell FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Amt
                        </Paragraph>
                   </TableCell> 
                    </TableRow>
                   </TableRowGroup>
    </Table>                                                                                                                                                                                     
                      
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>IGST</Bold>
                        </Paragraph>
                        <Table Name="IGSTtot" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,0,0">
                <Table.Columns>
                <TableColumn Width="42" />
                <TableColumn Width="55" />                        
                        </Table.Columns>
              <TableRowGroup>
                     <TableRow>
                    <TableCell FontWeight="bold" BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Rate     
                        </Paragraph>
                  </TableCell>
                   <TableCell FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Arial">Amt
                        </Paragraph>
                   </TableCell> 
                    </TableRow>
                   </TableRowGroup>
    </Table>                                                                                                                                                                                     
                    </TableCell>    
                    
                   
                  <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Center">
                            <Bold>Total</Bold>
                        </Paragraph>
                    </TableCell>                
                </TableRow>
            </TableRowGroup>
            </Table>
             </xrd:SectionReportHeader>
    <xrd:SectionReportFooter PageFooterHeight="0" Padding="18,0,30,20" FontSize="12" FontFamily="Roman PS">
        <Table Name="ItemTot" Margin="20,10,20,10" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
        <Table.Columns>
                <TableColumn Width="560" />
                </Table.Columns>
            <TableRowGroup>
                    <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Left" FontSize="10" FontWeight="Bold" FontFamily="Roman PS">
                        </Paragraph>
                    </TableCell> 			                   
                </TableRow>
             </TableRowGroup>
        </Table>
        </xrd:SectionReportFooter>
    <xrd:DocumentFooter DocumentFooterHeight ="28" Padding="18,0,0,20" FontSize="15" FontFamily="Roman PS">
      <!--  <Table Name="ItemTotals" Margin="0" CellSpacing="0" BorderBrush="Black" BorderThickness="0,1,0,0">
        <Table.Columns>
               <TableColumn Width="329" />
                <TableColumn Width="209" />
                <TableColumn Width="89" />
                <TableColumn Width="59" />
                <TableColumn Width="69" />
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                   <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                            <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Roman PS">
                                <xrd:InlineAggregateValue AggregateGroup="Qty" AggregateValueType="Sum" EmptyValue="0"  />
                            </Paragraph>
                    </TableCell>
                    
                     <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Roman PS">
                            <xrd:InlineDocumentValue PropertyName="MTaxableAmt" /> 
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Right" FontSize="13" FontFamily="Roman PS">
                        <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="Roman PS">
                        <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="Roman PS"> 
                           <xrd:InlineAggregateValue AggregateGroup="LineTotal" AggregateValueType="Sum" EmptyValue="0"  />
                        </Paragraph>
                    </TableCell>
                                
                </TableRow>
            </TableRowGroup>
        </Table>-->
       <Table Name="BillCustomerDe" Margin="20,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,1,1,1">
            <Table.Columns>
                <TableColumn Width="468" />
                <TableColumn Width="164" />
                <TableColumn Width="85" />
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="14" FontFamily="Roman PS"><Bold>Amount in words :</Bold>
                          <xrd:InlineDocumentValue PropertyName="AmountInWords" />
                        </Paragraph>
                    
                    </TableCell>
                    
                    <TableCell BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Roundoff
                       
                        </Paragraph>
                    </TableCell> 
                   
                          
                       
                    <TableCell BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                            <xrd:InlineDocumentValue PropertyName="MRoundOFF" />      
                        </Paragraph>
                    </TableCell>                    
                </TableRow>
                
            </TableRowGroup>
  
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,1,1,0">
                        <Paragraph TextAlignment="Center" FontSize="15" FontFamily="Roman PS"> Bank Details
                           
                        </Paragraph>
                    </TableCell>
                   
                                  
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Total Taxable Value
                          
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                          <xrd:InlineDocumentValue PropertyName="MTaxableAmt" /> 
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
             <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">---------------------------
                            
                        </Paragraph>
                    </TableCell>
                    
                                     
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> Cess 
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                          <xrd:InlineDocumentValue PropertyName="OUTPUTCESSONSALESCESS1" />  
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">A/c no. : 50200036637048
                            
                        </Paragraph>
                    </TableCell>
                    
                                     
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Discount After Tax
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                          <xrd:InlineDocumentValue PropertyName="MOtherDiscounts" />  
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS"> IFSC Code : HDFC0001596
                            
                        </Paragraph>
                    </TableCell>
                                     
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">Freight charges
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                          <xrd:InlineDocumentValue PropertyName="FRIEGHTCHARGES" />  
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS"> Bank : HDFC Bank
                            
                        </Paragraph>
                    </TableCell>
                                     
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">CGST
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                         <xrd:InlineAggregateValue AggregateGroup="CGST-ComputedAmt" AggregateValueType="Sum" EmptyValue="0"  />
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS"> Branch : Karamana
                            
                        </Paragraph>
                    </TableCell>
                                     
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS">SGST
                            
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,1" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="12" FontFamily="Roman PS">
                         <xrd:InlineAggregateValue AggregateGroup="SGST-ComputedAmt" AggregateValueType="Sum" EmptyValue="0"  />
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            <TableRowGroup>
                <TableRow>
                    <TableCell  BorderBrush="Black" BorderThickness="0,1,1,0">
                        <Paragraph TextAlignment="Center" FontSize="16" FontFamily="Roman PS" FontWeight="bold">YOUR TERMS AND CONDITION OF SALE
                        </Paragraph>
                    </TableCell>
                                    
                    <TableCell  BorderBrush="Black" BorderThickness="0,0,0,0" FontWeight="bold">
                        <Paragraph TextAlignment="Left" FontSize="16" FontFamily="Roman PS">INVOICE TOTAL
                           
                        </Paragraph>
                    </TableCell> 
                    <TableCell  BorderBrush="Black" BorderThickness="1,0,0,0" FontWeight="bold">
                        <Paragraph TextAlignment="Right" FontSize="16" FontFamily="Roman PS">
                          <xrd:InlineDocumentValue PropertyName="MGrandTotal" />     
                        </Paragraph>
                    </TableCell>    
                </TableRow>
            </TableRowGroup>
            
        </Table>
         <Table Name="Billsignato" Margin="20,0,0,0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,0">
            <Table.Columns>
                 <TableColumn Width="717.3" />
                
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                     <TableCell BorderBrush="Black" BorderThickness="0,0,1,1">
                        <Paragraph TextAlignment="Left" FontSize="10" FontFamily="Roman PS"><Bold>WARRANTY:-</Bold>1) If there is any complaint with the item purchased full set must be returned within 7 days of billing for the immediate replacement by the shop.
                        After 7days, it is the responsibility of the manufacturer to replace product.2)There will be no warranty or replacement for physical or external damages like, Lightning, Electric short circuit, warranty seal broken and cover broken, damaged caused by the courier service.
                        3) After the payment due date interest @ 24% per month will be charged ont the amount overdue.4) Rs 500/- will be charged per cheque if its bounced .
                        5) The cheque has to be given within 5 days of purchase. If the cheque is not given the account will be blocked by the account section. 6) Items sold will not be taken back or exchanged.
                        7) It is the responsibility of the customer to check whether the item is damaged or not.8) Only the warranty as per many features warranty policy will be applicable for the items.
                     </Paragraph>
                    </TableCell>
               
                   
                </TableRow>
            </TableRowGroup>
            </Table>
             <Table Name="Billend" Margin="20,0,0,0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,0">
            <Table.Columns>
                <TableColumn Width="317" />
                <TableColumn Width="200" />
                 <TableColumn Width="200" />
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"><Bold>DECLARATION:-</Bold>Certified that all the particulars shown in the above tax invoice are true and correct and that my/our registration under GST Act 2017 is valid as on date of this bill.

                        </Paragraph>
                    </TableCell>
               
               <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">Received the item in hand
                       </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">For 
                              <xrd:InlineDocumentValue PropertyName="FirmName" />
                        
                        </Paragraph>
                    </TableCell>
                    
                </TableRow>
            </TableRowGroup>
          
            </Table>
             <Table Name="Billsign" Margin="20,0,0,0" Padding="0,0,0,0" CellSpacing="0" BorderBrush="Black" BorderThickness="1,0,0,1">
            <Table.Columns>
                 <TableColumn Width="317" />
                <TableColumn Width="200" />
                 <TableColumn Width="200" />            
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                    <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                        </Paragraph>
                    </TableCell>
                      <TableCell BorderBrush="Black" BorderThickness="1,0,0,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                         <xrd:InlineDocumentValue PropertyName="DelLedgerName" />, Signature
                       </Paragraph>
                    </TableCell>
                   <TableCell BorderBrush="Black" BorderThickness="1,0,1,0" Padding="0,0,20,0">
                    
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">Authorised Signatory
                        
                        </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="387" />
                <TableColumn Width="368" />
               
                
            </Table.Columns>
            <TableRowGroup>
                <TableRow>
                <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,1" FontWeight="bold">
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                        
                        </Paragraph>
                    </TableCell>
                     </TableRow>
            </TableRowGroup>
                    <TableRowGroup>
                <TableRow>
                <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> Name  :
                        </Paragraph>
                    </TableCell>
                    </TableRow>
                    </TableRowGroup>
                    <TableRowGroup>
                <TableRow>
                <TableCell>
                        <Paragraph TextAlignment="Center" FontSize="12" FontFamily="Roman PS">
                        </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="1,0,1,0">
                        <Paragraph TextAlignment="Left" FontSize="12" FontFamily="Roman PS"> Designation :
                        </Paragraph>
                    </TableCell>
                </TableRow>
            </TableRowGroup>
             </Table>-->
             
      
        
             
        
        <Table Name="PageFooter" CellSpacing="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="20,0,0,0" BorderBrush="Black" Padding="0,0,0,0" BorderThickness="1,0,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="11"/>
                    <Setter Property="FontFamily" Value="Roman PS"/>
                    
                    <!--<Setter Property="Background" Value="LightGray" FontFamily="Arial"/>-->
                </Style>
                
             

                <!-- Style for data rows. -->
                <Style x:Key="dataRowStyle" TargetType="{x:Type TableRowGroup}">
                    <Setter Property="FontFamily" Value="Roman PS"/>
                    <Setter Property="FontSize" Value="11"/>
                    
                </Style>

                <!-- Style for data cells. -->
                <Style TargetType="{x:Type TableCell}">
                    <Setter Property="Padding" Value="0.01cm"/>
                    <Setter Property="BorderBrush" Value="Black"/>
                    <Setter Property="BorderThickness" Value="0.00cm"/>
                   
                 </Style>
            </Table.Resources>

            <Table.Columns>
               <TableColumn Width="25.0" />
                <TableColumn Width="157.0" />
                <TableColumn Width="60.0" />
                 <TableColumn Width="50.0" />
                <TableColumn Width="45.0" />
                <TableColumn Width="65.0" />
                <TableColumn Width="42.5" />
                <TableColumn Width="42.5" />
                <TableColumn Width="42.5" />
                 <TableColumn Width="42.5" />
                <TableColumn Width="42.5" />
                <TableColumn Width="42.5" />
                <TableColumn Width="60.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">
                        <xrd:InlineTableCellValue PropertyName="ItemName" />
                         </Paragraph>
                         <Paragraph TextAlignment="Left">
                        <xrd:InlineTableCellValue PropertyName="AddlDiscription" />
                         </Paragraph>
                    </TableCell>
                    <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                        <TextBlock TextTrimming="CharacterEllipsis">
                            <xrd:InlineTableCellValue PropertyName="HSNCode" />
                            </TextBlock>
                        </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="Qty" AggregateGroup="Qty"/>
                        </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="Center">
                            <xrd:InlineTableCellValue PropertyName="CGST-ComputedRate" AggregateGroup="CGST-ComputedRate"/>%
                        </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,1,0">
                        <Paragraph TextAlignment="Center">
                            <xrd:InlineTableCellValue PropertyName="SGST-ComputedRate" AggregateGroup="SGST-ComputedRate" />%
                        </Paragraph>
                    </TableCell>  
                  <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="SGST-ComputedAmt" AggregateGroup="SGST-ComputedAmt" />
                        </Paragraph>
                    </TableCell>  
                     <TableCell BorderBrush="Black" BorderThickness="0,0,1,0">
                        <Paragraph TextAlignment="Center">
                            <xrd:InlineTableCellValue PropertyName="IGST-ComputedRate" AggregateGroup="IGST-ComputedRate" />%
                        </Paragraph>
                    </TableCell> 
                     <TableCell BorderBrush="Black" BorderThickness="0,0,0,0">
                        <Paragraph TextAlignment="Right">
                            <xrd:InlineTableCellValue PropertyName="IGST-ComputedAmt" AggregateGroup="IGST-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>

