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 Gabriel Septriadi
ef2f9568ad
Merge branch 'rc/01' into 'production'
...
Rc/01
See merge request mbugroup/lti-api!583
2026-06-01 15:01:07 +00:00
Giovanni Gabriel Septriadi
badbe4086a
Merge branch 'fix/reconcile-fifo' into 'rc/01'
...
add command to fix reconcile fifo; fix fifo stock v2
See merge request mbugroup/lti-api!582
2026-06-01 14:46:45 +00:00
Giovanni Gabriel Septriadi
6528739bfd
Merge branch 'feat/export-marketing' into 'rc/01'
...
Feat/export marketing and recording
See merge request mbugroup/lti-api!581
2026-06-01 14:45:41 +00:00
giovanni
68bddd5c78
adjust response list marketing add grand total so dan do
2026-05-31 16:38:22 +07:00
giovanni
90efd0ba5a
add command to fix reconcile fifo; fix fifo stock v2
2026-05-31 16:25:16 +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 Gabriel Septriadi
09b1f19d19
Merge branch 'rc/01' into 'production'
...
Rc/01
See merge request mbugroup/lti-api!578
2026-05-30 03:14:16 +00:00
Giovanni Gabriel Septriadi
672f80a3ba
Merge branch 'fix/week-recording' into 'rc/01'
...
Fix/week recording
See merge request mbugroup/lti-api!577
2026-05-30 03:05:50 +00:00
giovanni
0f12c706b0
fix calculate week create recording
2026-05-30 10:01:22 +07:00
Giovanni Gabriel Septriadi
d26c4e9e1a
Merge branch 'rc/01' into 'production'
...
Rc/01
See merge request mbugroup/lti-api!573
2026-05-29 16:28:37 +00:00
Giovanni Gabriel Septriadi
be7f3ac82a
Merge branch 'feat/trf-dep' into 'rc/01'
...
Feat/trf dep
See merge request mbugroup/lti-api!575
2026-05-29 15:45:33 +00:00
giovanni
a46edc4498
add adjustment depresiasi calculation and percentage depresiasi
2026-05-29 21:48:20 +07:00
Giovanni Gabriel Septriadi
254ce509fb
Merge branch 'feat/db' into 'rc/01'
...
add command for cleanup relesed stock allocations
See merge request mbugroup/lti-api!572
2026-05-29 11:48:36 +00:00
Giovanni Gabriel Septriadi
8624030b39
Merge branch 'fix/nomor-po' into 'rc/01'
...
normalize data po number to pr number and fix logic to fill field PO number
See merge request mbugroup/lti-api!571
2026-05-29 11:47:51 +00:00
giovanni
b4fbef702a
Merge branch 'production' into feat/transfer-laying
2026-05-29 16:04:46 +07:00
giovanni
0410169746
normalize data po number to pr number and fix logic to fill field PO number
2026-05-29 16:01:44 +07:00
giovanni
bbc7f0f6e9
add command for cleanup relesed stock allocations
2026-05-29 15:02:32 +07:00
Giovanni Gabriel Septriadi
6264b0f08d
Merge branch 'feat/fifo-ar' into 'production'
...
Feat/fifo ar
See merge request mbugroup/lti-api!567
2026-05-29 02:38:43 +00:00
giovanni
e6fe4d77eb
Merge branch 'fix/jamali' into feat/fifo-ar
2026-05-29 01:54:22 +07:00
giovanni
8ee87a73b7
fix
2026-05-29 01:49:58 +07:00
Giovanni Gabriel Septriadi
8fc41ee8e9
Merge branch 'fix/jamali' into 'production'
...
Fix/jamali
See merge request mbugroup/lti-api!565
2026-05-28 18:04:30 +00:00
giovanni
8da2b7a3ab
ini ar fifo
2026-05-29 00:59:42 +07:00
giovanni
7846487254
add migration for drift stock logs
2026-05-28 20:59:41 +07:00
giovanni
0ed67955a6
new file migration
2026-05-28 19:17:51 +07:00
giovanni
679d835fbb
add migration for normalize jamali non aktif to gudang farm jamali
2026-05-28 17:27:46 +07:00
giovanni
fecbcab48d
initial refactori trasnfer to laying, and depretitation to 25 week
2026-05-27 15:00:13 +07:00
Giovanni Gabriel Septriadi
2da476b276
Merge branch 'development' into 'production'
...
add excel export for purchase supplier report
See merge request mbugroup/lti-api!563
2026-05-25 08:16:24 +00:00
Giovanni Gabriel Septriadi
3232fc90bb
Merge branch 'export/marketing' into 'development'
...
fix list penjualan and export penjualan dengan qty
See merge request mbugroup/lti-api!562
2026-05-25 07:53:38 +00:00
giovanni
ef985b5da5
fix list penjualan and export penjualan dengan qty
2026-05-25 14:50:01 +07:00
Rivaldi A N S
55666c1dcd
Merge branch 'feat/export-balance-monitoring' into 'development'
...
[FEAT][BE] Export Balance Monitoring
See merge request mbugroup/lti-api!561
2026-05-25 07:25:03 +00:00
ValdiANS
c107f0f683
feat(reports): add Excel export to balance monitoring endpoint
...
Add ?export=excel support to GetBalanceMonitoring. Creates a new
repport.balance_monitoring.export.go with a 2-row merged header layout
matching the UI (Penjualan Ayam and Penjualan Telur grouped columns),
a totals row, red styling for negative Saldo Akhir, and frozen panes
below the header rows. Exported data reflects all active query filters.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-25 14:18:47 +07:00
Rivaldi A N S
ba8f00a560
Merge branch 'feat/export-report-purchases-per-supplier' into 'development'
...
[FEAT][BE] Export Report Purchases Per Supplier
See merge request mbugroup/lti-api!560
2026-05-25 04:35:15 +00:00
ValdiANS
65a1282312
add excel export for purchase supplier report
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-05-25 11:25:53 +07:00
Giovanni Gabriel Septriadi
1ca632d838
Merge branch 'development' into 'production'
...
Development
See merge request mbugroup/lti-api!559
2026-05-25 04:03:38 +00:00
Giovanni Gabriel Septriadi
f0403e2699
Merge branch 'hot-fix/cikaum' into 'production'
...
add migration for normalize wrong location pullet cikaum
See merge request mbugroup/lti-api!558
2026-05-23 04:25:29 +00:00
giovanni
3e34da7385
add migration for normalize wrong location pullet cikaum
2026-05-23 11:12:36 +07:00
Giovanni Gabriel Septriadi
8750e2ffec
Merge branch 'fix/location-flock' into 'development'
...
add migration for normalize wrong location pullet cikaum
See merge request mbugroup/lti-api!557
2026-05-23 04:07:29 +00:00
giovanni
3429529162
add migration for normalize wrong location pullet cikaum
2026-05-23 11:06:33 +07:00
Giovanni Gabriel Septriadi
32b8acb9dc
Merge branch 'fix/po-a' into 'development'
...
fix monitoring saldo
See merge request mbugroup/lti-api!556
2026-05-23 02:36:42 +00:00
giovanni
1992005b01
fix monitoring saldo
2026-05-23 09:32:21 +07:00
Giovanni Gabriel Septriadi
0d7a0e30cd
Merge branch 'fix/po-a' into 'development'
...
fix debt supplier ekspedisi only realisasi
See merge request mbugroup/lti-api!555
2026-05-22 12:55:39 +00:00
giovanni
b12f563bc4
fix debt supplier ekspedisi only realisasi
2026-05-22 19:54:53 +07:00
Giovanni Gabriel Septriadi
d0e7b7aad1
Merge branch 'fix/po-a' into 'development'
...
fix monitorin saldo without sales order;format date excel po
See merge request mbugroup/lti-api!554
2026-05-22 12:41:05 +00:00
giovanni
c676aed371
fix monitorin saldo without sales order;format date excel po
2026-05-22 19:40:05 +07:00
Giovanni Gabriel Septriadi
e781115390
Merge branch 'hot-fix/price-adj' into 'production'
...
hot fit update price adjustment stock
See merge request mbugroup/lti-api!553
2026-05-22 11:50:45 +00:00
Giovanni Gabriel Septriadi
7bbb6a836c
Merge branch 'hot-fix/price-adj' into 'development'
...
Hot fix/price adj
See merge request mbugroup/lti-api!552
2026-05-22 11:41:53 +00:00
giovanni
6bbab2f1d5
hot fit update price adjustment stock
2026-05-22 18:40:52 +07:00
Giovanni Gabriel Septriadi
70546c2302
Merge branch 'fix/monitoring' into 'development'
...
fix balance monitoring
See merge request mbugroup/lti-api!550
2026-05-22 08:56:31 +00:00