“您无法使用库存帐户类型保存此交易”,完整订单的错误

问题描述

我们正在尝试在Xero上推送完整的采购订单,但是如果出现以下错误,请您帮助我们进行排序。

Body => {
             :type => "ACCPAY",:status => "AUTHORISED",:currency_code => "SGD",:reference => "1256475c-4fcd-485b-a58f-9ed13ff8343d",:sent_to_contact => false,:date => Wed,30 Sep 2020 17:39:44 +08 +08:00,:due_date => Fri,30 Oct 2020 17:39:44 +08 +08:00,:line_amount_types => "Exclusive",:contact => {

    :contact_id => "a8effd11-7382-48ab-9fa4-ed0fcb8ed71b"

},:invoice_number => "ACC01",:line_items => [

    [0] {

           :item_code => "A666323847463",:description => "Kits of watch",:unit_amount => 15.76,:account_code => "630",:quantity => 900

    },[1] {

           :item_code => "Tata-Tigo-1",:description => "Tata-Tigo",:unit_amount => 61.01,:quantity => 1800

    }

]

}

action => xero_bill = xero.Invoice.build(body).save!

Response =>“您不能使用库存帐户类型保存此交易”

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)