Changelog: Aryan - 2026-05-26
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Aryan focus on rounding financial figures to 2 decimal places to prevent float precision discrepancies in the database and API responses, correcting cash payment displays on the runsheet/DWD view for GST-exclusive orders, fixing deleting paid rental order details (Deposit/E-wallet rollback), and safeguarding task weights when editing pickup and empty tasks.
Added
- None.
Changed
- Admin Quote View Title (
resources/views/admin/order/quote.blade.php)- Updated page title header from "Order Quote" to "Pending Quote" to match pending workflow semantics.
Fixed
- Total and GST Rounding Accessors (
app/Order.php,app/OrderDetail.php)- Implemented
getGrandtotalAttributeandgetGstAttributeaccessors onOrderto force 2-decimal rounding. - Implemented
getSubtotalAttributeandgetPriceAttributeaccessors onOrderDetailto force 2-decimal rounding.
- Implemented
- App API Task Decimals (
app/Repositories/TaskRepository.php)- Replaced casting variables to
(int)withround(..., 2)forsubtotal,price,collect_money,total_collect_money, andbalancein the app task API.
- Replaced casting variables to
- Wrong Cash Payment Amount on DWD (
resources/js/components/runsheets/Assign2.vue,public/js/app.js)- Fixed cash payment display calculation on the DWD runsheet assignment view when GST is exclusive. Added conditional logic distinguishing rental orders (price + additional price) from non-rental orders (grandtotal).
- Rental Order Detail Deletion with Paid Invoice (
app/Repositories/OrderRentalRepository.php)- Added criteria to allow deleting rental order details that have invoices paid using Deposit or E-wallet transaction types.
- Integrated automated payment rollback via
InvoiceManagement::rollbackAutoPayInvoice($invoice)during the deletion process.
- Task Weight Reset on Edit (
app/Http/Controllers/Admin/TaskController.php)- Fixed bug where editing a task resets the weight to the order detail's overload weight; excluded "Pickup" and "Empty" task types from being overwritten.
Removed
- None.