0

保存销售收据时出错。QuickBooks 错误消息:交易金额必须为正数。

当我将此 xml 提交到我的 quickbooks 网络连接器时,它会抛出上述错误。交易金额是多少,它在 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>
4

1 回答 1

-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>
于 2013-11-15T03:23:38.853 回答