Commit graph

4856 commits

Author SHA1 Message Date
PCoder
0bca5113ca Fix unwanted char 2020-01-01 00:10:56 +05:30
PCoder
efaf75615b Send email to admin on VAT number update 2020-01-01 00:01:44 +05:30
PCoder
d4bfcbef47 Use message as returned by stripe 2019-12-31 22:55:53 +05:30
PCoder
6674e70ded Compare vat numbers only 2019-12-31 22:54:12 +05:30
PCoder
8f2bd568db Restore billing address if VAT number is not valid 2019-12-31 22:53:32 +05:30
PCoder
0695d68903 Create StripeCustomer if not already created 2019-12-31 22:52:49 +05:30
PCoder
6ac6db8212 Get the last user billing address as the default address 2019-12-31 22:52:24 +05:30
PCoder
7423a80670 Use correct variable 2019-12-31 22:50:46 +05:30
PCoder
ca5724f10f Fix error message 2019-12-31 18:36:38 +05:30
PCoder
2378410f2d Compare country for creating new tax id 2019-12-31 18:22:57 +05:30
PCoder
9078e46196 Add log 2019-12-31 18:08:09 +05:30
PCoder
3ca7e89f4f Show VAT for eu countries only 2019-12-31 17:28:11 +05:30
PCoder
aba3092207 Ignore spaces, hyphens and dots in vat number comparison 2019-12-31 15:57:50 +05:30
PCoder
7949ab274e Impove logging 2019-12-31 15:43:43 +05:30
PCoder
b567b01362 For CH we don't care whether VAT is validated or not 2019-12-26 20:51:11 +05:30
PCoder
7397be98a5 Remove message tags printed mistakenly 2019-12-26 20:40:50 +05:30
PCoder
398a255965 Change condition so as to show error messages in red 2019-12-26 20:36:54 +05:30
PCoder
3202c83c68 Show error messages in red 2019-12-26 20:32:01 +05:30
PCoder
2a760639f6 Set validation status to empty on error 2019-12-26 20:27:15 +05:30
PCoder
c142d743d1 Show only error message 2019-12-26 20:25:07 +05:30
PCoder
74921fcd4a Send the same error message as forwarded by Stripe 2019-12-26 20:21:01 +05:30
PCoder
12975565a5 More bugfix 2019-12-26 20:09:28 +05:30
PCoder
d62986c91f Bugfix: use correct total price after discount 2019-12-26 20:05:55 +05:30
PCoder
fcdabd8dc3 Set vat validation status in more places 2019-12-26 19:55:28 +05:30
PCoder
a5c7865811 Save validation status 2019-12-26 19:37:57 +05:30
PCoder
69996f536b Add vat_validation_status 2019-12-26 19:35:50 +05:30
PCoder
7eed04ec73 Remove one log too many 2019-12-26 19:16:26 +05:30
PCoder
cbf2f05d70 Use the latest billing address as the default one 2019-12-26 18:54:17 +05:30
PCoder
9e87fa76c3 More logging 2019-12-26 18:47:40 +05:30
PCoder
f2d738ae62 Improve logging format 2019-12-26 18:40:06 +05:30
PCoder
c6147c887c More logging + improve ba string repr 2019-12-26 18:34:26 +05:30
PCoder
064ea5be2f More logging 2019-12-26 18:26:30 +05:30
PCoder
32d9f06c18 Add logger messages 2019-12-26 18:22:08 +05:30
PCoder
6d0a7f7049 Improve stripe_customer_id 2019-12-26 18:06:22 +05:30
PCoder
5ab0bf6993 Retrieve tax id if exists before creating a new one 2019-12-26 14:46:16 +05:30
PCoder
ad52338653 Save billing addresses 2019-12-26 14:27:16 +05:30
PCoder
d8c03a4364 Add missing param 2019-12-26 14:21:18 +05:30
PCoder
9aff248d31 Use correct billingaddress 2019-12-26 14:19:07 +05:30
PCoder
364f5599e6 Correct the way we show vat error 2019-12-26 14:08:53 +05:30
PCoder
ec5bfb18b3 Replace parenthesis is template 2019-12-26 14:05:56 +05:30
PCoder
c3b22992ea Fix wrong elif syntax 2019-12-26 14:00:27 +05:30
PCoder
2038d719f0 Show status icon for pending and verified only 2019-12-26 13:58:50 +05:30
PCoder
b284ed70a6 Show error elegantly 2019-12-26 13:56:31 +05:30
PCoder
7eff6fc92c Use correct field 2019-12-26 13:52:14 +05:30
PCoder
262bf3e2f7 Force VAT validation on each save 2019-12-26 13:49:18 +05:30
PCoder
99e70d95c4 VAT number validation in settings 2019-12-26 13:31:15 +05:30
PCoder
7d9ab322c9 Remove vat_validate_on session var 2019-12-26 12:38:00 +05:30
PCoder
fe6ade38eb Update vat_number validated field based on tax_id + save 2019-12-26 11:54:54 +05:30
PCoder
242dbb2479 Bugfix: pass param 2019-12-26 11:50:15 +05:30
PCoder
833dc9bdcb Change stripe_tax_id field to char + regenerate migrations 2019-12-26 11:41:29 +05:30