保存SalesReceipt时出错。 QuickBooks错误 消息:交易金额必须为正。
当我将这个xml提交给我的quickbooks webconnector时,它会抛出上述错误。什么是交易金额以及xml中的位置?
<?xml version="1.0" encoding="utf-16"?>
<?qbxml version="12.0"?>
<QBXML>
<QBXMLMsgsRq onError="stopOnError">
<SalesReceiptAddRq requestID="1">
<SalesReceiptAdd>
<CustomerRef>
<FullName>Daily Sales Summary</FullName>
</CustomerRef>
<TemplateRef>
<FullName>Custom Sales Receipt</FullName>
</TemplateRef>
<SalesReceiptLineAdd>
<ItemRef>
<FullName>Food</FullName>
</ItemRef>
<Desc>Total Food Sales</Desc>
<Amount>50.00</Amount>
</SalesReceiptLineAdd>
</SalesReceiptAdd>
</SalesReceiptAddRq>
</QBXMLMsgsRq>
</QBXML>
答案 0 :(得分:-1)
需要SalesReceiptLineAdd项目
类似的东西:
<SalesReceiptAddRq requestID="2"><SalesReceiptAdd><CustomerRef><FullName>Dang Dinh*</FullName></CustomerRef><TxnDate>2013-11-15</TxnDate><CheckNumber/><PaymentMethodRef><FullName>Check</FullName></PaymentMethodRef><Memo>Test</Memo><IsToBePrinted>False</IsToBePrinted<SalesReceiptLineAdd><ItemRef><FullName>Sales</FullName></ItemRef><Desc>Test</Desc><Quantity>1</Quantity><Rate>1</Rate></SalesReceiptLineAdd></SalesReceiptAdd></SalesReceiptAddRq>