AutoInvoice Testing for Tax Calculations2

14
AutoInvoice Testing for Tax Calculations Integrated with Taxware (Instance: BMDEVC) Sl .# Scenario Screenshot 1 Item Line with ‘Taxable’ flag = ‘N’. Result: AR Invoice imported as ‘Complete’ with no Tax calculated. INSERT INTO ra_interface_lines_all (interface_line_context, interface_line_attribute1, interface_line_attribute2, amount, batch_source_name, conversion_rate, conversion_type, currency_code, cust_trx_type_id, description, gl_date, line_type, orig_system_bill_address_id, orig_system_bill_customer_id, quantity, unit_selling_price, term_id, taxable_flag, amount_includes_tax_flag, set_of_books_id, org_id) VALUES ('RKT2', 'RKT2 TAX INVOICE 3', 'INVOICE LINE', 1200.00, 'RK Test Batch Source', 1, 'User', 'USD', 1, 'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE', 1127, 4082, 12, 100.00, 1004, ' N', 'N', 2027, 90);

description

aUTO INVOICE

Transcript of AutoInvoice Testing for Tax Calculations2

Page 1: AutoInvoice Testing for Tax Calculations2

AutoInvoice Testing for Tax Calculations

Integrated with Taxware (Instance: BMDEVC)

Sl.#

Scenario Screenshot

1 Item Line with ‘Taxable’ flag = ‘N’.

Result: AR Invoice imported as ‘Complete’ with no Tax calculated.

INSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE 3', 'INVOICE LINE',1200.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE',1127, 4082,12, 100.00,1004, 'N', 'N',2027, 90);

Page 2: AutoInvoice Testing for Tax Calculations2

2 AutoInvoice with ‘Taxable’ Flag = ‘Y’. (no TCC nor tax line entered)

Result: AR Invoice imported as ‘Complete’ with Tax calculated from Taxware.

INSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE 4', 'INVOICE LINE',1300.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE',1127, 4082,13, 100.00,1004, 'Y', 'N',2027, 90);

Page 3: AutoInvoice Testing for Tax Calculations2

3 AutoInvoice with TaxableFlag=’Y’ & with manual Tax LineTransaction Type ‘Default Tax Classfn=N’.

Result: AR Invoice imported as ‘Complete’ with tax line created as per the one entered in the Interface line.

Query to insert ‘Item’LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE 5', 'INVOICE LINE', 1300.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE',1127, 4082,13, 100.00,1004, 'Y', 'N',2027, 90);Query to insert ‘Tax’ Line.INSERT INTO ra_interface_lines_all (interface_line_context, interface_line_attribute1,

Page 4: AutoInvoice Testing for Tax Calculations2

interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id, quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id, tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES ('RKT2', 'RKT2 TAX INVOICE 5', 'TAX LINE ST','RKT2', 'RKT2 TAX INVOICE 5', 'INVOICE LINE', 60.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'State Tax', '28-MAR-2012', 'TAX',1127, 4082, null, null,1004, null, null,2027, 90,'US SALES AND USE', 'STATE', 'STANDARD','STD', 'ST-MA', 5.0);

4 Autoinvoice with ‘Trxn type’s – Default Classification code set to Yes. ‘Taxable Flag’=Y.--Query to insert 'Item' LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE 6', 'INVOICE LINE',1300.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE',1127, 4082,13, 100.00,1004, 'Y', 'N',2027, 90);

Autoinvoice program ‘Errors out’ .

Page 5: AutoInvoice Testing for Tax Calculations2

--Query to insert Tax LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES('RKT2', 'RKT2 TAX INVOICE 6', 'TAX LINE ST','RKT2', 'RKT2 TAX INVOICE 6', 'INVOICE LINE',60.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'State Tax', '28-MAR-2012', 'TAX',1127, 4082,null, null,1004, null, null,2027, 90,'US SALES AND USE', 'STATE', 'STANDARD','STD', 'ST-MA', 5.0);commit; Logfile of the errored request

Page 6: AutoInvoice Testing for Tax Calculations2

5 Autoinvoice with ‘Trxn type’s – Default Tax Classfication set to Yes. ‘Taxable Flag’=N.

Result: AR Invoice imported as ‘Complete’ with Tax calculated from Taxware.

6 Autoinvoice with ‘Trxn type’s –Default Tax classification set to No. Taxable Flag=’Y’. (same as scenario3)

Invoice successfully created with the entered tax line

--Query to insert 'Item' LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE 6', 'INVOICE LINE',1300.00, 'RK Test Batch Source', 1,'User', 'USD', 1,

A)

Page 7: AutoInvoice Testing for Tax Calculations2

'RKT1 TAX INVOICE 2 - ITEM #1', '28-MAR-2012', 'LINE',1127, 4082,13, 100.00,1004, 'Y', 'N',2027, 90);

--Query to insert Tax LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES('RKT2', 'RKT2 TAX INVOICE 6', 'TAX LINE ST','RKT2', 'RKT2 TAX INVOICE 6', 'INVOICE LINE',60.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'State Tax', '28-MAR-2012', 'TAX',1127, 4082,null, null,1004, null, null,2027, 90,'US SALES AND USE', 'STATE', 'STANDARD','STD', 'ST-MA', 5.0);

7 Autoinvoice with ‘Trxn type’s – Default Tax Classfication set to ‘No’. ‘Taxable Flag’=No.

Autoinvoice successfully imported the transactions.

Page 8: AutoInvoice Testing for Tax Calculations2

7

Page 9: AutoInvoice Testing for Tax Calculations2
Page 10: AutoInvoice Testing for Tax Calculations2

8. AutoInvoice with TaxableFlag=’Y’ with manual Tax LinesTransaction Type ‘Default Tax Classfn=’N’.

Result: AR Invoice imported as ‘Complete’ with tax lines created as per the one entered in the Interface line.

--Query to insert 'Item' LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'TAX INVOICE 6', 'INVOICE LINE 6’,1000.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '05-APR-2012', 'LINE',1127, 4082,10, 100.00,1004, 'Y', 'N',2027, 90);

--Query to insert 'State Tax’ lineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES('RKT2', 'TAX INVOICE 7', 'TAX LINE ST','RKT2', 'TAX INVOICE 6', 'INVOICE LINE 6',40.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'State Tax', '05-APR-2012', 'TAX',1127, 4082,

Page 11: AutoInvoice Testing for Tax Calculations2

null, null,1004, null, null,2027, 90,'US SALES AND USE', 'STATE', 'STANDARD','STD', 'ST-AL', 4.0);

--Query to insert 'County Tax’ lineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES('RKT2', 'TAX INVOICE 7', 'TAX LINE COTY','RKT2', 'TAX INVOICE 6', 'INVOICE LINE 6',10.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'County Tax', '05-APR-2012', 'TAX',1127, 4082,null, null,1004, null, null,2027, 90,'US SALES AND USE', 'COUNTY', 'STANDARD','STD', 'CO-AL-MACON', 1.0);

--Query to insert 'City Tax’ lineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_regime_code, tax, tax_status_code,tax_rate_code, tax_jurisdiction_code, tax_rate)VALUES('RKT2', 'TAX INVOICE 7', 'TAX LINE CITY',

Page 12: AutoInvoice Testing for Tax Calculations2

'RKT2', 'TAX INVOICE 6', 'INVOICE LINE 6',10.00, 'RK Test Batch Source', 1,'User', 'USD', 1,'CITY Tax', '05-APR-2012', 'TAX',1127, 4082,null, null,1004, null, null,2027, 90,'US SALES AND USE', 'CITY', 'STANDARD','STD', 'CI-AL-CLAYTON-36016.00', 6.0);

9 AutoInvoice with TaxableFlag=’N’, Transaction Type ‘Default Tax Classfn=’N’Manual Tax Line with only Tax Rate Code information

Result: AR Invoice imported as ‘Complete’ with tax lines created as per the one entered in the Interface line.

--Query to insert 'Item' LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id)VALUES('RKT2', 'RKT2 TAX INVOICE4', 'INVOICE LINE4’,1000.00, 'RK Test Batch Source', 1,'User', 'GBP', 1,'RKT1 TAX INVOICE 2 - ITEM #1', '11-APR-2012', 'LINE',1207, 7082,10, 100.00,1000, 'N', 'N',2021, 83);

--Query to insert 'Item' LineINSERT INTO ra_interface_lines_all(interface_line_context, interface_line_attribute1, interface_line_attribute2,LINK_TO_LINE_CONTEXT, LINK_TO_LINE_ATTRIBUTE1, LINK_TO_LINE_ATTRIBUTE2,amount, batch_source_name, conversion_rate,conversion_type, currency_code, cust_trx_type_id,description, gl_date, line_type,

Page 13: AutoInvoice Testing for Tax Calculations2

orig_system_bill_address_id, orig_system_bill_customer_id,quantity, unit_selling_price,term_id, taxable_flag, amount_includes_tax_flag,set_of_books_id, org_id,tax_rate_code)VALUES('RKT2', 'RKT2 TAX INVOICE5', 'TAX LINE UK5','RKT2', 'RKT2 TAX INVOICE4', 'INVOICE LINE4’,200.00, 'RK Test Batch Source', 1,'User', 'GBP', 1,'UK Tax', '11-APR-2012', 'TAX',1207, 7082,null, null,1000, null, null,2021, 83,'British Output VAT RATE’);