Changelog: Dwi - 2026-06-01
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Dwi focus on adding a migration to track Xero line item IDs in order invoice details, refactoring Xero item mapping to support direct/manual invoices (without associated orders) and rental invoice updates with line item IDs, and patching the default category logic for bin weight calculations.
Added
- Xero Line Item ID Tracking Migration (
database/migrations/2026_06_01_195809_add_xero_line_item_id_on_order_invoice_details_table.php)- Created a database migration to add the nullable string column
xero_line_item_idto theorder_invoice_detailstable to allow tracking individual line item mappings in Xero.
- Created a database migration to add the nullable string column
Changed
- Xero Invoice Line Item Mapping (
app/Repositories/InvoiceManagement.php)- Updated
xeroItemRentalto includeLineItemIDfrom details or extras if updating an invoice ($isUpdate = true). - Updated
xeroItemMapsto propagate the$isUpdateparameter toxeroItemRentalandxeroItemNonRental. - Enhanced
mapLineItemIdFromXeroto support manual invoices (where$invoice->order_idis null) by mapping LineItemIDs from Xero back to$invoice->detailsand$invoice->extras. - Patched
updateInvoiceXeroto support updates to invoices that do not have an associated order (is_null($invoice->order)), resolving customer and order details via the first invoice line item's order detail relation.
- Updated
- Bin Weight Category Logic (
app/Console/Commands/BinWeightCommand.php)- Updated
BinWeightCommandto automatically update the category to'skip bin'for anyBinWeightrecords that currently have a null category.
- Updated
Fixed
- None.
Removed
- None.