giovanni
33bae94d43
fix over consume by code, revert migration overconsume sell
2026-06-06 07:49:34 +07:00
Giovanni Gabriel Septriadi
1b3642ef1d
Merge branch 'feat/marketing-filter-range-date' into 'rc/01'
...
feat: add date range filter to marketing list API
See merge request mbugroup/lti-api!592
2026-06-04 16:57:32 +00:00
giovanni
a70a69a5be
add validasi overselling telur
2026-06-03 10:26:40 +07:00
ValdiANS
981fb98248
fix: use soDate instead of deliveryDate for Delivery Order rows in marketing export
...
In the Excel export, Delivery Order rows were writing `group.DeliveryDate`
(the actual delivery date) to column B ("Tanggal"), while the web UI always
shows `so_date` for every row. This caused a visible mismatch — e.g. DO-01954
displayed "31 Mei 2026" on the web but "01-06-2026" in the exported file.
Changes:
- Remove the `doDate` variable from the DO branch; both the empty-deliveries
fallback row and each per-delivery row now write `soDate` to column B,
consistent with what the web shows
- Fix a pre-existing nil pointer dereference: `prod.ProductWarehouse.Warehouse`
was accessed without a nil guard in the SO branch
- Update the export test to match the current 17-column layout (headers and
row assertions were stale), and add a regression case that explicitly
asserts a DO row with soDate=2026-05-31 / deliveryDate=2026-06-01 produces
"31-05-2026" in column B
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-02 16:48:06 +07:00
ValdiANS
4b9e86427d
feat: add date range filter to marketing list API
...
Added start_date, end_date, and filter_by query parameters to the
GET /api/marketing/ endpoint. Users can now filter marketing records
by a date range using either so_date (Sales Order date, default) or
created_at as the target column.
Changes:
- validation: added StartDate, EndDate (YYYY-MM-DD format), and
FilterBy (oneof: so_date, created_at) to DeliveryOrderQuery struct
- controller: parse the three new query params in GetAll handler
- service: apply >=start / <end+1day date range filter in the query
modifier using the existing utils.ParseDateRangeForQuery helper
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-06-02 13:19:52 +07:00
giovanni
68bddd5c78
adjust response list marketing add grand total so dan do
2026-05-31 16:38:22 +07:00
giovanni
bfef144668
add filter warehouse to marketing;add detail export recording egg; adjust format export marketing
2026-05-31 16:23:22 +07:00
giovanni
8da2b7a3ab
ini ar fifo
2026-05-29 00:59:42 +07:00
giovanni
ef985b5da5
fix list penjualan and export penjualan dengan qty
2026-05-25 14:50:01 +07:00
giovanni
495f5f5cc1
adjust export format purchase and filter
2026-05-21 11:48:24 +07:00
giovanni
d2aa3ebac7
fix status marketing when edit sales order and edit marketing delivery
2026-05-19 12:15:53 +07:00
giovanni
04626560eb
adjust sorting pembelian dan expenses
2026-05-13 15:34:24 +07:00
giovanni
eac671fa80
adjust calculate total price marketing ayam pullet
2026-05-12 19:55:06 +07:00
giovanni
094e8f904b
add query sort by grand total
2026-05-07 14:11:39 +07:00
giovanni
0357531e73
add sorting at marketing
2026-05-07 14:03:17 +07:00
giovanni
7cc5c39092
adjust validation limit max 100
2026-04-27 11:54:29 +07:00
Adnan Zahir
e24e2ff123
feat: filter improvement
2026-04-23 00:17:24 +07:00
giovanni
ff630a1ed0
add export po and marketing
2026-04-22 19:22:29 +07:00
Adnan Zahir
9b9f5e257e
Merge branch 'codex/bulk-approve-marketings-expenses' into 'development'
...
fix: DTO mismatch marketings
See merge request mbugroup/lti-api!434
2026-04-22 11:49:44 +07:00
Adnan Zahir
adabd43f38
fix: DTO mismatch marketings
2026-04-22 11:41:27 +07:00
Adnan Zahir
640b6b382b
Merge branch 'codex/bulk-approve-marketings-expenses' into 'development'
...
fix: DTO adjustment for bulk approve
See merge request mbugroup/lti-api!433
2026-04-22 10:11:56 +07:00
Adnan Zahir
c8ea370e4b
fix: DTO adjustment for bulk approve
2026-04-22 09:58:54 +07:00
Adnan Zahir
e91c45ee50
fix: internal server error because of date parsing
2026-04-21 21:41:54 +07:00
Adnan Zahir
5e7c51e9c2
feat: export input progress report for expenses, marketings, purchases, and recordings
2026-04-21 21:24:19 +07:00
Adnan Zahir
0d04397bd5
feat: bulk approve endpoint for marketings and expenses
2026-04-21 20:06:37 +07:00
giovanni
30adbb6b8a
fix do
2026-04-19 21:24:29 +07:00
giovanni
cd549de578
adjust edit delivery order; add migration for delivery order; adjust response get marketing
2026-04-14 14:48:56 +07:00
giovanni
80f190b69b
fix get detail marketing delivery
2026-04-08 13:41:17 +07:00
giovanni
18cf180982
adjust calculate total price create sales order for telur and convertion peti and qty
2026-04-07 18:39:32 +07:00
Adnan Zahir
be00837148
codex: initiated changes
2026-03-30 13:40:29 +07:00
Adnan Zahir
f8ca404bbb
Merge remote-tracking branch 'origin/dev/fifo-v2' into development
2026-03-08 15:07:59 +07:00
ragilap
d334f46829
[FEAT/BE] wiring recording,transfer_stock,transfer_laying,marketing for consumer chick in project flock population
2026-03-04 12:41:26 +07:00
Hafizh A. Y
944604adad
fix: first push need support testing, and implemented fifo v2 to all modules
2026-02-27 19:09:01 +07:00
ragilap
9d6a69dc4d
[FEAT/BE] fix status closed project flock, closing perhitungan sapronak
2026-02-23 11:33:57 +07:00
ragilap
0ac174fdc6
[FEAT/BE] fix filter rejected delivery service
2026-02-22 21:12:57 +07:00
ragilap
4bf9b12680
[FEAT/BE] fix response closing and fix status rejected filter
2026-02-20 14:46:01 +07:00
ragilap
f74b6476de
[FEAT/BE] Add filter delivery order, adjust response purchase and fcr growing recording
2026-02-06 14:13:05 +07:00
ragilap
77ec805931
[FEAT/BE] Add filter delivery order and adjust response purchase
2026-02-06 01:02:03 +07:00
aguhh18
aa1fd1c35b
FEAT[BE] :update price calculation in sales order service for accurate rounding, add new conversion unit for quantity
2026-02-05 09:57:38 +07:00
aguhh18
1d95976360
FEAT[BE] :add marketing type field to delivery and sales order DTOs, enhance validation and service logic for consistent marketing type handling
2026-02-04 14:47:56 +07:00
aguhh18
357b5709f5
FEAT[BE] :add conversion fields and week tracking to marketing product DTOs and update mapping functions
2026-02-04 12:48:05 +07:00
aguhh18
90de167fcd
FEAT[BE] :add type filtering and validation to product warehouse services
2026-02-04 09:59:15 +07:00
aguhh18
f59cdd821a
FEAT[BE] :add marketing type and conversion fields to marketing entities and services
2026-02-03 13:32:37 +07:00
aguhh18
9a328ae1e4
FEAT[BE] :implement proportional distribution with rounding for stock allocation in transfer laying approval process
2026-02-03 08:06:52 +07:00
aguhh18
e406b20ca7
FEAT[BE] :Fixing fifo stock when marketing deleted
2026-02-02 21:11:27 +07:00
aguhh18
1c1f2f03aa
FIX[BE] :remove unused product warehouse repository import and streamline stock consumption logic in consumeDeliveryStock method
2026-02-02 16:46:33 +07:00
giovanni
4f9cd5131f
Merge branch 'development' into feat/inventory-logs
2026-01-30 12:11:34 +07:00
giovanni
9b6637066e
fix calculate age at closing data production
2026-01-30 10:46:54 +07:00
aguhh18
86caa6c4d4
FIX[BE]; fixing penjualan qty tidak berkuranga
2026-01-29 12:24:32 +07:00
giovanni
ac3623fa97
Merge branch 'development' into feat/inventory-logs
2026-01-28 13:44:26 +07:00