How do I apply a tax to an invoice? - xero-api

I want to apply a tax (say 14%) to an entire invoice. Applying it on per-lineitem basis would also be okay.
Based on Xero's description of a Tax Rates, it looks like I should create a Tax Rate of 14%, and associate the line items with that rate. But I'm only permitted to associate the line items with a Tax Type.
How do I set the taxes on an invoice?

Create a tax rate for your required percentage; a tax type is generated and returned in the response from this request. You can then use this tax type in each line item on your invoice.

Related

Give different discounts for each product on Stripe Checkout

I'm trying to give different discounts "20% Off" and "10% Off" for each product "T-shirt" and "Shoes" respectively on Stripe Checkout but I could only find "discounts" parameter which will give only one same discount to all products:
Are there any ways to give different discounts for each product on Stripe Checkout?
When creating a Checkout Session you can only set a maximum of one coupon. So it won't be possible to apply a 20% discount for one product and a 30% discount for another product.
One workaround could be to:
Compute on your end the total amount to discount, for example $20
Dynamically create a coupon for $20
Then pass that coupon when creating the Checkout Session

Incorrect multicurrency Invoice - Odoo 15

I have multicurrency setup in odoo 15. I create the invoices in my local currency and i expect it to be converted into its dollar equivalent when I view the invoice in the invoice dashboard. Unfortunately it doesnt happen like that. When I create the invoice in my local currency, say a total amount of 5000, same amount appears in the invoice dashboard as $5000 but i expect it to be converted to its dollar equivalent i.e: $666.7
Why does this happen and is there a way i could get this resolved ?
Is the currency conversion rate configured?
Configure the currency rates in Configuration ‣ Currencies.
Refer the documentation: https://www.odoo.com/documentation/15.0/applications/finance/accounting/others/multicurrencies/exchange.html
Incase you have already configured the currency rate, check the date in currency conversion panel, there should be an entry on/before your invoice date.

The formula for a function of output prices

This function displays the price in the front.
{$product.price_amount}">{$product.price}
How do I add a formula to this function that will allow me to output the result with a discount?
For example, the amount currently displayed is 1000 $
It is necessary that the amount is displayed with the deduction of a discount of 7% of this price.
And displayed 930 $
On a template level, it's not the best way to define the calculation logic for price.
Rather create catalog price rules from Prestashop Admin.
http://doc.prestashop.com/display/PS17/Catalog+Price+Rules

Amadeus - Command Cryptic - get taxes in country/city

i'm trying to get informations about tax in specific country/city.
I need this because in availability from Amadeus i have price with tax or price without tax never together. Need to know what is net price. So i'm trying to get info about tax in city/country and calculate that on price with tax.
This is my query:
<Command_Cryptic>
<messageAction>
<messageFunctionDetails>
<messageFunction>M</messageFunction>
</messageFunctionDetails>
</messageAction>
<longTextString>
<textStringDetails>FQNTAX/STO</textStringDetails>
</longTextString>
</Command_Cryptic>
But this returns 39 pages :) maybe there is some option to get only hotel taxes with value ? or maybe somehow i can get this in easier way (need net price of reservation) ?

Bigcommerce Coupon creation redeem per customer not working

I am trying to create a coupon code with the following customer uses settings.
code can be used by unlimited number of customers. setting it to 0.
max uses per customer is set to 1.
With this settings first customer who is applying the code can redeem it fine but other customers always sees code is expired though expiry is set to one year later.
how can i make this type of coupon code working in bigcommerce?
Go to Marketing › Coupon Codes. Your existing and sample coupon codes will be displayed.
Click Create a coupon code.
Fill out the coupon code details:
Coupon code - the code entered at checkout e.g. FREESHIPPING
Coupon name - the name of the coupon (for reference) e.g. Free Shipping over $50
Discount type - choose from the options provided
Dollar amount off the order total
Dollar amount off each item in the order
Percentage off each item in the order
Dollar amount off the shipping total
Free shipping
Discount Amount - the percentage or dollar amount to take off (for all discount types except free shipping)
Minimum Purhcase optional - the minimum amount a customer must spend in one order to be able to apply the coupon
Number of uses - use this to limit how many types the coupon can be used
Limit total number of uses limits how many times a coupon can be used at all in your store
Limit number of uses per customer limits how many times a single customer (based on email address) can use the coupon
Enabled - check this for the coupon code to work in your store. Uncheck to keep the coupon settings saved but not enable it.
Expiry Date optional - after this date, the coupon will be disabled automatically
Select which categories or products to limit your coupon to. If you do not want to limit it, select All Categories from the category list.
Limit to specific categories - select This coupon code can be used with these categories
Limit to specific products - select This coupon code can be used with these products, then click Add a Product and navigate to your products
Choose any advanced settings if desired, then save your changes.