Hi,
I was able to add the Taxes by sending “taxes”:[] array into the object.
But however, I want to add taxes with Tax Template. For the same, if I am doing “taxes_and_charges”: “POS Taxes” where POS Taxes is the tax template, the tax is not getting calculated.
eg. The below object adds the taxes. But the Tax Template doesnt patch up with the invoice doc-
{
“cash_bank_account”: “Cash”,
“is_pos”: “1”,
“taxes_and_charges”: “POS Taxes”,
“party_account_currency”: “INR”,
“owner”: “xxx”,
“price_list_currency”: “INR”,
“mode_of_payment”: “Cash”,
“fiscal_year”: “2016-2017”,
“customer”: “Retail Customer - From App”,
“update_stock”: “1”,
“company”: “XXX LLP”,
“territory”: “xxx”,
“is_opening”: “No”,
“naming_series”: “R.#####”,
“currency”: “INR”,
“debit_to”: “Debtors”,
“remarks”: “POS - 999999999”,
“posting_date”: “2016-04-03”,
“selling_price_list”: “Walk In”,
“items”:[{
“item_code”: “Paintballs - 100”,
“qty”: “1”,
“owner”: “xxx”,
“parenttype”: “Sales Invoice”,
“parentfield”: “items”
},{
“item_code”: “1201 il Donatello”,
“qty”: “1”,
“owner”: “xxx”,
“parenttype”: “Sales Invoice”,
“parentfield”: “items”
}],
“taxes”: [{
“charge_type”: “On Net Total”,
“description”: “VAT 4%
”,
“parenttype”: “Sales Invoice”,
“account_head”: “VAT 4%”,
“parentfield”: “taxes”
},
{
“charge_type”: “On Net Total”,
“description”: “Addl. VAT 1%
”,
“parenttype”: “Sales Invoice”,
“account_head”: “VAT (Addl)”,
“parentfield”: “taxes”
},
{
“charge_type”: “On Net Total”,
“description”: “Service Tax 14%
”,
“parenttype”: “Sales Invoice”,
“account_head”: “Service Tax”,
“parentfield”: “taxes”
},
{
“charge_type”: “On Net Total”,
“description”: “Swachh Bharat Cess 0.5%
”,
“parenttype”: “Sales Invoice”,
“account_head”: “Swachh Bharat Cess”,
“parentfield”: “taxes”
}]
}