添加付款到销售收据

时间:2013-01-12 17:27:22

标签: intuit-partner-platform quickbooks-online

我想将信用卡类型添加到销售收据中,但是,我看不到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;

Payment Method

1 个答案:

答案 0 :(得分:2)

如果您参考documentation,您会发现有一个名为

的字段
PaymentMethodId

PaymentMethodId应引用QuickBooks中Payment Methods之一的Id值。

e.g。它本身不是“信用卡类型”,它是您要指定的“付款方式”(其中一种可能是特定的信用卡类型)。