Is there a way to store VAT number in billing address?
I can see a "Company" field, but i need to store VAT number too (CIF in Spain).
I suppose it would be an extended property but i guess CustomerAdress dont have extended propertes.
What would be the best way for this?
What i am going to do is this: as the customer could have several billing addresses, each could be a different company with its VAT number, in customer notes i would save:
AddressGUID1 Company 1 VAT number 1
AddressGUID1 Company 2 VAT number 2
Later to get VAT number for a billing address i look into the customer notes for a line associated to the billing address guid.
I guess in when generating the invoice i could add this info to avoid the admin has to look into the customer notes.
@Rusty, how could i store VAT number for anonymous customers?
It there some extended data in invoice i could use? i would need it to be seen from the Merchello backoffice.
I set BillingOrganization in SaveAddressesMethod in Bazzar, but after the order is created, i enter Merchello backoffice and i cant see the Organization anywhere.
I cant understand why customer address has a "Company" property but IAddress has a Organization property, are both related?
Please any help with this? i need to store information on invoice: Company/Organization and VAT number. I guess company info should be in the billing info of the invoice but i dont know how to do it.
You can't count on the anonymous customer record being there and there is no association with invoices and anonymous customers. This is so that table can be cleaned up periodically.
Another thought would be to add a Tax line item with price of zero and put the VAT number in the extended data of that line item.
There is also a PONumber on the invoice object ...
I have a question. When editing the invoice in the backoffice i see a "Billing address" at the right. If i edit it i can see "Full name", "Company", etc. This items are filled for customers and anonymous customers. I think they are fields on the invoice independent of the customer addresses and are copied to the invoice when generating it. Am i right?
So i think i could use "Company" field to store the Company + VAT number there. I cant figure out how to fill this Company field....
Beside this, is there a place where i can write this info or other (like extended content) where afterwards the admin can see it in the backoffice? like sale or payment history
But yes, you are correct in the fact that information stored on the invoice (addresses included) are either copied from a customer address or entered directly. This is so the invoice reflects the information at the time of the sale instead of being updated if/when the customer later changes any of their saved addresses.
We've extended the notes in 1.14.0 to make them easier to use.
Also, we've deprecated the SalePreparation object and replaced it with a CheckoutManager (albeit the SalePreparation is still there and works as it did before). Via SalePreparation you can add a single note. With the CheckoutManager, you can add multiple notes during the checkout.
OK, so im going to wait for this fix in 1.14.0 version. I think i will store in field company the company + vat number.
Good idea notes on invoice. I miss a lot of documentation on Merchello. Could you make a post explaining how to use CheckoutManager instead of SalePreparation to update my project? and adding notes through this new manager.
@Rusty i still cant not store any information in invoice billing company.
How do i do it? i see that in bazaar you dont fill organization in Merchello.Bazaar.Models.CheckoutAddressForm:
Sorry Tito, I did not look in the Bazaar. I misunderstood and fixed the company field in the invoice address in the back office - click the edit address from the sales overview page and the company box is in the dialog.
Can you add an issue in issues.merchello.com relating to the Bazaar - and I'll have a look at that.
It may be the invoice builder is not grabbing that field when it's adding things to the object. Should be an easy fix.
The IsCommercial was something added in version 1.0.0 and is really a remnant. It is useful in cases where you have a custom shipping provider - like UPS, USPS, FedEx and they have different rate charges for freight when shipping between residential and commercial addresses.
About the invoice, what would be the right way to set Company in Billing info, does it take the value from billing address BillingOrganization? Could it be you are automapping and the name should be BillingCompany instead of BillingOrganization?
I think it is a major bug because it never stores company info in invoice (neither anonymous or registered users) and most of the times people want billing address to a company.
VAT number in customer billing address
Is there a way to store VAT number in billing address? I can see a "Company" field, but i need to store VAT number too (CIF in Spain). I suppose it would be an extended property but i guess CustomerAdress dont have extended propertes. What would be the best way for this?
Could you store it in the Customer notes field?
Thanks @Rusty that could be a solution!
What i am going to do is this: as the customer could have several billing addresses, each could be a different company with its VAT number, in customer notes i would save: AddressGUID1 Company 1 VAT number 1 AddressGUID1 Company 2 VAT number 2
Later to get VAT number for a billing address i look into the customer notes for a line associated to the billing address guid.
I guess in when generating the invoice i could add this info to avoid the admin has to look into the customer notes.
@Rusty, how could i store VAT number for anonymous customers? It there some extended data in invoice i could use? i would need it to be seen from the Merchello backoffice.
I set BillingOrganization in SaveAddressesMethod in Bazzar, but after the order is created, i enter Merchello backoffice and i cant see the Organization anywhere. I cant understand why customer address has a "Company" property but IAddress has a Organization property, are both related?
Please any help with this? i need to store information on invoice: Company/Organization and VAT number. I guess company info should be in the billing info of the invoice but i dont know how to do it.
Sorry Tito, I missed this one.
You can't count on the anonymous customer record being there and there is no association with invoices and anonymous customers. This is so that table can be cleaned up periodically.
Another thought would be to add a Tax line item with price of zero and put the VAT number in the extended data of that line item.
There is also a PONumber on the invoice object ...
Thanks Rusty, what is PONumber used for?
I have a question. When editing the invoice in the backoffice i see a "Billing address" at the right. If i edit it i can see "Full name", "Company", etc. This items are filled for customers and anonymous customers. I think they are fields on the invoice independent of the customer addresses and are copied to the invoice when generating it. Am i right? So i think i could use "Company" field to store the Company + VAT number there. I cant figure out how to fill this Company field....
Beside this, is there a place where i can write this info or other (like extended content) where afterwards the admin can see it in the backoffice? like sale or payment history
The PO Number is for "purchase order numbers".
You found a bug with the company field when editing the address. I've added an issue and will fix it today for the 1.14.0 release. http://issues.merchello.com/youtrack/issue/M-955
But yes, you are correct in the fact that information stored on the invoice (addresses included) are either copied from a customer address or entered directly. This is so the invoice reflects the information at the time of the sale instead of being updated if/when the customer later changes any of their saved addresses.
We've extended the notes in 1.14.0 to make them easier to use.
Also, we've deprecated the SalePreparation object and replaced it with a CheckoutManager (albeit the SalePreparation is still there and works as it did before). Via SalePreparation you can add a single note. With the CheckoutManager, you can add multiple notes during the checkout.
OK, so im going to wait for this fix in 1.14.0 version. I think i will store in field company the company + vat number. Good idea notes on invoice. I miss a lot of documentation on Merchello. Could you make a post explaining how to use CheckoutManager instead of SalePreparation to update my project? and adding notes through this new manager.
By the way @Rusty i dont know if you could answer my post:
https://our.umbraco.org/projects/collaboration/merchello/merchello/73970-cash-on-delivery-payment-method-fee-management#239290
May be it needs a fix that could be included in this version.
@Rusty i still cant not store any information in invoice billing company. How do i do it? i see that in bazaar you dont fill organization in Merchello.Bazaar.Models.CheckoutAddressForm:
I think it needs:
I guess this field is what needs to be stored in billing company in invoice?
I have added manually in the controller:
But i cant see it in the invoice generated in backoffice... BTW what IsCommercial is used for?
Sorry Tito, I did not look in the Bazaar. I misunderstood and fixed the company field in the invoice address in the back office - click the edit address from the sales overview page and the company box is in the dialog.
Can you add an issue in issues.merchello.com relating to the Bazaar - and I'll have a look at that.
It may be the invoice builder is not grabbing that field when it's adding things to the object. Should be an easy fix.
The IsCommercial was something added in version 1.0.0 and is really a remnant. It is useful in cases where you have a custom shipping provider - like UPS, USPS, FedEx and they have different rate charges for freight when shipping between residential and commercial addresses.
Ok, here it is:
http://issues.merchello.com/youtrack/issue/M-970
About the invoice, what would be the right way to set Company in Billing info, does it take the value from billing address BillingOrganization? Could it be you are automapping and the name should be BillingCompany instead of BillingOrganization?
I think it is a major bug because it never stores company info in invoice (neither anonymous or registered users) and most of the times people want billing address to a company.
Hi @Rusty, could this issue be fixed for next version? and could estimate when will it be? i need to set this Company field in invoice billing info
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.