Map shopping cart line item ID with Xero invoice line item id - xero-api

We have a web application that has a Shopping cart and payment processing functionality. We add items to the shopping cart and once the payment is processed successfully, we record the payment transaction in Xero. Following steps are performed to record the transaction in Xero:
Create and Invoice
Add all the items from the shopping cart into the Xero invoice
Invoke the create Xero invoice API
Xero invoice with all the line items is created successfully
Now, I would like to store the Xero invoice line item ID in Shopping cart line item.
How do I map the item in shopping cart with the line item in Xero invoice? e.g. the 5th item in shopping corresponds to the 2nd item in Xero invoice.
Is there a way to set custom fields while creating Xero invoice line items?

Related

Enable Voucher in Product Page and Display Quantity Selected Price

I am trying to check if it is possible to have the following in Shopify :
Enable Voucher in product page - Customers will insert a voucher to display a reduced price
Each product can have a separate voucher
Upon the insertion of voucher, it will display a slashed price in
product page
The product page will display the total price for quantities selected
The products will be reflected with discounted price in cart/checkout page
Additionally, the prices should be displayed before customer adds it to cart. I have several apps but it does not meet the requirement. Hoping if anyone can assist further.

How to make a payment for each product in an invoice in Odoo

I have an invoice with 2 products (product A and B), I need to do a payment only for the product A, is there any way to do that ?, and after see the product A with the correct moves in the accounting.
I know how to do the change in code but will be better if Odoo has this functionality
Thanks a lot
That can be done if you shipped all products separately and keep
invoice policy based on shipment. Then you can create separate invoice
for each products.
While you click on Create Invoice button in sales order then it will create invoice for eligible shipments with it's all delivered products.
So your purpose will be resolved by just change the configuration other there is no more option in odoo you have to write code to achieve it.

how to retrieve the bill list from xero api

I am working on xero-api and have successfully retrieved the invoice, contact and payment from the api. But am unable to list out the list out bills from the api.
Bills are also retrieved from the Invoices endpoint so you might be already retrieving them. Bills have a Type of ACCPAY and sales invoices have a type of ACCREC.
So you could make a request like GET /Invoices?where=Type=="ACCPAY" to retrieve only the Bills.

The invoice don't change to paid

I'm using odoo 8
I can create Invoices, and Validate.
I can register a payment, but, even if i register a payment with the value of the invoice.
The invoice don't change to paid.

Force specific price in cart

In certain conditions, I would like to force a specific price for a given product in a cart in Prestashop ?
How can I interact with the customer's cart and give him a product discount programmatically ?
Assign specific price to certain customers group
Add customer to this group
or
Generate on the fly certain cart rule (coupon code) and assign it to the cart