# CHANGELOG 

## [1.11.37] 2023-07-24

### Fixed 
- Order grid display - MP: in local time according to the selected country


## [1.11.36] 2023-07-19

### Fixed
- Countries selection for admins is no longer hard coded...


## [1.11.35] 2023-07-19

### Fixed
- User creation/edition, adjusted users request data so metadata that isn't editable isn't sent


## [1.11.34] 2023-07-13

### Removed
- Group `Created at` custom field removed

### Fixed
- Create Group tags styles updated to match site
- Table Overlay loading state is now accurate
- Create Group labels fixed
- Create Referrer Metadata labels fixed


## [1.11.33] 2023-07-11

### Added
- the 'Receive notifications' config in the socio edit view

### Changed
- Enforce 1 for MX numbers
- Adjust MX phone number mask for leading 1


## [1.11.32] 2023-07-06

### Added
- MX as a country


## [1.11.31] 2023-06-29

### Fixed
- Short description now properly sends null if no value is specified


## [1.11.30] 2023-06-29

### Added
- Short Description optional field for deals


## [1.11.29] 2023-06-23

### Added
 - Added the ability to import deals from excel files
 

## [1.11.28] 2023-06-20

### Added
- `Do not grant points to the member for this offer` no longer selected by default on deal creation

### Changed
- Deal creation `Do not grant points to the member for this offer` changed to `Training Product`

### Fixed
- Selecting a Zoho product no longer breaks deal creation (error handling .[0]?)


## [1.11.27] 2023-06-20

### Added
- Orders list table `Shipping Cost` column


## [1.11.26] 2023-06-14

### Fixed
- Refererrs and Users sections update fixed (they also avoid metadata with "[]" values)


## [1.11.25] 2023-06-06

### Added
- Refferer ID Field in create/edit referrer


## [1.11.24] 2023-05-16

### Added
- Arrow buttons to scroll horizontally added

### Fixed
- Blasts date management fixed


## [1.11.23] 2023-05-12

### Added
- Component DatePickerFieldMui using Mui Date and Time picker
- dateToOtherZoneJustTimeZone

### Fixed
- Blast form dates and time are now handled seemlesly and properly use and show the current country's timezone


## [1.11.22] 2023-05-10

### Added
- Buttons to smoothly scroll the table container to the left and right sides respectively
- TableCommon can now add buttons to the sides by using the parameter `scrollToSides`


## [1.11.21] 2023-05-10

### Added
- Utils deepDiff function that shows changes or returns changes between 2 objects

### Changed
- The country selected will now use local storage to use the previously selected country
- If no country has been selected the selector will default to the users country if available

### Fixed
- HeaderViews no longer uses Grid and is now responsive using flex wrap
- Fixed min and max width for search bar
- Changing Orders tab now maintains the filters applied (by only updating changed queryParams and not the whole default object)


## [1.11.20] 2023-05-08

### Added
- if zoho deal is isBundle, do check 

### Fixed
- Deals creation No limit check is now properly ticked on edit/clone


## [1.11.19] 2023-05-05

### Fixed
- Hide combo input on deal creation when is combo check isn't checked 
- Update copy for bundles from "Cantidad de combos" to "Cantidad de productos"
- Show pending points properly on referrers point modal


## [1.11.18] 2023-05-04

### Added
- Pending views in socio points
  

## [1.11.17] 2023-05-04

### Added
- Points limit checkbox and input on deal creation form
- `quantityBundle` amount input for combos on deal creation form


## [1.11.16] 2023-05-03

### Fixed
- Use updateDealStatus at the deals list to start a deal instead of updateDeal


## [1.11.15] 2023-05-03

### Fixed
- Use updateDealStatus at the deals list to stop a deal instead of updateDeal


## [1.11.14] 2023-04-19

### Fixed
- Time zone in datePickerField was stopping deals from being created/edited


## [1.11.13] 2023-04-13

### Changed
- Use selected country TimeZone instead of browser's in blast


## [1.11.12] 2023-04-12

### Added
- New deals, zoho product is required
- Cloning deals, zoho product is required
- Editing deals. Show zoho product as disabled, do not make it a required field.
- Zoho product preselected properly when cloning
 
### Changed
- Update the components to use ListView and unify TableCommon usage
- Products and Trending sections now live in the shared-components


## [1.11.11] 2023-03-27

### Fixed
- Memory leak in values from order create form (GoogleAutocomplete -> Address component)


## [1.11.10] 2023-03-14

### Changed
- Updated all table sections so they look and work like Orders


## [1.11.9] 2023-03-09

### Added
- Validate message field in blast creation

### Changed
- Show blast limit vs users in blasts users count

### Fixed
- User creation and update (email and countries working for `admin`, `agent`, `financial` and `reader` roles)
- Use correct referrers data in groups
- Able to edit groups
- In users form, phone number is only required for customers and referrers


## [1.11.8] 2023-03-07

### Fixed
- Order status comment
- Show all order statuses corretly in the dropdown
- Deal creation fixed by removing validation for internal (uncontrolled) deal media


## [1.11.7] 2023-03-02

### Fixed
- Deals inner media validation now matches the external one (allowing to update deals)


## [1.11.6] 2023-03-02

### Added
- Log errors on form submit


## [1.11.5] 2023-03-02

### Added
- Closing a modal (X button) shouldn't refresh the table
- Validate status update
- Updating an order should only send statuses when they change

### Changed
- Execute first update order and then the bulk


## [1.11.4] 2023-02-28

### Fixed
- changed method clone for create in blast 
- pagination country

## [1.11.3] 2023-02-27

### Added
- Blasts recurrency section is added but hidden until further notice

### Changed
- Updated blasts section

### Fixed
- Edit date timestamps now use the language selected

## [1.11.2] 2023-02-24

### Changed
- Modals close button Elements moved to a new ModalCloseButton component

### Fixed
-  delete id and label from atr for clone
-  Date pickers zindex (no longer under table headers)
-  User Type filter not showing proper value
-  Close button no longer hiding under modal scroll
-  Extra Modal title space removed
-  Missing Create User title translation

## [1.11.1] 2023-02-21

### Fixed
- Deals section redirection after creating a Deal
- Upload process updated for Firebase 9 using the parent project firebase storage provided

## [1.11.0] 2023-02-20

### Added
- "Create" buttons are now disabled for Orders, Deals, Referrers, Customers, Blasts and Groups while the list is being updated.
- Readme steps in case of issues with compilation

### Changed
- NodeJS version updated from 14.8.1 to 18.14.0
- Replaced "node-sass" with "sass" module
- Mayor dependency updates
  - Material 4.9.10 -> 5.11.6 (conflicts solved)
  - emoji-mart 3.0.1 -> 5.5.2 (conflicts solved)
  - @sentry/browser 5.10.2 -> 7.31.1
  - @svgr/webpack 5.1.0 -> 6.5.1
  - animate.css 3.7.2 -> 4.1.1
  - apisauce 1.1.1 -> 2.1.6
  - bootstrap 4.6.0 -> 5.2.3
  - customize-cra 0.9.1 -> 1.0.0 (conflicts solved)
  - firebase 7.2.1 -> 9.15.0 (conflicts solved)
  - formik-error-focus 1.1.0 -> 2.0.0
  - formik-material-ui-pickers 0.0.12 -> 1.0.0-alpha.1
  - i18next 21.4.0 -> 22.4.9
  - i18next-browser-languagedetector 6.0.1 -> 7.0.1
  - icomoon-react 2.0.19 -> 3.0.0
  - react 16.8.6 -> 18.2.0 (conflicts solved)
  - react-bootstrap 1.5.0 -> 2.7.0
  - react-datepicker 3.8.0 -> 4.8.0
  - react-dropzone 11.3.2 -> 14.2.3 (conflicts solved)
  - react-paginate 7.1.0 -> 8.1.4 (conflicts solved)
  - react-redux 7.1.1 -> 8.0.5
  - react-router-dom 5.1.2 -> 6.6.2 (conflicts solved)
  - react-scripts 3.0.1 -> 5.0.1 (conflicts solved)
  - react-select 4.1.0 -> 5.7.0
  - react-swipeable 5.4.0 -> 7.0.0

### Fixed
- Routing fixed so route doesn't change back to deals on refresh
- Missing key warning on Orders for multiple promos
- Collapsible sidebar styling

### Removed
- Unused pages and test components

### BREAKING CHANGES
- This version requires Node 18 for it to work properly

## [1.10.32] 2023-02-20

### Fixed
- waoOverlay location in tablecommon (fixes table warning)
- URL error editting orders (URL extension validation for media)

## [1.10.31] 2023-02-15

### Added
- new side tab users
- user type and filters
- refactor data user form and list

## [1.10.30] 2023-02-13

### Added 
- totalOrder to request paymentmethods in order form
- If a parent version is provided, show it

## [1.10.29] 2023-02-06

### Fixed
- Pipeline package fix (dist folder artifact added)

## [1.10.28] 2023-02-03

### Added
-  multi promo on order list

## [1.10.27] 2023-02-01

### Added
- deploy.js Bitbucket pipelines file for npm publish automation

### Changed
- "yarn deploy" now publishes to npm

## [1.10.26] 2023-01-31

### Added
- loader table

## [1.10.25] 2023-01-31

### Added
- button review fraud in order
- icon review fraud in order

## [1.10.24] 2023-01-11

### Added
- grant points to socios in deals

## [1.10.23] 2022-12-22

### Added
- order number in points socio historial 

## [1.10.22] 2022-12-19

### Added
- Added the zoho product information in the update deal when the deal came from Zoho

## [1.10.21] 2022-12-06

### Added
- tab possible fraud in orders list

## [1.10.20] 2022-12-06

### Changed
- show select installments in deals

## [1.10.19] 2022-12-02

### Fixed
- validate promo/points

### Added
- amountExchange points to points info in order

## [1.10.18] 2022-11-30

### Changed
- limit to add more than 50 points was removed

## [1.10.17] 2022-11-29

### Added
- status completed in promotion list
- new filter visibility in promotion list

### fixed
- promo filters, reset and all options

## [1.10.16] 2022-11-24

### Changed
-  Interest-free installments was hide
 
## [1.10.15] 2022-11-23

### Changed
- refactor Interest-free 

## [1.10.14] 2022-11-18

### Added
- new param interest in the create/edit form

## [1.10.13] 2022-11-17

### Fixed
- Socios status filter
- make all the results of the filter[key] filter in the reference export change to string in order to use uppercase()

## [1.10.12] 2022-11-17

### Fixed
- update query params in listViwes

## [1.10.11] 2022-11-16

### Fixed
- Show all socios in the socio list

## [1.10.10] 2022-11-16

### Added
- show external payment in edit orders, when url mercadopago exist, the link copy in the clipboard

## [1.10.9] 2022-11-09

### Added
- level in modal title

## [1.10.8] 2022-11-09

### Added
- Fraud V2: Adjust the info showed in the details table.

## [1.10.7] 2022-11-09

### Fixed
- Bulk - Checkbox orders
- status
- status in edit order 

## [1.10.6] 2022-11-09

### Added
- Icon Colors, Green = Low Risk, Yellow = Medium Risk, Red = High Risk.
- Meters
- loading in add points socio

### Fixed
- close no update list fraud modal  & points modal
- add Movements title to points modal
- error manage in add points field 
- dropdown visibility in points
- mgs error request

## [1.10.5] 2022-11-03

### Fixed
- field brand zoho single deal is showing
- edit zoho single deal
- Fixed a bug showing socios discount wrong with orders / deals in version 1

## [1.10.4] 2022-11-02

### Added
- new column points in socio wao list end refactor fraudmodal styles
- new services points in socios
- new feat add points by each socio wao
- logic and UI add points by socio
- logic points, costPrice in zoho deals, points in orders
- loader and disable cancel in creating deals 
- default status reason in orders
- email in add by column
- new installments column in deals list
- quantity Single deal Zoho 

### Fixed
- validate in translatedSimpleOptions function
- remove div in fraud icon in orders
 
## [1.10.3] 2022-10-25

### Added
- new field from zoho into the deal creation and update were Included (Cost and Brand)

## [1.10.2] 2022-10-25

### Added
- fraud flag  logic and ui
- border row alert and logic
- icons alert fraud

## [1.10.1] 2022-10-24

### Fixed
- Order edit properly sending substatuses

## [1.10.0] 2022-10-19

### Added
- Fix NaN in orders view

## [1.9.9] 2022-10-19

### Added
- calculate values for each Package

## [1.9.8] 2022-10-18

### Added
- expand all toggle in order list view

### Fixed
- Empty space in expand toggle from each row


## [1.9.7] 2022-10-14

### Added

- installment Payment in create deals
- installment Payment UI
- installment Payment logic

## [1.9.6] 2022-10-14

### Added
- new itemization interface update logic
- refactor tableCommon and logic
- itemization interface update UI and logic

## [1.9.5] 2022-10-13

### Fixed
- search orders tab no confirmed and abandoned
- search by country

## [1.9.4] 2022-10-13

### Added
- bignumber.js module added to match our prices decimal format to the one in the backend.
- Price component to standardize price rendering.
- getPercentageFromPrices, getDiscountFromPriceAndPercentage and getPriceFromDiscountAndPercentage utils functions should make it easier to calculate said values.
- Added promotions type filter

### Changed
- Create a Deal prices are now calculated based on discountPrice and commission %. 
- Create a Deal commission % is calculated based on discountPrice and price but defaults to 20.

### Fixed
- All prices now use the Price component, this ensures consistency across the app as the decimals are handled by a single component that uses BigNumber (commissions, ).
- 400 error creating a deal as ZohoDeals were requested without a country on load.
- Properly update promotion filter status "Iniciado" to "Activo"

## [1.9.3] 2022-10-07

### Added
- Promotions can be filtered by status

### Changed
- Fetch order statuses moved from Orders actions to Workflow actions and renamed to fetch statuses

### Removed
- Example content was removed
- old Orders listing file removed

### Fixed
- Whitespace table error fixed in TableCommon component
- Optimized TableCommon rendering

## [1.9.2] 2022-10-06

### Added
- ListView
- ListView was improved

### Changed
- refactor tables
- refactor listView was added in order list and improved table
- refactor type BADGE was updated in tableCommon
- refactor blast
- refactor commissions
- refactor deals
- refactor orders
- refactor promotions
- new status column was removed and status was added to date of expiry

## [1.9.1] 2022-10-04

### Added
- new partials status traslations and backgrounds  

### Fixed
- deals update

## [1.8.9] 2022-10-04

### Fixed
- validate zohoQuantity nullable in deals form

## [1.8.8] 2022-10-04

#### Added
- new orders status 'partial payment' and 'delivery partial' 

## [1.8.7] 2022-10-03

### Fixed
- Rollback to unlink socio wao price and final price only on non-zoho deals

## [1.8.6] 2022-10-03

### Changed
- create catalogMediaState to store data
- banner optional in catalog promos

## [1.8.5] 2022-09-29

### Added
- Virtual quantity for zoho deals

## [1.8.4] 2022-09-28

### Changed
- texts final price and base price were changed to "price to the public"

## [1.8.3] 2022-09-26

### Fixed
- Tab in orders abandoned and no confirmed z index and sticky off

## [1.8.2] 2022-09-26

### Fixed
- restart or stop deals, keep in the  same page updated

## [1.8.1] 2022-09-26

### Added
- New Limit per buyer in promo
- Implement UI for abandoned and unconfirmed orders
- New traslate for abandoned and active
- New status to backgrounds
- Tabber
- hook useHiddenScreen

## [1.7.9] 2022-09-23

### Added
-  new feature stop and restart  deals
- logic stop and restart  deals
- traslate restart and stop deals and promos

### Changed
- logic show restart and stop promo

## [1.7.8] 2022-09-22

### Changed
- SOCIO WAO Price and Final Price were unlinked in the creating deals
- Create deals button was moved to the cancel button 

## [1.7.7] 2022-09-21

### Fixed
- Image validate promo

## [1.7.6] 2022-09-21

### Fixed
- All promos discount 0% not allowed

### Added
  - Ability to Search Products by SKU when Creating an Offer using a Zoho Product

### Changed
- texts "base price" and "End Customer Price" to "Retail Price"

## [1.7.5] 2022-09-20

### Added
  - Added a new type of image in the catalog promotion to show the flyer in the store

## [1.7.4] 2022-09-15

### Fixed
- reason status inicial value in order form 
- quantity no limit 

## [1.7.3] 2022-09-13

### Changed
- Order status reason strings replaced with substatus in both edit and list bulk update for cancelation and delivery failed order statuses

### Fixed
- Minor code style adjustments to orders create and orders lists

## [1.7.2] 2022-09-12

### changed
- added just CSV to file types in uploading fils in orders bulk update

## [1.7.1] 2022-09-09

### Changed
- show socio/cliente in promo form

## [1.7.0] 2022-09-09

### Fixed
- status filter in group form add more status
- delete tags permitted in group form
- text in tags placeholder and description

## [1.6.9] 2022-09-07

### Added
- New bulkupdate uploading

## [1.6.8] 2022-09-07

### Fixed 
- value validate in promo list
- lists pagination

## [1.6.7] 2022-09-07

### Changed
- Adjustment in Text voucher Limit
- Show socio/customer in promo form

## [1.6.6] 2022-09-06

### Changed
- Hide socio/customer checkbox in promo form

## [1.6.5] 2022-09-06

### Fixed
- Improved pagination (sort by deals number)
- request before updated deals number 
- the chargeback status was added to the translate for orders export 

## [1.6.4] 2022-09-02

### Changed
- checkbox from only socio/customer
- Divider color in table deals and orders 

## [1.6.3] 2022-09-01

### Added
- New adjusment in the update status in order list (It isn't allowed to modify the other statuses when "chargeback" is selected in payment status)

## [1.6.2] 2022-08-31

### Added
- Don't filter duplicate results on selected offers in promotions

## [1.6.1] 2022-08-31

### Changed
- TableCommon updated to support .TOGGLE columns to expand rows
- Orders and Deals now use the .TOGGLE column to add the row expander
- Styles updated for the Table so it is easier to read with subrows
- Changed the deals table columns for easier reading

## [1.6.0] 2022-08-30

### Added
- New adjustments in the Promotions create Form (onlyReferrer, onlyCustomer) checkbox

## [1.5.9] 2022-08-26

### Added
- Switching button allow combo in promotion form 
- (Opcional) to banner uploading in promotion form 

## [1.5.8] 2022-08-23

### Added
- Show the new payment status "chargeback" - "contracargo" in color red
- Show the banner optional according to the flag added in the promotion

## [1.5.7] 2022-08-19

### Added
- Oversized option in create deals
### Chenged
- Hide the limits that are not necessary in each promotion

## [1.5.6] 2022-08-18

### Changed
- promo limits in DESCUENTO EN PRODUCTOS, DESCUENTO POR ORDEN, DESCUENTO POR CANTIDAD EN PRODUCTOS IGUALES;  have been removed 

## [1.5.5] 2022-08-17

### Added
- functionality expand all rows in deals table

## [1.5.4] 2022-08-16

### Fixed
- marketPrice send "" instead of "0"

## [1.5.3] 2022-08-16

### Added
- new voucher limit in promotion
- the admin/agent that last updated the order 
- payment method in pay status

### Changed
- store limit was removed 
- show the quantity field as disabled  when zoho is select

### Fixed
- initial value  in quantity

## [1.5.2] 2022-08-10

### Added
- useRequest custom hook to control getZohoDeals loading state
- 'loglevel' module for logging purposes
- DealsCreate and TopFilters optimized with linter recomendations

### Fixed
- DealsCreate Zoho deals are now updated upon changing the country and a loader is shown
- DealsCreate Grid xs error
- Remove some console logs from filters
- Fixes cloning deals

## [1.5.1] 2022-08-10

### Added
- Quantity field in optional form
- Sku field when the product come from zoho have been disabled

### Fixed
- copy all in deals create form
## [1.5.0] 2022-08-10

### Added
-  logic new limits (limitByOrderByBuyer,limitByProductByBuyer)

## [1.4.9] 2022-08-10

### Features
- The commission status and type filters are checked and they are working correctly For Comission/payouts

### Fixed
- Get all orders and status in commssions

## [1.4.8] 2022-08-10

### Changed
- the commissions and payouts sections have been  hidden

### [1.4.7] 2022-08-09

### Added
- Stricter linter rules (airbnb, prettier, misc)

### Fixed
- TableCommon2 integrated into TableCommon
- TableCommon and AddBonus optimized according to linter suggestions

## [1.4.6] 2022-08-09

### Added
- Round user icon added to selection.json
- Loggedin user email at the bottom of the sidebar

### Fixed
- Properly detect failed user info fetching

  
## [1.4.5] 2022-08-09

### Added
- new form option if zoho deals or deals
- logic optional form create deals
- copy all in wao socio price 
- limitByProductByBuyer in the promotions create form
- The words products and orders in the promotion that apply
- Deals restrictions on all promotions

### Changed
- UI deals create
- changed order columns in create deals form
- text promo and limit
-  Replaced $0 on Commissions/Discount Commissions with '-'

### Fixed
  - Fixed bug when select a zoho Product the images don't clean and if charge a new one is append to the last images loaded

## [1.4.4] 2022-08-05

### Added
- Warning message for diference prices deals

### Fixed
  - Edit deals with variants, error in market price
  - width of inputs in edit deals
  - Fixed bug when calculate the amounts in deals version 1
  - Fixed bug when calculate the amounts in deals version 1
  - Fixed bug when create a deals from zoho without attributes in the product


## [1.4.3] 2022-08-01

### Fixed
 - Erro calculation commissions version 1

## [1.4.2] 2022-08-01

## Added

  - Added commission status filter successfully
  - Changed the call of the Order ID to the correct one
  - Added the ability to select id the deals can to have unlimited inventory
  - Added marks to the required fields in create/update deals.

## [1.4.1] 2022-08-01

### Fixed
- The position of the data in the "Commissions Status" column is modified and thus bring the data correctly, such as filtering it

## [1.4.0] 2022-08-01
### Added
- The call of the images in the main view and when editing was modified

## [1.3.9] 2022-08-01
### Added
-Added colors corresponding to each order status

-Added correct translation of order status column

## [1.3.8] 2022-07-25
### Fixed
  - Fixed bug when trying to update an suspended user.
  - Fixed bug when try to list the orders with version v.1.

## [1.3.7] 2022-07-22
### Changed
- Added the X button with a link to the main page of the deals section

## [1.3.6] 2022-07-19
### Fixed
- Payouts fix styles.

## [1.3.5] 2022-07-19
### Fixed
- Changed the color of the actions and added a new style that allows you to change the color when shading it
- The space that is given between each image is modified, when creating an offer in the deals section.

## [1.3.4] 2022-07-19

### Added
- Button to expand all subtables in TableCommon if column.expandIcon is found (a method and expanded params are also required)

### Changed
- Allow upload of .webp files
- Orders list table values adjusted so they match the new info provided by the BE
## [1.2.5] 2022-06-29
### Fixed
- Order statuses are now consistenly shown in the list table

### Removed
- Temporarily removed top "user status" bar

## [1.3.3] 2022-07-21
### Added
- Added a new TableCommon2 to add the new tables to the content of the main table.
- Added a new Modal to add and update the content of subtables.
- Added the new content of the main table of the payments section.
- Changed delivery date filter position
- Added button to delete with X , in all sections, to be able to close the modal.
- The Commissions section has been enabled, in order to perform the task correctly.
- The content of the modal was modified, so that it can be closed only by pressing with the X and not outside the modal, as it was before.

### Fixed
- Error groups filters.

## [1.3.2] 2022-07-19

### Added 
-Three new columns are added
- The new order of the columns was added, as the data of each one

## [1.3.1] 2022-07-19
### Added
  - Added the ability to activate/inactivate referrers in the platform
  
## [1.3.0] 2022-07-14

### Changed 
  - Changed create/update/list the variations of deals
  - Changed the way to get the products by zoho. 


## [1.2.4] 2022-06-28
### Added
  - Creation of recommended products module and generation of migration for the database table it would use

  - Update recommendations schema, add recommended products table

  - Creation of migrations of new matched product tables, creation of endpoint of recommended products together with matched product data

  - Recommendation module, create recommendations schema, create zoho products migrations

  - Recommendation controller update

## [1.2.3] 2022-06-23

### Fixed
- Orders list deals Final Price with a discount is now limited to 2 decimals


## [1.2.2] 2022-06-23

### Added
- Utils "toFloat" function added to unify "parseFloat(().toFixed(2))" values

### Changed
- Orders list deal commission (and %) is now replaced by the order commission if it is set by a reward


## [1.2.1] 2022-06-22

### Changed
- Orders list deal Commission column is now named Total Commission

### Fixed
- Orders list commission % was calculated without taking into account the sum of discounts per deal, it now uses a grossTotal var instead.
- Orders list deal commission value was per unit, it now shows the total commission value per deal (considering quantity).


## [1.2.0] 2022-06-22

### Changed
- Orders list promotion column moved after socio and before payment
- Minor table background color changes

### Fixed
- Orders list deal detail was showing Final Price per unit instead of Total Price per deal
- Orders list deal detail promotion percentage was calculated based on unit price instead of total price

### Added
- Address refactor

## [1.1.99] 2022-06-21

### Fixed
- Error in groups filters

## [1.1.98.2] 2022-06-17

### Fixed
- Orders list per deal commission was being misscalculated (JS float precision issue)


## [1.1.98.1] 2022-06-16

### Added
- TableCommon "expandAllRows" will allow all subrows to be expanded by default.

### Changed
- Orders list rows are always expanded by default 
- Added some space between actions button and the expand/collapse icon
- Table column width can now be set again
- Changed subrow header color to dark grey

## [1.1.98] 2022-06-15

### Added
- update_at column
- index.sass for global classes (this will be imported by wao-manager)
- HeaderViews component now handles custom titles

### Changed
- Orders list columns order is now: id, created_at, promotion, customer, referrer, transaction status, commission type, commission status, delivery date, order status, update_at, actions
- Orders list delivery date column is now centered
- Orders list deal columns are now: name, qty, final price, promotion, final price + discounts, commission
- Orders list money voucher promotions no longer show the percentage

### Fixed
- Date picker in orders list was showing below the table headers (Requires wao-manager update)


## [1.1.97] 2022-06-13
### Fixed
  - Fixed some bugs in UI

## [1.1.96] 2022-06-10

### Fixed
- Bulk actions was hidden under Orders table


## [1.1.95] 2022-06-09

### Fixed
- Commission total calculation updated
- Missing vertical cell divider in table


## [1.1.94] 2022-06-08

### Added
- Orders table now has more detailed info regarding deals
- Added some texts to describe the limits in the promotions

### Changed
- Orders table now reneders in the middle and scrolls to show content keeping headers fixed
- Table component styles updated to match new UX
- Move Orders table deal info into a collapsible section

## [1.1.93] 2022-06-07
### Changed
- Unified CollapsibleTable component inside TableCommon component
### Fixed
  - Fixed some ui issues in create Promotions form
## [1.1.93] 2022-06-08
### Fixed
  - Fixed some variables names issues 
  - Fixed some ui issues 

## [1.1.92] 2022-06-07
### Changed
  - Remove unused code.
  - Add the manage to use the limit by referrer

## [1.1.91] 2022-06-06
### Changed
  - Changed the label of money_voucher type promotion
  - Changed the delete icon name
### Added
  - Create new type of promotion called money voucher order
### Fixed
- Fixed bug on edit/clone some kinds of promos.

## [1.1.90] 2022-06-06

### Fixed
- Fixed icons in promotions actions.
### Added
- New sorts in orders
- New filter in deals "Inical el"

## [1.1.89]  2022-06-02

### Added
- Sort columns in  Promotions
- New + and - icons for collapsible TableCommon feature (to be used in the future)
- New button to resume promotion

### Changed
- Unified CollapsibleTable component inside TableCommon component


## [1.1.88]  2022-05-31
### Added
  - Add new column "Inicia el"

## [1.1.87]  2022-05-27
### Added
  - Sort in ordes section

## [1.1.86]  2022-05-25
### Fixed
  - Fixed some ui bugs in promotion screen in the rules section
  
## [1.1.85]  2022-05-25
### Added
 - New sort and filters for all the tables

## [1.1.84]  2022-05-25
### Fixed
  - Fixed bug when try to create/update a promo with deny list of deals
  - Fixed bug when try to create/update a promo with deal filter without this kind of filter

## [1.1.83.2]  2022-05-24

### Added
- Debugging logs for promotions
## [1.1.83.1]  2022-05-24

### Added
- Debugging logs for promotions


## [1.1.83]  2022-05-23
### Changed
  - Promotios and Catalogos update the UI for the add rule section, this includes the new categories section
  - Small fixes on Catalogs form

## [1.1.82]  2022-05-19

# Added

- Add a variable to return the filter on page one in deals 
- Add a variable to return the filter on page one in oferts
## [1.1.81]  2022-05-18
### Fixed
  - Fixed bug when editing a catalog already created with an date of expiration to on going

## [1.1.80]  2022-05-17
### Fixed
  - Fixed the initial state of address in the order's update

## [1.1.79]  2022-05-12

### Changed
- Updated GoogleAutocompleteService component to unify shared components and shop versions
- GoogleAutocompleteService component now has an X to clear the input field

### Fixed
- Optimized zipcode tracking on checkout
- GoogleAutocompleteService component renders reduced (only external values if the reported results changed)


## [1.1.78]  2022-05-05

### Added
  - Create a new type of promotion "CATALOG".

## [1.1.77]  2022-05-05

### Changed
- Small react-select groups style change enabled using highlightGroups param

### Fixed
- Orders TopFilters status label is used (from & to filters)


## [1.1.76]  2022-05-04

### Changed
- Orders listing adjusted so it handles the new statuses structure correctly

## [1.1.75]  2022-05-03
### Added
  - add new role in the allow roles array

## [1.1.74]  2022-04-28

### Fixed
- Date type error message for all dates in app


## [1.1.72]  2022-04-27

### Fixed
- For Orders update, don't send bulk update if not status is updated
- Don't send address info if the address can't be updated
- Properly reset reasons dropdown visibility in bulk edition
- Firebase dev version import warning update
- Fixed bulk apply button disabled on failed bulk update

### Removed
- Unused font files and folder


## [1.1.71] 2022-04-27
### Added
  - Added the id field in the promotion list

## [1.1.70] 2022-04-27

### Changed
- Dates validation updated for Promotions
- Use order backend statuses instead of hardcoded statuses
- Order status bulk update order changed to be closer to table order

### Fixed
- Properly validate status labels (avoids toUpperCase error)
- Dialog value not reflecting properly when opening multiple dialog types on same screen
- Dialog close styles

### Removed
- 'react-confirm-alert' no longer used


## [1.1.69] 2022-04-26

### Fixed
- Fix error getting user details

## [1.1.68] 2022-04-26

### Fixed
- Fix error updatetin addres in orders

## [1.1.67] 2022-04-22

### Fixed
- Removed explicit status update from Order Update since this is done via bulk endpoint (avoids errors)


## [1.1.66] 2022-04-21

### Added
- Added dynamic Reason and Comments fields for Order statuses
- Loader when loading the Orders, Groups, Blasts, Deals, Customers and Socios forms.
- Thicker 'close' icon
- Icon component

### Changed
- gitignore .yalc folder
- Order statuses are now fetched from the backend including Reasons and Comments
- Deals priority cosmetic update
- Dialog component updates
- TableCommon component updated to support dialog reason in badges

### Fixed
- createMuiTheme fixed (createTheme)


## [1.1.65] 2022-04-13

### Fixed
- Fixed error in promotions rules.

## [1.1.64] 2022-04-13

### Fixed
- Fixed image extention on Ofertas activas, Deals details.

## [1.1.63] 2022-04-12

### Changed
- Added the promos that affect the orders directly in the list of promos in managed portal

## [1.1.62] 2022-04-07

### Added
  - New image sort in deals

## [1.1.61] 2022-04-07

### Changed
- Allow promotion image assets that match de 2:1 ratio (e.g. 360x180, 720x360, 1080x540)

### Fixed
- Promotion spacing error message fixed


## [1.1.60] 2022-04-06

### Added
  - Show commission status for commision 0 in orders view.
  - Fix width in promotions.
  - update order status changes. Refactor.


## [1.1.59] 2022-04-05

### Fixed
  - Min and max sort deals


## [1.1.58] 2000-04-05

### Added
  - Add new env vars.
### Fixed
  - Parsing quantity to integer from string
  - Change the label on promos with discount rules
  - Label to add more rules change area to do click (WS-1806)


## [1.1.57] 2000-04-05
### Added
  - Added the promo types Discounts on Products and Discount on Order

### Fixed
  - Created a new button in the deals priority to update the priority
  - Blocked the priority edit if the deal was expired


## [1.1.56] 2020-03-31

### Added
  -Add an input to "Sort" the deals.


## [1.1.55] 2022-03-29

### Added
  - Add the toggle to first_customer_purchase promotion type 


## [1.1.54] 2022-03-28

### Fixed
- Zoho inventory fixes

## [1.1.53] 2022-03-28

### Fixed
- First purchase promotion

## [1.1.52] 2022-03-25
### Added
  - Added toggle visibility to know if the promotion to be show in the store

## [1.1.51] 2022-03-25

## [1.1.51] 2022-03-25
### Added
- Promotions applied in Orders view and export

## [1.1.50] 2022-03-22

### Fixed
- Error creating Promotions

## [1.1.49] 2022-03-18

### Fixed
- Group creation submits currently selected Country


## [1.1.48] 2022-03-15

### Changed
- Promotions can now be created with 0% discount, this can be used to make catalogs with banners in the promotions slider
- Orders bulk status update now resets dropdowns to empty values

### Fixed
- SearchSelect fields can now be easily reset by setting the value to null
- Removed console logs from promotions


## [1.1.47] 2022-03-15

### Changed
- Collapse orders status bulk update section if no orders are selected, expand otherwise


## [1.1.46] 2022-03-11
### Added
- Image size validation in Promos 

## [1.1.45] 2022-03-10
### Fixed
- Error deleting Promotion

## [1.1.44]
### Fixed
- Bug fixing in promotions 

## [1.1.43]
### Added
- New exceptions in Promotios 

## [1.1.42]
### Fix
- Bug fixing in Promotios 

## [1.1.41]
### Added
- Remove Eliminar button on Client and Socio's form. 

## [1.1.40]
### Added
- Fix error categories on deals

## [1.1.39]
### Added
- Category as required in deals

## [1.1.38]
### Fixed
- bug fixing in Promotions

## [1.1.37]
### Changed
- Debugging

## [1.1.36]
### Changed
- Version updated to try and fix deployment issues? (Promotions)

## [1.1.35] 2022-03-02
### Fixed
  - Error Creating promotion

## [1.1.34] 2022-03-02
### Added
  - new module of promotion

## [1.1.33] 2022-02-22

### Fixed
  - Error Creating order
  
## [1.1.32] 2022-02-22

### Fixed
  - Error when changing Status in Progress

## [1.1.31] 2022-02-16

### Added
  - Add the new status "In Progress" in orders

## [1.1.30] 2022-02-15

### Fixed
  - Validate the role of the user to allow or disallow the access to the manager site


## [1.1.29] 2022-02-04

### Fixed
- Orders PaymentMethod dropdown was clipping underneath the modal window, this has been fixed with menuPlacement="top" when the addresses checkbox is ticked.


## [1.1.28] 2022-02-02

### Changed
- In orders, use paymentMethod instead of paymentType
- Use remote paymentMethods instead of local hardcoded version
 Payment method name changed from "Efecty o Baloto" to "Efecty, Davivienda o Baloto"


## [1.1.27] 2022-01-31 

### Added
- Adjust dorpdows styles for commissions and payouts

## [1.1.26] 2022-01-26 

### Added
- Dialog component (Customizable as a message, an alert or a confirm dialog)

### Changed
- alert and confirm dialogs replaced with custom Dialog component in Orders, Payouts and Commissions views

### Fixed
- Dialogs translations to use plurals and variables
- Adjusted styles for Order bulk order status update section

## [1.1.25] 2022-01-26

### Changed
- Default initial commission for deals is now 20 (instead of 15)

## [1.1.24] 2022-01-25

### Changed
  - Changed transactions status

## [1.1.23] 2022-01-19

### Added
  - Added update payouts functionality

### Fixed
  - Fixed some bugs reported it in the QA sessions. WS-1593, WS-1592

## [1.1.22] 2022-01-13

### Changed
- BasicModal now receives the content to display1
- HeaderViews now receives createContent and/or exportContent to decide what buttons to add and what view is used as content for the modal

## Added
  - Management Portal - Payout Action on Commissions

## [1.1.21] 2022-01-13
## Added
  - Management Portal - Payout List

## [1.1.20] 2022-01-06
### Added
  - Add the titles for each dropdown in for the bulk update in orders

## [1.1.19] 2022-01-05
### Added
  - Update Status of Orders in Bulk
  
## [1.1.18] 2022-01-05

### Added
  - Added "Incentives" column to "Orders" listing.

## [1.1.17] 2021-12-20

### Fixed
- Deals form now properly shows videos and PDFs
- Area to drop media files onto the deal section adjusted

## [1.1.16] 2021-12-20

### Changed
- A Deal's Commission can now only be set to a maximum of 100

### Fixed
- Updating a Deal's base price now properly updates commission percentage


## [1.1.15] 2021-12-20

### Changed
- Orders changed to match the updated way to calculate commission

### Fixed
- Deals edit is now showing the commission percentage properly


## [1.1.11] 2021-12-17

### Changed
- If the customer selected for an order is the same as the referrer, the socioBuys logic will be triggered (the same happens when the referrer is selected)

### Fixed
- "El precio final debe ser mayor que el precio base" warning now uses "precio cliente final" and "precio socio WAO"


## [1.1.10] 2021-12-14

### Added
- Order form now has a "El socio es el cliente final" checkbox that sets the referrer as the customer and locks commission percentage to 0
- Order form now shows Total commission

### Changed
- Deal list table titles "Price" and "Discount Price" changed to "Precio Final" and "Precio Base"
- Deal form layout now handles Base Price, Commission and Final Price
  - Adjusting base price changes final price according to commission
  - Adjusting commission changes final price according to base price
  - Adjusting final price changes commission according to base price
- Order form deals layout adjusted to indicate commission percentage
  - Adjusting final price changes commission according to base price
  - Adjusting commission percentage changes final price according to base price
- Deal form now enforces at least one product and one flyer per deal

### Removed
- Deal form no longer shows the country field

### Fixed
- Order form now properly reports missing Address (address1 error updated for Address component)
- Validate user data with optional chaining to possibly fix Order Edit breaking accessing .firstName of undefined
- Allow changing deal name when a Zoho product is selected


## [1.1.9]

### Fixed
- Moved PhoneInputEnforcer from the utils file to a separate component
- Mask for Ecuador's phone numbers added (limmits phone numbers to "593 9" followed by 8 digits)
- Email trimmed for Customers, Socios and Order forms


## [1.1.8] 2021-12-14

### Changed
- Number 9 enforced for AR phone numbers in Orders, Socio and Customer forms

### Fixed
- Google Map double load issue removed (Removed the one inside the actual component)
- Pagination pageCount not being an Interger solved with a (Math.ceil)
- justify warning fixed in Referrer form
- Translation plurals updated to use '_other' instead of '_plural'
- Order customer reset now keeps country code in phone input
- Removed Material menu animations


## [1.1.7] 2021-12-10

### Added
- Order list now shows Order source above Order ID


## [1.1.6] 2021-12-10

### Fixed
- Date creation doesn't need a default now


## [1.1.5] 2021-12-10

### Added
- Added commission % below deal commission at the Order form deals table


## [1.1.4] 2021-12-10

### Fixed
  - Bug fixes in commissions

## [1.1.3] 2021-12-08

### Added
  - Added new module to admin the commissions

### Fixed
- Deals start at and expires at no longer changes itself on update (due to lack of timezone control) 


## [1.1.2] 2021-12-07

### Fixed
- Blast edit now parses string media arrays in DB 

## [1.1.1] 2021-12-07

### Added
  - Include in the client Form the option to change the user role from customer to socio (referrer)

## [1.1.0] 2021-12-06

### Added
- Disabled status in User details

## [1.0.101] 2021-12-02

### Added
- Deal form now has a way to specify if the asset is a flyer or not

### Changed
- Deal form now shows 3 assets instead of 2 and they are inside a panel

### Fixed
- Removes first letter from Argentina zip codes
- Orders expected delivery date no longer changes itself on update (due to lack of timezone control)


## [1.0.100] 2021-11-17

### Fixed
- Add new order status DELIVERY FAILED 

## [1.0.99] 2021-11-17

### Fixed
- Deals with null media could not be updated


## [1.0.98] 2021-11-17

### Added
- Dev dependencies concurrently, nodemon and yalc were added
- Added yarn watch command that publishes the yalc package and pushes any future changes

### Changed
- Dependencies "@babel/plugin-proposal-optional-chaining" and "@babel/preset-env" were updated to "^7.16.0"
- Dev dependencies "@babel/cli" and "@babel/preset-react" were updated to "^7.16.0"
- package.json resolutions set to "**/@babel/runtime": "^7.16.0"
- Updated README to use new yalc linking approach

### Fixed
- New yalc linking and config-override configuration prevent babel errors


## [1.0.97] 2021-11-08

### Added
- Added some cache for the Google Autocomplete functions.
- "@react-google-maps/api" module
- .eslintrc file with some basic rules
- Added Marker icon to Icons font

### Changed
- GoogleAutocomplete functions were renamed to reflect their functionality.
- Most GoogleAutocomplete static functions were moved to a sepparate "utils" file.
- Google Autocomplete now uses the Google Maps Plus Code for City calculation when available before using address components.
- Selecting a place in Address Place suggestions now replaces the Address with that text instead of a secondary address.


## [1.0.96] 2021-11-08

### Fixed
- Deal Image Upload is no longer replacing previous uploads


## [1.0.95] 2021-11-08

### Fixed
- Deal edit not loading info
- Please wait for some forms
- Changed text Error text loading Zoho Deals


## [1.0.94] 2021-11-08

### Changed
- Consumidor final changed to Cliente final
- Create new X button changed to "Create"
- Changed "paquete" to "combo"
- "i18next" and "react-i18next" updated to 21.4 and 11.13 respectively
- Cleaned OrdersCreate translations
- Deal form no longer depends on mediaFile state, it now modifies the Formik value media directly

### Fixed
- Changing from another customer to a new customer in the order form no longer disables editing the phone number
- Selecting a new customer in an Order form now properly cleans the Address
- Fixed Orders export expectedDeliveryDate missing translation
- Deal form resetting on some initial value updates such as image upload (Formik's enableReinitialize removed)
- Image upload no longer clears Deal form


## [1.0.93] 2021-11-04

### Added
- Ability to Select a category to a deal


## [1.0.92] 2021-11-02

### Added
- Ability to Select a "Zoho Product" from a Dropdown and Populate a new Deal's information.
- Show the zoho Images in deal details


## [1.0.91] 2021-11-02

### Changed
- Deal media selection upgrade
- Deal media is required
- Deal internal logic adjusted to be simpler


## [1.0.90] 2021-10-29

### Added
- Clone deal feature

### Changed
- Deals list now has a menu to Edit or Clone a deal

### Fixed
- z-index for Create Deal calendar (price fields were showing on top)


## [1.0.89] 2021-10-27

### Changed
- Disable payment type in Order update when the current Order status is an RMA

### Fixed
- Updates for Orders with an RMA state no longer submit the paymentType


## [1.0.88] 2021-10-26

### Added
- Menu component to add clickable dropdown menus
- Socios section Shop button
- Utils getShopUrl function that uses REACT_APP_SHOP_BASE_URL env var

### Fixed
- Create button text styles fixed

## [1.0.87] 2021-10-25
### Added
  - Added Added Bundle Flag for Offer Creation

## [1.0.86] 2021-10-25
### Added
  - Add Market Price in Deals

## [1.0.85] 2021-10-25

### Added
  - Filter by expected delivery date


## [1.0.84] 2021-10-25

### Changed
  - Changed the service to update the commission status change


## [1.0.83] 2021-10-25

### Fixed
- Reset all filters now properly cleans the search field and resets the results (the country param wasn't set by default)


## [1.0.82] 2021-10-25

### Added
- Export Orders grouped by dealor listed by row.


## [1.0.81] 2021-10-13

### Changed
- Blast form fields are disabled when on "Edit" view (Update button is still disabled)
- Blasts and Groups forms now use async Selects to fetch Tenderos (Deals and Groups)
- Unified label generation for Deals and Users under the utils file
- Blasts form area changed to avoid double scroll on dropdown expanded


## [1.0.80] 2021-10-13

### Fixed
- Editing an out of stock Deal was showing 1 as inventory instead of 0


## [1.0.79] 2021-10-13

### Fixed
- Cleaned the payload of exports when select all countries in the filters


## [1.0.78] 2021-10-12

### Added
- added timeZone offset in the orders, customers and referrers export request.


## [1.0.77] 2021-10-12

### Added
- Add new orders status RMA completed


## [1.0.76]

### Changed
- Google Autocomplete now restricts by country
- Google Autocomplete now updates verified status
- Export GoogleAutocompleteService


## [1.0.75] 2021-09-16

### Removed
- Removed headers from export request


## [1.0.74] 2021-09-16

### Changed
- updated export orders to get method.
- updated export users to get method.


## [1.0.73] 2021-09-13

### Added
- added customer and referrer email in export headers.


## [1.0.72] 2021-09-10

### Changed
- When editting Orders, the update button, description and expected delivery date fields were moved back to the bottom

### Fixed
- Phone number now will also validate string length to have at least 8 characters long
- Send user: active when creating users in an order


## [1.0.71] 2021-09-10

### Added
- SKU added to Deals list
- SKU added underneath Deal Name in Orders list

## [1.0.70] 2021-09-10

### Added
- SKU below Deal name in Orders form
- SKU and Creation date next to name in Orders form Deal dropdown

### Changed
- Orders Address can now be changed if status is 'placed' or 'pending'
- Orders payment type can now always be edited

### Fixed
- Adjusted Orders deal quantity selector so it doesn't break with screen size changes


## [1.0.69] 2021-09-09

### Added
- Country selector for users that can manage more than 1 country

### Changed
- Deals collapsable Emoji section
- Deals form now has currency combined with prices and it also matches the selected country
- Deals form modal width to fit design
- Country dropdown disabled and preselected according to top country selection (Customer, Referrer, Deal and Order forms)
- Phone number country code preselected according to top country selection (Customer, Referrer and Order forms)
- Phone nummber country code dropdown and input locked so only the number can be changed (Customer, Referrer and Order forms)
- Orders form Deals, Tenderos and Customers search inputs will be filtered by currently selected country

### Fixed
- Customers and Referrers with no Address no longer show "undefined undefined"
- Changed forms button color to match design
- Prefill country for each form (Customers, Referrers, Deals)
- Groups form add filter button adjustment
- "No data yet" translation
- Main Side bar shared components translations
- List "per page" translation
- Argentina phone number mask fix
- Attempt to fix estimatedDeliveryDate autocomplete one more time
- Added another city alternative to GoogleAutocomplete address, when missing locality, postal_town and administrative_area_level_2, use administrative_area_level_1

### Removed
- Context files


## [1.0.68] 2021-09-02

### Added
- yarn module 'debounce-promise'

### Changed
- Debounce on SearchSelect inputs

### Fixed
- Removed additional request on Orders list load (SearchFilter)


## [1.0.67] 2021-09-02
### Changed
- updated service /orders/search to GET method.

## [1.0.66] 2021-08-27

### Added
- Payment Method eVoucher (MercadoPago, RapiPago, Effecty, etc...)
- Icons for Clone, FAQ, Valid + Invalid Address and Smiley face
- Table col width can now be specified

### Changed
- Orders table now has Created At as the 2nd row and Expected delivery date as the 2nd to last
- Orders, Customer and Referrer lists now show the Address in the same format
- Orders address is now fixed at 20%
- Table addresses now show a check or an X to indicate valid addresses (has coordinates != (0, 0))
- When updating an Order now only statuses are changed separately and the PUT request will only include notes, expectedDeliveryDate and status
- Orders update form now shows Expected Delivery Date and Notes at the top
- Orders Expected Delivery Date field now supports time
- Moved Order update button to the top
- Switched Status selects places in Order form so they match the order from the table


## [1.0.65] 2021-08-30

### Added
- Include Payment Type in Export File

## [1.0.64] 2021-08-27

### Added
- Google map component
- npm package "react-geocode" (^0.2.3), "react-google-autocomplete" (^2.4.0), "react-google-maps" (^9.4.5)

### Changed
- Placeholder text color for inputs now matches the one for textareas (#9A9FA5)
- Google map component now also moves and centers marker when dragging map
- Google map now updates address upong map ends drag, map is zoomed in/out (500ms debounce) or marker is moved

### Fixed
- Google map clear '##' from Address geocoding
- Google map city is now (locality, postal_town, administrative_area_level_2)
- When opening map, use input text instead of first previously suggested place
- Text area color and placeholder color


## [1.0.63] 2021-08-23

### Removed
  - Remove Transacción Total column in export file


## [1.0.62] 2021-08-23

### Added
  - Export only one row per Order


## [1.0.61] 2021-08-23

### Added
  - Added more info to order address export


## [1.0.60] - 2021-08-23

### Added
- Added colored dots to Expired At dates to show if a deal is about to expire

### Changed
- Adjusted deals so expired deals are only shown in the Deals list view

### Fixed
- Don't allow to modify prices when editing Order form
- Orders form customer clear wasn't removing the previously selected Customer


## [1.0.59] - 2021-08-13

### Changed
- Orders now uses search dropdowns for both Referrer and Deals
- Order Form Total is now aligned to the right
- Changed labels for Deals, Tendero and Customer/Tendero in the Orders form (added description)

### Fixed
- Order Total is now a sum of Final Price instead of WAO Price
- Referrer title Spanish text in Order form


## [1.0.58] - 2021-08-10

### Fixed
- Delete modals for Referrer and Customer


## [1.0.57] - 2021-08-10

### Changed
- For Deals start and expiration time it is now possible to specify time

### Fixed
- Mention expired Deals in the error description in the Orders form
- Specify deals out of stock in Orders form
- Highlight Deals with errors in Orders form
- Deals edit form now uses a matching Date format
- Deals Date fields autocomplete removed


## [1.0.56] - 2021-08-10

### Fixed
- Deals expiration date can no longer be lower than start date


## [1.0.55] - 2021-08-10

- Add error message from backend on failed requests
- English placeholders for first name and last name


## [1.0.55] - 2021-08-10

### Fixed
- Add error message from backend on failed requests
- English placeholders for first name and last name


## [1.0.54] - 2021-08-06

### Changed
- Deals and Orders "Suggested Price" is now "Final Consumer Price"
- Billing Address can now be specified separately
- 2nd User address is now updated whenver the billing Address of an Order is changed

### Fixed
- console errors when selecting a user with an existing address missing optional fields


## [1.0.53] - 2021-08-06

### Changed
- Deal Discount price can't be greater than price


### Fixed
- Don't send sku field if not provided when creating a Deal, send null if removed while updating
- Send discount price null if removed while updating deal


## [1.0.52] - 2021-08-06

### Fixed
- Exports date was not shown properly
- Adjusted date export labels
- Export date sent is now UTC and standard across all dates
- cleanObject now formats dates to utc


## [1.0.51] - 2021-08-05

### Added
- SKU field in the Deals form

### Changed
- Compacted Deal form layout a bit
- Deal media upload box corners are now round


## [1.0.50] - 2021-08-04

### Added
- Reset filters button now also clears the search term


## [1.0.49] - 2021-08-03

### Added
- Filters button to clear filters

### Changed
- TopFilters state is now handled as a single object (Might want to change to useReducer in the future)

### Fixed
- Filters date input
- Orders country validation is now enforced


## [1.0.48] - 2021-08-02

### Fixed
- Exports modal (module name)


## [1.0.47] - 2021-08-02

### Changed
  - Added users document in the export function.
  - Added sku of deal in the export function.


## [1.0.46] - 2021-08-02

### Updated
- Filters button to show/hide filters
- Search Input


## [1.0.45] - 2021-08-02

### Added
- Filters button to show/hide filters
-  \[module\] listed" text added
- "Created From" and "Created To" filters now show a calendar icon

### Changed
- Moved search bar from TopFilters to HeaderViews
- Moved module names/translations to utils (handles plurals and gender for each module)
- Date Range is now selectable inside both "Created From" and "Created To" date filters
- Updated react-datepicker to v4.1.1
- Address field "Region" is now optional


## [1.0.44] - 2021-07-27

### Changed
- Orders search now displays phone number along with Tendero name


## [1.0.43] - 2021-07-26

### Fixed
- Ignore status missing when Formatting status to upper case


## [1.0.42] - 2021-07-26

### Changed
- Gender "Unknown" is now hardcoded to "I Don't Want To Define Myself"

### Fixed
- Blast asset rendering (Blast creation was broken)
- Orders Deal details quantity now matches correct amounts
- Order with new customer, address no longer breaks
- Simple Deal expired validation in Order Creation
- Orders Deal table "Possible Comnission" translation typo fix

### Removed
- Box average cards for every list

### Fixed
- Missing Referrer country validation
- Slightly reduced button padding to fit more text without a new line 


## [1.0.41] - 2021-07-26

### Fixed
- Remove "primaryAddress", "lat" and "lng" params when updating an address from an Order


## [1.0.40] - 2021-07-22

### Changed
- Address can now be modified in Orders
- "updateDocument" workflow function is now named "updateUser"

### Fixed
- Orders filters layout

### Removed
- "updateDocument" state leftovers


## [1.0.39] - 2021-07-22

### Added 
- Referrer and Customer "Created From" and "Created To" filters added
- Referrer Metdata Status filter added
- Referrer export adjusted to list Metadata Status

### Fixed
- User name in groups fixed (all names were "undefined" after full name split update)


## [1.0.38] - 2021-07-22

### Changed
- Function to list orders changed from "GET /orders" and "GET /orders/status" to "POST /orders/search"
- Renamed "capitalizeFirstLetter" to "capitalize"
- Moved JSX renderAsset function from utils to BlastCreate since utils should not handle JSX
- Referrer Status column changed to show Metadata Status instead of User Status

### Fixed
- Reverted Order status from "Cancelled" to "Canceled" so it matches backend
- Deals filters no longer include Order status selects
- Adjusted order filters spacing
- Translated "Sin limite de cantidad" in Deals list
- "Out of Stock" is now properly shown in Deals list
- Adjusted Referrer status translations


## [1.0.37] - 2021-07-21

### Changed
- Referrer and Customer forms Country select is now separate, the Address component uses its value if required

### Fixed
- Referrers meta dates format fix


## [1.0.36] - 2021-07-16

### Fixed
- Fixed Request Twice on main Wao modules

### Changed
- Fixed and supported Navigation using React Router


## [1.0.35] - 2021-07-16

### Added
- For each Module's list Search and Country labels were added
- Orders can now be filtered by the last date a status changed
- Selecting a status change date in the Order's list filter will select 'delivered' if no status is provided
- Added Order RMA statuses

### Changed
- Each module's list created at filters label updated
- Orders list filters layout rearranged to fit status change date


## [1.0.34] - 2021-07-15

### Fixed
  - Fixed the message when the exports of users is success.


## [1.0.33] - 2021-07-14

### Fixed
- Customers first name and last name placeholders
- Referrers first name and last name placeholders
- Referrers meta labels now come directly from the backend
- Orders first name and last name placeholders and labels

### Added
- The export customers and referrers functionality

## [1.0.32] - 2021-07-13

### Added
- Phone number for Referrer and Customer in Orders list table

### Changed
- Referrer and Customer Forms layouts are now more compact by joining some fields
- Full Name was now split into First Name and Last Name all across the platform
- Order, Referrer and Customer lists now join First Name and Last Name into Name column
- Phone input now uses full width
- Order list table columns "Referrer Name" and "Customer Name" are now "Customer" and "Referrer"

### Fixed
- Center referrers form meta checkbox vertically
- Textarea (Address description) disabled colors updated to match other fields
- Order Form Delivery Date field translated
- Order deal Table header translations


## [1.0.31] - 2021-07-09

### Added
- Orders listing
  - Filter by Commission Status
  - Filter by Transaction Status
  - Uses an async SearchSelect to search by Order, Deal, Referrer and Customer
  - Join First Name and Last Name if available
- SearchSelect
  - Async mode now supports creating non matching options with the attribute 'creatable'
  - Async mode now supports hiding the button with the attribute 'hideButton'
- Order edit now allows to modify Commission and Payment statuses
- utils formatDate now accepts another parameter to make it UTC
- New column in the orders export

### Changed
- Orders listing top filters layout changed
- Orders listing Payment status now actually displays and order's transaction status
- Adjusted tables date format so it is standardized for all of them and it is localized according to browser timezone and language

### Fixed

- FromNow time now works properly
- Fix TopFilters incorrect left padding (added item to Grid container)

### Removed

- "dist" folder is no longer tracked by git


## [1.0.30] - 2021-07-08

### Fixed
- Customers create and update
- Referrers create


## [1.0.29] - 2021-07-06

### Changed
- transactionType changed to paymentType from Orders form

### Removed
- transactionId removed from Orders form


## [1.0.28] - 2021-07-02

### Added
- Added gender translation features for each model
- OrdersExport Component to export Orders using the current filters
- Export button added next to the Create new Order

### Changed
- Updated models to use the new crudAction params
- CRUD notifications are now properly translated


## [1.0.27] - 2021-07-01

### Fixed
- Edit Orders


## [1.0.26] - 2021-07-01

### Added 
- Payment Status and Commission Status added to Orders list
- Table badge type column now supports a description

### Fixed
- Nullable address fields warning for Customer, Referrer and Orders


## [1.0.25] - 2021-06-29

### Added
- "info1" and "info" icons added to the icons font bundle
- Address module
- Description field was added to the address component (used to provide instructions)
- Orders listing table now shows address, along with an i icon that has the address description as a tooltip

### Changed
- Horizontal bar hidden for Create modals
- Addresses in forms are now 1 Address component instead of several separate ones
- Email and Phone columns translated
- Referrer metadata is now shown in 2 columns
- Referrer list status first letter capitalized
- Minor Orders CRUD cleanup
- Disabled all fields but the status when editting and order
- Disabled address fields when selecting an existing buyer for Order creation

### Fixed
- Orders listing quantity is disaplayed correctly (was probably mistakenly removed with Tables refactor)

### Removed
- Orders business address logic

## [1.0.24] - 2021-06-25

### Added
- CHANGELOG.md file

### Changed
- Titles and Create new Module button translatedfor each list view, some translations are now nested

### Fixed
- Blasts list view title
- Most views crashing when tables were empty (Deals, Orders, Groups, Referrers, Customers). "tableHead" was updated to "columns"

### Removed
- Mode from BasicModal component, if html content is provided it is used


## [1.0.23] - 2021-06-21

### Added
- Created At column in Customers and Referrers Tables
- Discounted Price (Discount Price %) column to Deals table
- Title to timestamp and from now type table columns
- Actions column with an edit button

### Changed
- "commission" left margin in Deals form was increased
- Moved add filter button to right side on Groups form
- Orders form "Billing Country" now uses the same component as the other Country selectors
- Tables are now updated upon model Create and Edit
- Referrers metadata Date format is now YYYY-MM-DD hh:mm:ss
- Tables now handle column types and allow alignement to be specified

### Fixed
- Default inventory when checked is now 1 in the Deals form
- Customer form Country was reenabled
- Orders form:    
    - Deals selection content was aligned to center
    - Cursor changed to pointer for deal quantity buttons
    - Address was not clearing all fields when you switched Customer
    - Deal quantity is now properly set to current value regardless of max
    - Deal quantity can now be increased
    - Deal quantity maximum value now also considers current offer quantity

### Removed
- Autocomplete from timestamp meta inputs from Groups and Referrers forms

[Dev]: https://bitbucket.org/rokk3rlabs/wao-shared-components/branches/compare/dev%0Dmaster
