This automation recovers discounts from combined LeafLink orders—which are lost during merging—and adds them as discount line items in QuickBooks. It works by fetching the QuickBooks invoice from the current URL and using its "Tracking no." to locate the corresponding order in LeafLink. If the order is combined, it also retrieves all related component orders. The system then matches each brand to its corresponding Discount Item in QuickBooks and adds the appropriate discount amounts to the invoice.
When adding a new brand, enter the brand's LeafLink ID as the SKU on the corresponding discount item in QuickBooks.
Installation & Usage