我想将信用卡类型添加到销售收据中,但是,我看不到SR上的信用卡信息。这是我的代码:
//Set Payment Detail in Header
Intuit.Ipp.Data.Qbo.PaymentDetail qboSalesReceiptHeaderPaymentDetail = new Intuit.Ipp.Data.Qbo.PaymentDetail();
CreditCardPayment cc = new CreditCardPayment();
cc.CreditChargeInfo = new CreditChargeInfo();
//to do another credit card type
cc.CreditChargeInfo.Type = CreditCardTypeEnum.OtherCreditCard;
cc.CreditChargeInfo.TypeSpecified = true;
qboSalesReceiptHeaderPaymentDetail.Item = cc;
//qboSalesReceiptHeaderPaymentDetail.Item = new CashPayment { Desc = "Cash Payment Ref #" };
qboSalesReceiptHeader.Detail = qboSalesReceiptHeaderPaymentDetail;
//Set Header
qboSalesReceipt.Header = qboSalesReceiptHeader;
答案 0 :(得分:2)
如果您参考documentation,您会发现有一个名为
的字段PaymentMethodId
PaymentMethodId应引用QuickBooks中Payment Methods之一的Id值。
e.g。它本身不是“信用卡类型”,它是您要指定的“付款方式”(其中一种可能是特定的信用卡类型)。