Send "Total Vat Amount" with Invoice and Description from my database to Xero account - put

I am using "Invoice PUT method" to store invoice details from server to Xero account.
Is there any way to import "Total Vat Amount" with Invoice and Description?
Because some of my old invoice are not include Vat amount.
I have found a tag "TaxAmount". Is it same as Vat amount? If yes, then how can I use "TaxAmount" in Invoice PUT method.
Thanks.

Yes, VAT is equal to tax.
In Xero API, TotalTax is a read-only value thus cannot be used with PUT. However, you can use TaxAmount to insert the tax calculation.
Notes:
TaxAmount is normally used to insert your own tax calculation. If the TaxAmount is not used, Xero will automatically calculates its value from the default tax rate of the nominal/account code.
Xero calculates taxes for each line item(s). Thus if your invoice only a single line item, the TaxAmount = TotalTax

Related

How to create invoice in a different currency

In Dolibarr, I have set the default currency to US Dollars. When I create a new invoice, the currency of the invoice will be in the default currency. Is there a way to change the currency for a single invoice? I want to create one invoice where the amounts are in Euros instead of US Dollars.
Dolibarr version: 15.0.3

How to get details (unit, quantity, price) from XTRF customer invoice API?

We are using the Customer Invoice Api, but we can'n get the details of the jobs, as unit, quantity and price. Only the "totalAgreed", that is the amount already calculated (quantity * price) of the job. How can we recovery this information?
Project.json and invoice.json do not brint this information.
You can use the Browser API from XTRF. This way, you first create a view within XTRF where all the information is present. Then you execute the Browser API with the Customer Invoice ID as a filter.

QBXML Item Sales Tax vs VAT

Hi I'm having an infuriating problem with QuickBooks UK. I am doing an InvoidceAddRq and sending ItemSalesTaxRef:FullName. I have "EGS" in my Item List as a VAT item. I also have EGS in my VAT code list after creating an item for testing. I cannot get it to post as it says:
'There is an invalid reference to QuickBooks Item Sales Tax "EGS" in the Invoice.
QuickBooks UK doesn't use Sales Tax - it uses VAT - nowhere can I find to enter a Sales Tax other than VAT. What do I need to do here to get my invoice posting?
Use the below sample code for sales tax
<SalesTaxCodeRef>
<FullName>Standard Sales</FullName>
</SalesTaxCodeRef>
For non-US versions of QuickBooks for Windows, you do not use ItemSalesTaxRef at all.
Instead, you just use SalesTaxCodeRef.
You should be specifying SalesTaxCodeRef for every single line item. Do not specify ItemSalesTaxRef at all.

How to sum up different currencies in Rails app?

I am currently building a Ruby on Rails invoicing application that is multilingual and supports a range of currencies. In the dashboard view all invoices a user has produced are totalled.
Now it would be nice if a user could choose the currency for each invoice.
But how can those invoices be totalled if different currencies are used?
E.g. if these three invoices were created today:
Invoice No. 1: $1000.00
Invoice No. 2: $2000.00
Invoice No. 3: €1000.00
Total: $4333.60
----------------------
The dollar-euro exchange rate would have to be based on each invoice's date of course.
How can this be achieved in Rails and does it even make sense?
Thanks for any pointers.
The sum of of multiple invoices using different currencies is not a single number, it's a collection of numbers. If you have a 20 USD invoice, a 15 EUR invoice, and a 20 EUR invoice, the sum is "20 USD + 35 EUR".
At the time when a payment is made from a single account using a single base currency, then a conversion will be performed to determine how much will have to be paid in that currency to cover the total converted costs. Presumably, there will also be currency conversion fees added at that time.
It would be convenient if you change the currency to a single one, either euro or dollar right when the user makes an invoice. That is, you save the 'converted' value in your database. In this way you won't have to lookup for past day rates.
Eu_central_bank provides exchange rates.

QuickBooks adding sales tax adjustments using QBFC

I am trying to add a sales tax adjustment to QuickBooks using QBFC but I cannot figure out how to accomplish this. Any ideas would be appreciated. In order to do this in QuickBooks you need to right click on a tax code and then select "Adjust Sales Tax Due"
Sales tax adjustments are journal entries, so you would use the JournalEntryAdd message to create one. In order to understand how to set up a tax adjustment: first, create a tax adjustment, then take a look at the journal entry you created by going to Company -> Make General Journal Entry, then set the List of Selected Journal Entries selector to "This Month". You should see the tax adjustment in the list. You can highlight it to see the debit and credit that was created by the adjustment, as well as the tax vendor assignment.

Resources