zaviagodev / frappe

MIT License
0 stars 1 forks source link

Select 'Preferred Billing' & 'Preferred Shipping' for 1st address /app/contact #182

Closed chomchuen closed 10 months ago

chomchuen commented 10 months ago

ERPnext have 2 methods to create customer. First is quick entry and second is full form. In this issue, we are talking about adding new customer via 'full form'


Condition&Expectation:

If a customer didn't have an address information before, the first address added to the system will automatically select both Preferred Billing Address and Preferred Shipping Address.

Image

chomchuen commented 10 months ago

Now, the system automatically sets 'Preferred Billing Address/Shipping Address' as the default for every new address. What if we consider selecting 'Preferred Billing Address/Shipping Address' only for the customer's first address?

but if we can't do that. we can use current solution.

Image

Muzmal commented 10 months ago

If customer dont have preferred address then newly added address is automatically marked as preferred (Pending Review)

chomchuen commented 10 months ago

Hello, please consider this customer.

  1. This is the fresh customer. No linked contact No linked address. https://apps.hosting.zaviago.com/app/customer/chomchom10

  2. Then, I want to add a new address.

    Screen Shot 2567-01-22 at 11 45 43
  3. This address will be both "Preferred Billing Address" and "Preferred Shipping Address"

    Screen Shot 2567-01-22 at 11 46 32
  4. Now, I have 1 address which is "Preferred Billing Address" and "Preferred Shipping Address"

    Screen Shot 2567-01-22 at 11 53 12
  5. but after that I want to add a new address again. which is the alternative address.

    Screen Shot 2567-01-22 at 11 56 28
  6. But... every new address I've added is selecting "Preferred Billing Address" and "Preferred Shipping Address" option. So if I didn't unselect these option, every my new address will be "Preferred Billing Address" and "Preferred Shipping Address"

    Screen Shot 2567-01-22 at 11 57 41

So, can you check your condition and script again? Finally If the condition doesn't work, we can simply set "Preferred Billing Address" and "Preferred Shipping Address"=1 as a default.

chomchuen commented 10 months ago

It works now.🔥🔥🔥 perfectttt

Screen Shot 2567-01-24 at 15 06 38