交替单位导入 Excel 到 Tally

Alternate Units Import Excel to Tally

如何从 Excel(XLS 文件)或 XML 文件中导入具有备用单位的存货项目的 Tally ERP 中的采购发票?

发票 1: 项目:U 型别针;数量 : 10000 件 发票 2: 项目:U 型针;数量:200 箱(每箱 100 件)

此处UOM(UNIT of measurement)不同,交替单位在Tally中定义。

要将带有备用单位的采购条目导入 Tally ERP,您可以使用下面的 XML。

第一个采购条目 - UOM 为 PCS

以 PCS 为计量单位的库存商品采购条目

<ENVELOPE>
<HEADER>
    <TALLYREQUEST>Import Data</TALLYREQUEST>
</HEADER>
<BODY>
    <IMPORTDATA>
        <REQUESTDESC>
            <REPORTNAME>All Masters</REPORTNAME>
            <STATICVARIABLES>
                <IMPORTDUPS>Modify with new data</IMPORTDUPS>
            </STATICVARIABLES>
        </REQUESTDESC>
        <REQUESTDATA>
            <TALLYMESSAGE xmlns:UDF="TallyUDF">
                <VOUCHER REMOTEID="udi-H6W7QN-1000001-Purchase-43191" VCHTYPE="Purchase" ACTION="CREATE"><ISOPTIONAL>No</ISOPTIONAL><GUID>udi-H6W7QN-1000001-Purchase-43191</GUID>
                    <DATE>01/04/2018</DATE>
                    <EFFECTIVEDATE>01/04/2018</EFFECTIVEDATE>
                    <VOUCHERTYPENAME>Purchase</VOUCHERTYPENAME>
                    <VOUCHERNUMBER>VCH-PURC-1</VOUCHERNUMBER>
                    <REFERENCE>INV-1</REFERENCE>
                    <POSCASHRECEIVED>0</POSCASHRECEIVED>
                    <ISINVOICE>Yes</ISINVOICE>
                    <PERSISTEDVIEW>Invoice Voucher View</PERSISTEDVIEW>
                    <DIFFACTUALQTY>No</DIFFACTUALQTY>
                    <UDF:REFERENCEDATE.LIST DESC="`ReferenceDate`" ISLIST="YES" TYPE="Date">
                        <UDF:REFERENCEDATE DESC="`ReferenceDate`">01/04/2018</UDF:REFERENCEDATE>
                    </UDF:REFERENCEDATE.LIST>
                    <REFERENCEDATE>01/04/2018</REFERENCEDATE>
                    <STATENAME>Gujarat</STATENAME>
                    <GSTREGISTRATIONTYPE>Unregistered</GSTREGISTRATIONTYPE>
                    <PARTYLEDGERNAME>Local Party [GST Test]</PARTYLEDGERNAME>
                    <BASICBASEPARTYNAME>Local Party [GST Test]</BASICBASEPARTYNAME>
                    <PARTYNAME>Local Party [GST Test]</PARTYNAME>
                    <BASICBUYERNAME>Local Party [GST Test]</BASICBUYERNAME>
                    <BASICORDERTERMS.LIST TYPE="String">
                    </BASICORDERTERMS.LIST>
                    <VATPARTYTRANSRETURNNUMBER>INV-1</VATPARTYTRANSRETURNNUMBER>
                    <VATPARTYTRANSRETURNDATE>01/04/2018</VATPARTYTRANSRETURNDATE>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>Local Party [GST Test]</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>No</ISDEEMEDPOSITIVE>
                        <AMOUNT>11800</AMOUNT>
                        <BILLALLOCATIONS.LIST>
                            <NAME>INV-1</NAME>
                            <BILLTYPE>New Ref</BILLTYPE>
                            <AMOUNT>11800</AMOUNT>
                        </BILLALLOCATIONS.LIST>
                    </LEDGERENTRIES.LIST>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>CGST 9%</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <AMOUNT>-900</AMOUNT>
                    </LEDGERENTRIES.LIST>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>SGST 9%</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <AMOUNT>-900</AMOUNT>
                    </LEDGERENTRIES.LIST>
                    <ALLINVENTORYENTRIES.LIST>
                        <STOCKITEMNAME>U-Pins</STOCKITEMNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <RATE>1/Nos</RATE>
                        <AMOUNT>-10000</AMOUNT>
                        <ACTUALQTY>10000 Nos</ACTUALQTY>
                        <BILLEDQTY>10000 Nos</BILLEDQTY>
                        <ACCOUNTINGALLOCATIONS.LIST>
                            <LEDGERNAME>PURCHASE 18%</LEDGERNAME>
                            <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                            <AMOUNT>-10000</AMOUNT>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Integrated Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Central Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>State Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Cess</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                        </ACCOUNTINGALLOCATIONS.LIST>
                        <BATCHALLOCATIONS.LIST>
                            <GODOWNNAME>Main Location</GODOWNNAME>
                            <DESTINATIONGODOWNNAME>Main Location</DESTINATIONGODOWNNAME>
                            <BATCHNAME>Primary Batch</BATCHNAME>
                            <AMOUNT>-10000</AMOUNT>
                            <ACTUALQTY>10000</ACTUALQTY>
                            <BILLEDQTY>10000</BILLEDQTY>
                        </BATCHALLOCATIONS.LIST>
                    </ALLINVENTORYENTRIES.LIST>
                    <ROWNO>3</ROWNO></VOUCHER>
            </TALLYMESSAGE>
        </REQUESTDATA>
    </IMPORTDATA>
</BODY>

第二次购买条目 - UOM 为 CASE

以 CASE 为计量单位的库存商品的采购条目
(其中 1 CASE = 100 PCS)

<ENVELOPE>
<HEADER>
    <TALLYREQUEST>Import Data</TALLYREQUEST>
</HEADER>
<BODY>
    <IMPORTDATA>
        <REQUESTDESC>
            <REPORTNAME>All Masters</REPORTNAME>
            <STATICVARIABLES>
                <IMPORTDUPS>Modify with new data</IMPORTDUPS>
            </STATICVARIABLES>
        </REQUESTDESC>
        <REQUESTDATA>
            <TALLYMESSAGE xmlns:UDF="TallyUDF">
                <VOUCHER REMOTEID="udi-H6W7QN-1000002-Purchase-43191" VCHTYPE="Purchase" ACTION="CREATE"><ISOPTIONAL>No</ISOPTIONAL><GUID>udi-H6W7QN-1000002-Purchase-43191</GUID>
                    <DATE>01/04/2018</DATE>
                    <EFFECTIVEDATE>01/04/2018</EFFECTIVEDATE>
                    <VOUCHERTYPENAME>Purchase</VOUCHERTYPENAME>
                    <VOUCHERNUMBER>VCH-PURC-2</VOUCHERNUMBER>
                    <REFERENCE>INV-2</REFERENCE>
                    <POSCASHRECEIVED>0</POSCASHRECEIVED>
                    <ISINVOICE>Yes</ISINVOICE>
                    <PERSISTEDVIEW>Invoice Voucher View</PERSISTEDVIEW>
                    <DIFFACTUALQTY>No</DIFFACTUALQTY>
                    <UDF:REFERENCEDATE.LIST DESC="`ReferenceDate`" ISLIST="YES" TYPE="Date">
                        <UDF:REFERENCEDATE DESC="`ReferenceDate`">01/04/2018</UDF:REFERENCEDATE>
                    </UDF:REFERENCEDATE.LIST>
                    <REFERENCEDATE>01/04/2018</REFERENCEDATE>
                    <STATENAME>Gujarat</STATENAME>
                    <GSTREGISTRATIONTYPE>Unregistered</GSTREGISTRATIONTYPE>
                    <PARTYLEDGERNAME>Local Party [GST Test]</PARTYLEDGERNAME>
                    <BASICBASEPARTYNAME>Local Party [GST Test]</BASICBASEPARTYNAME>
                    <PARTYNAME>Local Party [GST Test]</PARTYNAME>
                    <BASICBUYERNAME>Local Party [GST Test]</BASICBUYERNAME>
                    <BASICORDERTERMS.LIST TYPE="String">
                    </BASICORDERTERMS.LIST>
                    <VATPARTYTRANSRETURNNUMBER>INV-2</VATPARTYTRANSRETURNNUMBER>
                    <VATPARTYTRANSRETURNDATE>01/04/2018</VATPARTYTRANSRETURNDATE>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>Local Party [GST Test]</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>No</ISDEEMEDPOSITIVE>
                        <AMOUNT>18880</AMOUNT>
                        <BILLALLOCATIONS.LIST>
                            <NAME>INV-2</NAME>
                            <BILLTYPE>New Ref</BILLTYPE>
                            <AMOUNT>18880</AMOUNT>
                        </BILLALLOCATIONS.LIST>
                    </LEDGERENTRIES.LIST>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>CGST 9%</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <AMOUNT>-1440</AMOUNT>
                    </LEDGERENTRIES.LIST>
                    <LEDGERENTRIES.LIST>
                        <LEDGERNAME>SGST 9%</LEDGERNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <AMOUNT>-1440</AMOUNT>
                    </LEDGERENTRIES.LIST>
                    <ALLINVENTORYENTRIES.LIST>
                        <STOCKITEMNAME>U-Pins</STOCKITEMNAME>
                        <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                        <RATE>80/Case</RATE>
                        <AMOUNT>-16000</AMOUNT>
                        <ACTUALQTY>200 Case</ACTUALQTY>
                        <BILLEDQTY>200 Case</BILLEDQTY>
                        <ACCOUNTINGALLOCATIONS.LIST>
                            <LEDGERNAME>PURCHASE 18%</LEDGERNAME>
                            <ISDEEMEDPOSITIVE>Yes</ISDEEMEDPOSITIVE>
                            <AMOUNT>-16000</AMOUNT>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Integrated Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Central Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>State Tax</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                            <RATEDETAILS.LIST>
                                <GSTRATEDUTYHEAD>Cess</GSTRATEDUTYHEAD>
                                <GSTRATEVALUATIONTYPE>Based on Value</GSTRATEVALUATIONTYPE>
                            </RATEDETAILS.LIST>
                        </ACCOUNTINGALLOCATIONS.LIST>
                        <BATCHALLOCATIONS.LIST>
                            <GODOWNNAME>Main Location</GODOWNNAME>
                            <DESTINATIONGODOWNNAME>Main Location</DESTINATIONGODOWNNAME>
                            <BATCHNAME>Primary Batch</BATCHNAME>
                            <AMOUNT>-16000</AMOUNT>
                            <ACTUALQTY>200</ACTUALQTY>
                            <BILLEDQTY>200</BILLEDQTY>
                        </BATCHALLOCATIONS.LIST>
                    </ALLINVENTORYENTRIES.LIST>
                    <ROWNO>4</ROWNO></VOUCHER>
            </TALLYMESSAGE>
        </REQUESTDATA>
    </IMPORTDATA>
</BODY>

请注意标签 ACTUALQTY 和 BILLEDQTY 必须包含所需的 UOM。

您也可以使用excel文件,直接使用udiMagic在Tally ERP中导入excel数据。 Excel 模板名称:Vouchers-V10-Sales-Purchase-With-Stockitems-Advanced.xls。在 https://www.rtslink.com

阅读更多内容