备用单位将Excel导入理货

时间:2018-11-26 13:22:20

标签: excel xml tally

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

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

此处,UOM(度量单位)不同,并且在Tally中定义了替代单位。

1 个答案:

答案 0 :(得分:0)

要将具有备用单位的购买条目导入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个案例= 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

中了解更多信息