From 4a8b6ca62efaf189970b0bee3e2fdb162da969c9 Mon Sep 17 00:00:00 2001 From: "Nicolas Viseur (vin)" Date: Tue, 19 Dec 2023 08:49:08 +0800 Subject: [PATCH] [ADD] l10n_ph: tax_report Adds the tax report, associated tax grids along with new taxes, required in order to generate a tax report as well as a SLS/P report Task id # 3211351 and 3468278 closes odoo/odoo#150619 Related: odoo/enterprise#54908 Signed-off-by: Florian Gilbert (flg) --- addons/l10n_ph/__manifest__.py | 4 +- .../l10n_ph/data/account_account_tag_data.xml | 26 + .../l10n_ph/data/account_tax_report_data.xml | 553 ++++++++++++++++++ .../l10n_ph/data/template/account.tax-ph.csv | 274 +++++---- .../data/template/account.tax.group-ph.csv | 1 + .../1.1/post-migrate_update_taxes.py | 8 + 6 files changed, 744 insertions(+), 122 deletions(-) create mode 100644 addons/l10n_ph/data/account_account_tag_data.xml create mode 100644 addons/l10n_ph/data/account_tax_report_data.xml create mode 100644 addons/l10n_ph/migrations/1.1/post-migrate_update_taxes.py diff --git a/addons/l10n_ph/__manifest__.py b/addons/l10n_ph/__manifest__.py index 2bb3f607282..ae94b929625 100644 --- a/addons/l10n_ph/__manifest__.py +++ b/addons/l10n_ph/__manifest__.py @@ -5,7 +5,7 @@ 'countries': ['ph'], 'summary': "This is the module to manage the accounting chart for The Philippines.", 'category': 'Accounting/Localizations/Account Charts', - 'version': '1.0', + 'version': '1.1', 'author': 'Odoo PS', 'website': 'https://www.odoo.com/documentation/17.0/applications/finance/fiscal_localizations/philippines.html', 'depends': [ @@ -13,6 +13,8 @@ 'base_vat', ], 'data': [ + 'data/account_account_tag_data.xml', + 'data/account_tax_report_data.xml', 'wizard/generate_2307_wizard_views.xml', 'views/account_move_views.xml', 'views/account_payment_views.xml', diff --git a/addons/l10n_ph/data/account_account_tag_data.xml b/addons/l10n_ph/data/account_account_tag_data.xml new file mode 100644 index 00000000000..e08be070ce4 --- /dev/null +++ b/addons/l10n_ph/data/account_account_tag_data.xml @@ -0,0 +1,26 @@ + + + + + +CAPA + taxes + + + + -CAPA + taxes + True + + + + +CAPB + taxes + + + + -CAPB + taxes + True + + + diff --git a/addons/l10n_ph/data/account_tax_report_data.xml b/addons/l10n_ph/data/account_tax_report_data.xml new file mode 100644 index 00000000000..12119e77960 --- /dev/null +++ b/addons/l10n_ph/data/account_tax_report_data.xml @@ -0,0 +1,553 @@ + + + + 2550Q + + + + country + + + Tax base + tax_base + + + Balance + balance + + + + + Tax Payable + 0 + + + 15 Net VAT Payable(Excess Input Tax) + 15 + 1 + 56.balance + + + 16 Creditable VAT Withheld + 16 + 1 + + + balance + tax_tags + 16B + + + + + 17 Advance VAT Payments + 17 + 1 + + + balance + tax_tags + 17B + + + + + 18 VAT paid in return previously filed, if this is an amended return + 18 + 1 + + + balance + tax_tags + 18B + + + + + 19 Other Credits/Payment + 19 + 1 + + + balance + tax_tags + 19B + + + + + 20 Total Tax Credits/Payment + 20 + 1 + 16.balance + 17.balance + 18.balance + 19.balance + + + 21 Tax Still Payable/(Excess Credits) + 21 + 1 + 15.balance - 20.balance + + + Add: Penalties + 1 + + + 22 Surcharge + 22 + 2 + + + balance + tax_tags + 22B + + + + + 23 Interest + 23 + 2 + + + balance + tax_tags + 23B + + + + + 24 Compromise + 24 + 2 + + + balance + tax_tags + 24B + + + + + 25 Total Penalties + 25 + 2 + 1 + 22.balance + 23.balance + 24.balance + + + + + 26 Total Amount Payable + 26 + 1 + 21.balance + 25.balance + + + + + Details of VAT Computation + 0 + + + 31 VATable-sales to Private individuals/Corporations + 31 + 1 + + + tax_base + tax_tags + 31A + + + balance + tax_tags + 31B + + + + + 32 VATable-sales to Government + 32 + 1 + + + tax_base + tax_tags + 32A + + + balance + tax_tags + 32B + + + + + 33 Zero-Rated Sales + 33 + 1 + + + tax_base + tax_tags + 33A + + + + + 34 Exempt Sales + 34 + 1 + + + tax_base + tax_tags + 34A + + + + + 35 Total Sales & Output Tax Due + 35 + 1 + + + tax_base + aggregation + 31.tax_base + 32.tax_base + 33.tax_base + 34.tax_base + + + balance + aggregation + 31.balance + 32.balance + + + + + 36 Input Tax Carried Over from Previous Quarter + 36 + 1 + + + balance + tax_tags + 36B + + + + + 37 Input Tax Deferred on Capital Goods Exceeding P1 Million from Previous Quarter + 37 + 1 + + + balance + tax_tags + 37B + + + + + 38 Transitional Input Tax + 38 + 1 + + + balance + tax_tags + 38B + + + + + 39 Presumptive Input Tax + 39 + 1 + + + balance + tax_tags + 39B + + + + + 40 Others + 40 + 1 + + + balance + tax_tags + 40B + + + + + 41 Total + 41 + 1 + + + balance + aggregation + 36.balance + 37.balance + 38.balance + 39.balance + 40.balance + + + + + 42 Domestic Purchases + 42 + 1 + + + + _vat_base + tax_tags + 42A + + + _vat_balance + tax_tags + 42B + + + + _service_base + tax_tags + 42SA + + + _service_balance + tax_tags + 42SB + + + + _capital_base + tax_tags + CAPA + + + _capital_balance + tax_tags + CAPB + + + + tax_base + aggregation + 42._vat_base + 42._service_base + 42._capital_base + + + balance + aggregation + 42._vat_balance + 42._service_balance + 42._capital_balance + + + + + 43 Services Rendered by Non-residents + 43 + 1 + + + tax_base + tax_tags + 43A + + + balance + tax_tags + 43B + + + + + 44 Importations + 44 + 1 + + + tax_base + tax_tags + 44A + + + balance + tax_tags + 44B + + + + + 45 Others + 45 + 1 + + + tax_base + tax_tags + 45A + + + balance + tax_tags + 45B + + + + + 46 Domestic Purchase with No Input Tax + 46 + 1 + + + + _exempt_base + tax_tags + 46E + + + _zr_base + tax_tags + 46ZR + + + + tax_base + aggregation + 46._exempt_base + 46._zr_base + + + + + 47 VAT-Exempt Importations + 47 + 1 + + + tax_base + tax_tags + 47A + + + + + 48 Total Current Purchase/Input Tax + 48 + 1 + + + tax_base + aggregation + 42.tax_base + 43.tax_base + 44.tax_base + 45.tax_base + 46.tax_base + 47.tax_base + + + balance + aggregation + 42.balance + 43.balance + 44.balance + 45.balance + + + + + 49 Total Available Input Tax + 49 + 1 + + + balance + aggregation + 41.balance + 48.balance + + + + + 50 Input Tax on Purchases/Importation of Capital Goods exceeding P1 Million deferred for the succeeding period + 50 + 1 + + + balance + tax_tags + 50B + + + + + 51 Input Tax Attributable to VAT Exempt Sales + 51 + 1 + + + balance + tax_tags + 51B + + + + + 52 VAT refund/TCC claimed + 52 + 1 + + + balance + tax_tags + 52B + + + + + 53 Others + 53 + 1 + + + balance + tax_tags + 53B + + + + + 54 Total Deductions from Input Tax + 54 + 1 + + + balance + aggregation + 50.balance + 51.balance + 52.balance + 53.balance + + + + + 55 Total Allowable Input Tax + 55 + 1 + + + balance + aggregation + 49.balance - 54.balance + + + + + 56 Net VAT Payable/(Excess Input Tax) + 56 + 1 + + + balance + aggregation + 35.balance - 55.balance + + + + + + + + diff --git a/addons/l10n_ph/data/template/account.tax-ph.csv b/addons/l10n_ph/data/template/account.tax-ph.csv index 2a07fbfdd9e..9e08a3b060b 100644 --- a/addons/l10n_ph/data/template/account.tax-ph.csv +++ b/addons/l10n_ph/data/template/account.tax-ph.csv @@ -1,121 +1,153 @@ -"id","sequence","name","description","invoice_label","type_tax_use","amount","amount_type","tax_group_id","l10n_ph_atc","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id" -"l10n_ph_tax_sale_vat_12","10","12%","","12% VAT","sale","12.0","percent","l10n_ph_tax_group_vat_12","","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200300" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200300" -"l10n_ph_tax_sale_vat_exempt","10","0% EXEMPT","","VAT Exempt","sale","0.0","percent","l10n_ph_tax_group_vat_exempt","","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200300" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200300" -"l10n_ph_tax_purchase_vat_12","20","12%","","12% VAT","purchase","12.0","percent","l10n_ph_tax_group_vat_12","","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_110201" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_110201" -"l10n_ph_tax_purchase_vat_exempt","20","0% EXEMPT","","VAT Exempt","purchase","0.0","percent","l10n_ph_tax_group_vat_exempt","","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_110201" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_110201" -"l10n_ph_tax_purchase_wi010","30","5% P F","5% WI010 - Prof Fees","Prof Fees","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WI010","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi011","30","10% WI P F","10% WI011 - Prof Fees","Prof Fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WI011","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi100","40","5% WI G R","5% WI100 - Gross rental of property","Gross rental of property","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WI100","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi120","50","2% WI Cont","2% WI120 - Contractors","Contractors","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WI120","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi139","60","5% Com S","5% WI139 - Commission of service fees","Commission of service fees","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WI139","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi140","60","10% Com S","10% WI139 - Commission of service fees","Commission of service fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WI140","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi158_p5","70","0.5% WI C C","0.5% WI158 - Credit card companies","Credit card companies","purchase","-0.5","percent","l10n_ph_tax_group_wht_p5","WI158","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi640","80","1% WI640 Sup G","1% WI640 - Supplier of goods","Supplier of goods","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","WI640","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi157","80","2% WI Sup S","2% WI157 - Supplier of services","Supplier of services","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WI157","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi158_1","90","1% WI158 Sup G","1% WI158 - Supplier of goods by top w/holding agents","Supplier of goods by top w/holding agents","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","WI158","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi160","90","2% WI Sup G","2% WI160 - Supplier of goods by top w/holding agents","Supplier of goods by top w/holding agents","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WI160","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi515","100","5% WI C","5% WI515 - Commission, rebates, discounts","Commission, rebates, discounts","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WI515","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wi516","100","10% WI C","10% WI516 - Commission, rebates, discounts","Commission, rebates, discounts","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WI516","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc010","110","10% WC P F","10% WC010 - Prof Fees","Prof Fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WC010","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc011","110","15% P F","15% WC011 - Prof Fees","Prof Fees","purchase","-15.0","percent","l10n_ph_tax_group_wht_15","WC011","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc100","120","5% WC G R","5% WC100 - Gross rental of property","Gross rental of property","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WC100","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc120","130","2% WC Cont","2% WC120 - Contractors","Contractors","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WC120","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc139","140","10% WC139 C","10% WC139 - Commission of service fees","Commission of service fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WC139","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc140","140","15% C","15% WC140 - Commission of service fees","Commission of service fees","purchase","-15.0","percent","l10n_ph_tax_group_wht_15","WC140","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc158_p5","150","0.5% WC C C","0.5% WC158 - Credit card companies","Credit card companies","purchase","-0.5","percent","l10n_ph_tax_group_wht_p5","WC158","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc640","160","1% WC640 Sup G","1% WC640 - Supplier of goods","Supplier of goods","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","WC640","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc157","160","2% WC Sup S","2% WC157 - Supplier of services","Supplier of services","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WC157","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc158_1","170","1% WC158 Sup G","1% WC158 - Supplier of goods by top w/holding agents","Supplier of goods by top w/holding agents","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","WC158","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc160","170","2% WC Sup G","2% WC160 - Supplier of goods by top w/holding agents","Supplier of goods by top w/holding agents","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","WC160","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc515","180","5% WC C","5% WC515 - Commission, rebates, discounts","Commission, rebates, discounts","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","WC515","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" -"l10n_ph_tax_purchase_wc516","180","10% WC516 C","10% WC516 - Commission, rebates, discounts","Commission, rebates, discounts","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","WC516","100","base","invoice","" -"","","","","","","","","","","100","tax","invoice","l10n_ph_200303" -"","","","","","","","","","","100","base","refund","" -"","","","","","","","","","","100","tax","refund","l10n_ph_200303" +"id","sequence","name","description","active","invoice_label","type_tax_use","amount","amount_type","tax_group_id","tax_scope","l10n_ph_atc","repartition_line_ids/factor_percent","repartition_line_ids/repartition_type","repartition_line_ids/document_type","repartition_line_ids/account_id","repartition_line_ids/tag_ids" +"l10n_ph_tax_sale_vat_12","10","12%","","True","12% VAT","sale","12.0","percent",l10n_ph_tax_group_vat_12,"","",100,"base","invoice","","+31A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200300","+31B" +"","","","","","","","","","","","","100","base","refund","","-31A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200300","-31B" +"l10n_ph_tax_sale_vat_exempt","10","0% EXEMPT","","True","VAT Exempt","sale","0.0","percent","l10n_ph_tax_group_vat_exempt","","","100","base","invoice","","+34A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200300","" +"","","","","","","","","","","","","100","base","refund","","-34A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200300","" +"l10n_ph_tax_sale_vat_zero_rated","10","0% ZR","","True","Zero Rated","sale","0.0","percent","l10n_ph_tax_group_vat_exempt","","","100","base","invoice","","+33A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200300","" +"","","","","","","","","","","","","100","base","refund","","-33A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200300","" +"l10n_ph_tax_sale_vat_12_gov","10","12% GOV","","False","12% GOV","sale","12.0","percent","l10n_ph_tax_group_vat_12","","","100","base","invoice","","+32A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200300","+32B" +"","","","","","","","","","","","","100","base","refund","","-32A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200300","-32B" +"l10n_ph_tax_purchase_vat_12","20","12%","","True","12% VAT","purchase","12.0","percent","l10n_ph_tax_group_vat_12","","","100","base","invoice","","+42A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","+42B" +"","","","","","","","","","","","","100","base","refund","","-42A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","-42B" +"l10n_ph_tax_purchase_vat_12_service","20","12% S","","True","12% Services","purchase","12.0","percent","l10n_ph_tax_group_vat_12","service","","100","base","invoice","","+42SA" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","+42SB" +"","","","","","","","","","","","","100","base","refund","","-42SA" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","-42SB" +"l10n_ph_tax_purchase_vat_exempt","20","0% EXEMPT","","True","VAT Exempt","purchase","0.0","percent","l10n_ph_tax_group_vat_exempt","","","100","base","invoice","","+46E" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","" +"","","","","","","","","","","","","100","base","refund","","-46E" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","" +"l10n_ph_tax_purchase_vat_exempt_import","20","0% EXEMPT I","","False","VAT Exempt Imports","purchase","0.0","percent","l10n_ph_tax_group_vat_exempt","","","100","base","invoice","","+47A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","" +"","","","","","","","","","","","","100","base","refund","","-47A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","" +"l10n_ph_tax_purchase_vat_zero_rated","20","0% ZR","","True","Zero Rated","purchase","0.0","percent","l10n_ph_tax_group_vat_exempt","","","100","base","invoice","","+46ZR" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","" +"","","","","","","","","","","","","100","base","refund","","-46ZR" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","" +"l10n_ph_tax_purchase_vat_12_service_non_residents","20","12% S NR","","False","12% VAT Non Resident","purchase","12.0","percent","l10n_ph_tax_group_vat_12","service","","100","base","invoice","","+43A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","+43B" +"","","","","","","","","","","","","100","base","refund","","-43A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","-43B" +"l10n_ph_tax_purchase_vat_12_capital","20","12% C","","True","12% Capital","purchase","12.0","percent","l10n_ph_tax_group_capital_12","consu","","100","base","invoice","","+CAPA" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","+CAPB" +"","","","","","","","","","","","","100","base","refund","","-CAPA" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","-CAPB" +"l10n_ph_tax_purchase_vat_12_import","20","12% I","","False","12% Imports","purchase","12.0","percent","l10n_ph_tax_group_capital_12","consu","","100","base","invoice","","+44A" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_110201","+44B" +"","","","","","","","","","","","","100","base","refund","","-44A" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_110201","-44B" +"l10n_ph_tax_purchase_wi010","30","5% P F","5% WI010 - Prof Fees","True","Prof Fees","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WI010","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi011","30","10% WI P F","10% WI011 - Prof Fees","True","Prof Fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WI011","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi100","40","5% WI G R","5% WI100 - Gross rental of property","True","Gross rental of property","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WI100","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi120","50","2% WI Cont","2% WI120 - Contractors","True","Contractors","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WI120","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi139","60","5% Com S","5% WI139 - Commission of service fees","True","Commission of service fees","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WI139","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi140","60","10% Com S","10% WI139 - Commission of service fees","True","Commission of service fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WI140","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi158_p5","70","0.5% WI C C","0.5% WI158 - Credit card companies","True","Credit card companies","purchase","-0.5","percent","l10n_ph_tax_group_wht_p5","","WI158","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi640","80","1% WI640 Sup G","1% WI640 - Supplier of goods","True","Supplier of goods","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","","WI640","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi157","80","2% WI Sup S","2% WI157 - Supplier of services","True","Supplier of services","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WI157","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi158_1","90","1% WI158 Sup G","1% WI158 - Supplier of goods by top w/holding agents","True","Supplier of goods by top w/holding agents","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","","WI158","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi160","90","2% WI Sup G","2% WI160 - Supplier of goods by top w/holding agents","True","Supplier of goods by top w/holding agents","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WI160","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi515","100","5% WI C","5% WI515 - Commission, rebates, discounts","True","Commission, rebates, discounts","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WI515","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wi516","100","10% WI C","10% WI516 - Commission, rebates, discounts","True","Commission, rebates, discounts","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WI516","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc010","110","10% WC P F","10% WC010 - Prof Fees","True","Prof Fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WC010","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc011","110","15% P F","15% WC011 - Prof Fees","True","Prof Fees","purchase","-15.0","percent","l10n_ph_tax_group_wht_15","","WC011","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc100","120","5% WC G R","5% WC100 - Gross rental of property","True","Gross rental of property","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WC100","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc120","130","2% WC Cont","2% WC120 - Contractors","True","Contractors","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WC120","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc139","140","10% WC139 C","10% WC139 - Commission of service fees","True","Commission of service fees","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WC139","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc140","140","15% C","15% WC140 - Commission of service fees","True","Commission of service fees","purchase","-15.0","percent","l10n_ph_tax_group_wht_15","","WC140","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc158_p5","150","0.5% WC C C","0.5% WC158 - Credit card companies","True","Credit card companies","purchase","-0.5","percent","l10n_ph_tax_group_wht_p5","","WC158","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc640","160","1% WC640 Sup G","1% WC640 - Supplier of goods","True","Supplier of goods","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","","WC640","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc157","160","2% WC Sup S","2% WC157 - Supplier of services","True","Supplier of services","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WC157","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc158_1","170","1% WC158 Sup G","1% WC158 - Supplier of goods by top w/holding agents","True","Supplier of goods by top w/holding agents","purchase","-1.0","percent","l10n_ph_tax_group_wht_1","","WC158","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc160","170","2% WC Sup G","2% WC160 - Supplier of goods by top w/holding agents","True","Supplier of goods by top w/holding agents","purchase","-2.0","percent","l10n_ph_tax_group_wht_2","","WC160","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc515","180","5% WC C","5% WC515 - Commission, rebates, discounts","True","Commission, rebates, discounts","purchase","-5.0","percent","l10n_ph_tax_group_wht_5","","WC515","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" +"l10n_ph_tax_purchase_wc516","180","10% WC516 C","10% WC516 - Commission, rebates, discounts","True","Commission, rebates, discounts","purchase","-10.0","percent","l10n_ph_tax_group_wht_10","","WC516","100","base","invoice","","" +"","","","","","","","","","","","","100","tax","invoice","l10n_ph_200303","" +"","","","","","","","","","","","","100","base","refund","","" +"","","","","","","","","","","","","100","tax","refund","l10n_ph_200303","" diff --git a/addons/l10n_ph/data/template/account.tax.group-ph.csv b/addons/l10n_ph/data/template/account.tax.group-ph.csv index e40ffc6e7e5..fe1e78859ee 100644 --- a/addons/l10n_ph/data/template/account.tax.group-ph.csv +++ b/addons/l10n_ph/data/template/account.tax.group-ph.csv @@ -1,6 +1,7 @@ "id","name" "l10n_ph_tax_group_vat_12","VAT 12%" "l10n_ph_tax_group_vat_exempt","VAT Exempt" +"l10n_ph_tax_group_capital_12","Capital 12%" "l10n_ph_tax_group_wht_p5","WHT 0.5%" "l10n_ph_tax_group_wht_1","WHT 1%" "l10n_ph_tax_group_wht_2","WHT 2%" diff --git a/addons/l10n_ph/migrations/1.1/post-migrate_update_taxes.py b/addons/l10n_ph/migrations/1.1/post-migrate_update_taxes.py new file mode 100644 index 00000000000..d533bea4086 --- /dev/null +++ b/addons/l10n_ph/migrations/1.1/post-migrate_update_taxes.py @@ -0,0 +1,8 @@ +# Part of Odoo. See LICENSE file for full copyright and licensing details. +from odoo import api, SUPERUSER_ID + + +def migrate(cr, version): + env = api.Environment(cr, SUPERUSER_ID, {}) + for company in env['res.company'].search([('chart_template', '=', 'ph')]): + env['account.chart.template'].try_loading('ph', company)