Specify purchase_rate on line_items which aren't from Items

Specify purchase_rate on line_items which aren't from Items

Hi,

I'm creating repair invoices with API with line items which aren't in Items. They're computer parts I get from a supplier's API, and it's literally thousands of them, so I'm just adding them ad-hoc, with just SKU, name, description, tax id and rate.

Recently, the accounts asked for a report which would show purchase_rate for the items. I see that the parameter is there, with no value, when I GET the invoice, but so far I didn't find a way to save it.

Could someone please confirm it's a read-only field loaded from Items via item_id?

I see two other ways to achieve what I need:
  1. adding an Items custom field shown in transactions but hidden in PDF. This is not very convenient as these repair invoices are just a part of our business.
  2. always create an Item, or search if exists, then use it via item_id. This is ultimately a correct solution, but also much more complicated, with higher API counts/waits needed for an invoice creation.

    Zoho Developer Community






                              Zoho Desk Resources

                              • Desk Community Learning Series


                              • Digest


                              • Functions


                              • Meetups


                              • Kbase


                              • Resources


                              • Glossary


                              • Desk Marketplace


                              • MVP Corner


                              • Word of the Day



                                  Zoho Marketing Automation
                                      • Topic Participants

                                      • josef



                                          Manage your brands on social media



                                                Zoho TeamInbox Resources

                                                  Zoho DataPrep Resources



                                                    Zoho CRM Plus Resources

                                                      Zoho Books Resources


                                                        Zoho Subscriptions Resources

                                                          Zoho Projects Resources


                                                            Zoho Sprints Resources


                                                              Qntrl Resources


                                                                Zoho Creator Resources


                                                                  Zoho WorkDrive Resources



                                                                    Zoho Campaigns Resources



                                                                      Zoho CRM Resources

                                                                      • CRM Community Learning Series

                                                                        CRM Community Learning Series


                                                                      • Tips

                                                                        Tips

                                                                      • Functions

                                                                        Functions

                                                                      • Meetups

                                                                        Meetups

                                                                      • Kbase

                                                                        Kbase

                                                                      • Resources

                                                                        Resources

                                                                      • Digest

                                                                        Digest

                                                                      • CRM Marketplace

                                                                        CRM Marketplace

                                                                      • MVP Corner

                                                                        MVP Corner

                                                                      





                                                                      




                                                                          Design. Discuss. Deliver.

                                                                          Create visually engaging stories with Zoho Show.

                                                                          Get Started Now