Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tito 284 posts 496 karma points
    Jan 20, 2016 @ 18:38
    Tito
    0

    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?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 20, 2016 @ 19:00
    Rusty Swayne
    0

    Could you store it in the Customer notes field?

  • Tito 284 posts 496 karma points
    Jan 21, 2016 @ 09:52
    Tito
    0

    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.

  • Tito 284 posts 496 karma points
    Jan 25, 2016 @ 09:12
    Tito
    0

    @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?

  • Tito 284 posts 496 karma points
    Jan 28, 2016 @ 17:40
    Tito
    0

    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.

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Jan 28, 2016 @ 18:05
    Rusty Swayne
    0

    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 ...

  • Tito 284 posts 496 karma points
    Feb 02, 2016 @ 09:58
    Tito
    0

    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

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 02, 2016 @ 16:47
    Rusty Swayne
    0

    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. Notes section

    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.

  • Tito 284 posts 496 karma points
    Feb 03, 2016 @ 09:21
    Tito
    0

    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.

  • Tito 284 posts 496 karma points
    Feb 03, 2016 @ 09:27
    Tito
    0

    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.

  • Tito 284 posts 496 karma points
    Feb 09, 2016 @ 18:38
    Tito
    0

    @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:

    public static IAddress GetBillingAddress(this CheckoutAddressForm form)
            {
                return new Address()
                           {
                               AddressType = AddressType.Billing,
                               Name = form.BillingName,
                               Address1 = form.BillingAddress1,
                               Address2 = form.BillingAddress2,
                               Locality = form.BillingLocality,
                               Region = form.BillingRegion,
                               CountryCode = form.BillingCountryCode,
                               PostalCode = form.BillingPostalCode,
                               Email = form.BillingEmail,
                               Phone = form.BillingPhone
                           };
            }
    

    I think it needs:

    Organization=form.BillingOrganization
    

    I guess this field is what needs to be stored in billing company in invoice?

    I have added manually in the controller:

     billingAddress = model.GetBillingAddress();
                    if (!string.IsNullOrEmpty(model.BillingOrganization))
                    {
                        billingAddress.IsCommercial = true;
                        billingAddress.Organization = model.BillingOrganization;
    
                    }
    

    But i cant see it in the invoice generated in backoffice... BTW what IsCommercial is used for?

  • Rusty Swayne 1655 posts 4993 karma points c-trib
    Feb 09, 2016 @ 19:10
    Rusty Swayne
    0

    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.

  • Tito 284 posts 496 karma points
    Feb 10, 2016 @ 09:50
    Tito
    0

    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.

  • Tito 284 posts 496 karma points
    Feb 15, 2016 @ 13:02
    Tito
    0

    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

  • 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.

Please Sign in or register to post replies