Wiki

Clone wiki

Baeljs / business_structure

Structure

Company

  • A Company can have multiple branches.
 ----------------               -----------------   -----------------  
 |              |               | Branch        |   | Branch        |
 |Company ABC   |-------------->| New-York-1    |   | New-York-2    |
 |              |               |               |   |               |
 ----------------               ----------------- ,  ----------------,....

Branch

  • A Branch has an address.
 ----------------               -----------------
 |              |               |  100, AV Lane |
 |Branch        |-------------->|  Central Plaza|
 |New-York-1    |               |  NY,US        |
 ----------------               -----------------
  • A Branch has a Timing
 ----------------               -----------------
 |              |               |  10 AM        |
 |Branch        |-------------->|  to           |
 |New-York-1    |               |  5 PM         
 ----------------               -----------------
  • A Branch has a Currency
 ----------------               -----------------
 |              |               |  US Dollar    |
 |Branch        |-------------->|  '$'          |  
 |New-York-1    |               |               |
 ----------------               -----------------
  • A Branch can have multiple product categories.

     ----------------               -----------------   -----------------  
     |              |               | Snacks        |   | Dessert       |
     |Branch        |-------------->|               |   |               |
     |New-York-1    |               |               |   |               |
     ----------------               ----------------- ,  ----------------,....
    

  • A Branch can have multiple products.

     ----------------               -----------------   -----------------  
     |              |               | French Fries  |   | Burger        |
     |Branch        |-------------->|               |   |               |
     |New-York-1    |               |               |   |               |
     ----------------               ----------------- ,  ----------------,....
    

  • A Branch can have multiple taxes.

 ----------------               -----------------   -----------------  
 |              |               | VAT           |   | Sales Tax     |
 |Branch        |-------------->| Rate: 10%     |   | Rate: 5%      |
 |New-York-1    |               |               |   |               |
 ----------------               ----------------- ,  ----------------,....
  • A Branch can have multiple users
 ----------------               -----------------   -----------------  
 |              |               | Alex          |   | Xena          |
 |Branch        |-------------->|               |   |               |
 |New-York-1    |               |               |   |               |
 ----------------               ----------------- ,  ----------------,....

Product

Product Price

  • A Product can have different price in app Restaurant and app Foodtakeout.
  • Each Price is valid for a date range only.
 ----------------               -----------------                    
 |Frence        |               |1 Jan - 31 Dec |           
 |Fries in      |-------------->|Price: $1      |   
 |Foodtakeout   |               |               |   
 ----------------               ----------------- , 
 ----------------               -----------------
 |Frence        |               |1 Jan - 31 Dec |   
 |Fries in      |-------------->|Price: $2      |   
 |Restaurant    |               |               |   
 ----------------               ----------------- , 

Product Taxes

  • A Product can be attached to one or more taxes in a App.

 ----------------               -----------------   -----------------  
 |              |               | VAT           |   | Sales Tax     |
 |Burger in     |-------------->| Rate: 10%     |   | Rate: 5%      |
 |Restaurant    |               |               |   |               |
 ----------------               ----------------- ,  ----------------,....
+ Example for app Restaurant: + A Burger costing $1 with VAT(10%) and Service(5%). + Billed cost of Burger will be $1.15 .

 ----------------               -----------------                    
 |              |               | VAT           |   
 |Burger in     |-------------->| Rate: 10%     |   
 |Foodtakeout   |               |               |   
 ----------------               ----------------- , 
+ Example for app Foodtakeout: + A Burger costing $1 with only VAT (10). + Billed cost of Burger will be $1.10 .

Updated