Modifying addresses in customer/branch sales order delivery address unless you reedit SO.
In fact algorithm of selection of delivery address on new SO is quite logical:
- select branch mailing address if not empty
else
- select branch billing adress if not empty
else
- select company address
That's all.
That makes sense. but since osCommerce does much of the same logic, I will have all three addresses (generally the same) and it is far simpler
logic to fill them in all the time... (Customer/Company Address, Billing Address, Shipping Address)
tom wrote:I am just looking for any bad things that could happen by doing things this way...
All should work right. The only problem can be changed branch address between sales order is received and moment of delivery. In this case all not delivered sales orders should be updated.
Yes and I take that to be bad, so it makes sense to only allow FA to make changes to SO or Customer Branches, etc
I guess you mean customers not users? You can use 'Retail' customer with many branches, or you can create unique customer record for every your client. The first option cannot be used for multiply companies because GST number is stored in customer, not in branch record. For retail customers GST number is obsolete.
Yes I did mean Customers.
One thing I did notice, the Customer's Address does not have a Tax Group associated with it, so I will need at least one Branch for each customer.
No big deal, just my observation.
In my case I do not sell my products for re-sale, so every customer is a Retail Customer.
But I do want to make any code I write general enough so others can use it too...
tom