+ if (!get_post('customer_id'))
+ {
+ display_error(_("There is no customer selected."));
+ set_focus('customer_id');
+ return false;
+ }
+
+ if (!get_post('BranchID'))
+ {
+ display_error(_("This customer has no branch defined."));
+ set_focus('BranchID');
+ return false;
+ }
+