Konrad
11e9329b97
Merge pull request #10351 from rioug/9874-order-cycle-creation-fix-needless-warning-and-data-loss
...
Order cycle creation, fix needless warning and add warning to prevent data loss
2023-02-16 16:08:37 +01:00
Jean-Baptiste Bellet
bddd887dcd
Load orders only if current line_items are loaded
...
+ update spec as well
2023-02-03 12:25:47 +01:00
Jean-Baptiste Bellet
d00e75de70
We should load orders that are linked to line_items displayed
...
This should not be related to any pagination, search or whatever: actually we consolidate line_items with order additional info based on line_items.order.id.
2023-02-03 11:40:07 +01:00
Jean-Baptiste Bellet
06cbc120f5
Pagination is actually linked to line_items and not orders
...
We display line_items as rows in BOM
2023-02-03 11:37:51 +01:00
Gaetan Craig-Riou
de97c59632
Order cycle exchange form, only set red border on pickup_time field if empty
...
The red border is set by setting pickup_time as $dirty, it then blocks next button and add leave page warning when it is not necessary, this is a fix for it.
2023-02-01 09:43:28 +11:00
Filipe
ad4670705e
Merge pull request #10245 from jibees/10222-in-bom-dont-show-group-buy-info-if-equal-to-0
...
Admin, BOM: Don't display "group by size" if group by product value is actually null
2023-01-25 15:29:05 +00:00
Jean-Baptiste Bellet
1a874d6fcf
Introduce pagination for BOM page
2023-01-18 17:39:42 +01:00
Jean-Baptiste Bellet
85a748af99
When selecting an OC, do not pre-fill date range with OC date range
...
+ update specs as well
2023-01-18 17:39:42 +01:00
Jean-Baptiste Bellet
121a4a08af
On filters reseting , set dates to undefined: range is not mandatory
...
+ send flatpickr event to reset the component
+ update specs as well
2023-01-18 17:39:09 +01:00
Jean-Baptiste Bellet
b75b123cba
Don't check date range before refreshing data: they aren't mandatory
...
- Creates a simple formatDates method that handle date formatting before sending it as params instead of creating scoped variable (useless)
- Put key to `undefined` (ie. don't then the params) if no date: already handled by the backend
2023-01-18 17:39:09 +01:00
Jean-Baptiste Bellet
2258af9cec
Don't display "group by size" if value is actually null or empty
...
+ add spec
2023-01-06 14:39:39 +01:00
Sigmund Petersen
d5ef68323e
Merge pull request #10169 from cillian/remove-unused-angular-directives
...
Remove unused angular directives
2023-01-01 13:14:23 +01:00
Filipe
fdc78b717e
Merge pull request #10123 from jibees/10017-introduce-a-filter-results-button-on-the-bom-page
...
Introduce a filter results button on the BOM page
2022-12-28 16:55:30 +00:00
ijdershem-jf
0d37614e90
[OFN-9834] Preserve 'Items' unit size selection on new product form error
2022-12-24 09:31:31 -07:00
Cillian O'Ruanaidh
d90d352a86
Remove unused showMore angular directive
2022-12-16 12:55:28 +00:00
Jean-Baptiste Bellet
a0056553b0
Do not override date range selection when an order cycle is selected
...
Therefor user can change date range after selecting an order cycle
2022-12-14 10:14:54 +01:00
Jean-Baptiste Bellet
ac494f97ec
When changing order cycle selection, update date range selector value
...
Date selector should change when selecting an order cycle in order to reflect the order cycle date range itself
2022-12-14 10:12:42 +01:00
Jean-Baptiste Bellet
4716ed19dc
Remove the watch collection on date range: not needed anymore
...
Yes!
This simplifies a lot the code now since we have a "Search" button and we don't need to watch for date range changes
2022-12-12 16:18:39 +01:00
Jean-Baptiste Bellet
cd743e5c2c
Call resetSelectFilters on page load
...
+ init start and end date with a method (will be re-used)
2022-12-12 16:18:39 +01:00
binarygit
7df2ad13c6
[Admin][Order Cycle] Enable save btn after removing fee
2022-12-06 10:22:10 +05:45
Konrad
ae09f7a415
Merge pull request #9869 from abdellani/fix-unit_value_with_description-calculation-on-products-page_admin_dashboard
...
use js-big-decimal to calculate unit_value_with_description in products page
2022-11-10 18:47:16 +01:00
Mohamed ABDELLANI
44d719fcb5
use js-big-decimal to calculate unit_value_with_description
2022-11-08 10:26:00 +01:00
Jean-Baptiste Bellet
39e5613db8
When confirm modal is dismissed, reset daterange picker to previous values
...
+ update specs as well
2022-11-04 14:18:29 +01:00
Jean-Baptiste Bellet
1a241e4953
Only call confirmRefresh() on time, on date range change
...
Previously, when changing the date range, we had several modals that opened.
Now, the `confirmRefresh()` method should be open only one time.
Update specs as well:
- use the method `accept_confirm`
- Removing pending and sleep as the spec is now green
2022-11-03 15:55:48 +01:00
saunmanoj888
490c5afc59
Mock bigDecimal methods in specs
2022-10-25 00:05:31 +05:30
saunmanoj888
ee8454bd2c
Use js-big-decimal package for calculation
2022-10-21 21:30:00 +05:30
saunmanoj888
8e45b758ba
Fix unit value UI issue
2022-10-19 22:59:28 +05:30
Rachel Arnould
617a417dc2
Merge pull request #9506 from binarygit/remove-angular-from-payment-methods
...
Remove angular from payment methods
2022-10-11 13:13:26 +02:00
Manish Sharma
cd71233163
Fixed duplicates enterprises in order cycles
2022-10-10 14:30:58 +05:30
Jean-Baptiste Bellet
e076e23064
Do not use ng-change on endDate but instead watch both start and end date
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
8942d3d17b
Clear date on custom event flatpickr_clear
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
ddfbcacd83
Include plugins
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
c3a7acf9ad
import locale
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
fb0d922d73
Remove datetimepicker directive + default values
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
c6332ab306
Remove datepicker instance
2022-10-08 16:36:26 +02:00
Jean-Baptiste Bellet
d73d6dcdb6
Do not import flatpickr via this require
...
as now flatpickr is managed by yarn and should be imported when module need it, via import
2022-10-08 16:36:26 +02:00
binarygit
01c477f2cb
Remove angular from Payment Methods
2022-10-08 14:20:54 +02:00
binarygit
25ae10dbe8
Create bulk orders cancellation feature
2022-10-04 16:57:31 +02:00
Ashwini Seshadri
edee5c693b
Changed new subscription dialog to use tom-select from select2
...
fixed z-index, text-alignment in the dropdown menu to left in new subscription modal, replaced click_link with page.find().click in subscription specs, removed href in subscription index
2022-09-28 10:47:39 +02:00
Rachel Arnould
e98d4af630
Merge pull request #9659 from saunmanoj888/fix-bulk-product-update-unit-value
...
Allow to change unit value for numbers with a comma separator on bulk product update
2022-09-21 13:04:08 +02:00
binarygit
90f4b1328b
Remove angular from shipping methods tab in enterprise/edit
2022-09-13 15:20:33 +05:45
saunmanoj888
6917125173
Allow to change unit value for numbers with a comma separator
2022-09-12 15:55:03 +05:30
Maikel
44bf63137a
Merge pull request #9606 from binarygit/remove-angular-from-address
...
Remove Angular from Address Tab
2022-09-12 13:49:54 +10:00
Jean-Baptiste Bellet
d53b2b94b9
When creating new product via /admin/products/new use BigDecimal
...
to avoid bad rounded multiplication
example here:
700*0.001 = 0.7000000000000001
+ update specs as well
2022-09-07 09:17:46 +02:00
Jean-Baptiste Bellet
4452ad2c51
Use BigDecimal to avoir multiplication/division floating errors
...
Like 28.35 * 12 / 12 = 28.350000000000005
+ in js, use parseFloat() to format `12.00` as `12`
2022-09-07 09:17:46 +02:00
Jean-Baptiste Bellet
6594419b22
Add js-big-decimal to work with division and multiplication
...
Use a lib instead of Math.round((value*100)/100)
2022-09-07 09:17:46 +02:00
binarygit
abbb61b943
Remove country controller from enterprises/new and Business Details tab
2022-09-05 09:52:27 +05:45
binarygit
8861b6d077
Replace permalinks angular ctrl with stimulus
2022-08-31 10:06:51 +05:45
binarygit
79ba223e12
Delete angular code for side_menu
2022-08-10 15:14:15 +05:45
jibees
9b1dcdcc78
Merge pull request #9412 from binarygit/optimize-notes-and-tracking-workflow
...
Optimize notes and tracking workflow
2022-07-21 17:02:03 +02:00