Changelog: Dedek - 2026-06-04
Daily Changelog - Waste Vantage Legacy
Overview
Today's changes by Dedek focus on enhancing Stripe credit card payment stability, fixing order status calculations for paid main invoices, adjusting inventory stock decrement logic, correcting GST calculations for GST-exclusive suppliers, and resolving extra services line-item pricing glitches.
Added
- Stripe Checkout Confirmation Helper (
resources/js/components/SkipBinStripe.vue)- Added computed property
confirmationUrlto dynamically build the Stripe card charge attempt URL path.
- Added computed property
Changed
- Stripe Charge Card Parameters (
app/Http/Controllers/...)- Updated credit card charging processes across multiple controllers (
OrderController,InvoiceController,PaymentController,BillingController, etc.) to explicitly pass'payment_method_types' => ['card']. - Adapted code to retrieve Stripe charge IDs via
$stripeCharge->asStripePaymentIntent()andlatest_charge, providing backward compatibility with modern Stripe Payment Intents API.
- Updated credit card charging processes across multiple controllers (
- GST Display & Calculations (
resources/js/components/order-management/)- Revised
OrderPriceSummary.vueandOrderManagement.vueto respect GST-exclusive supplier configurations, calculating grand totals asbaseTotal + gstAmount(instead of justbaseTotal), and displaying labels dynamically (e.g. "Bin ex.GST" or "Extras ex.GST").
- Revised
- Stripe Element Mounting Lifecycle (
resources/js/libs/stripe-setup.js)- Refactored Stripe card initialization to keep a single
stripeInstanceand avoid mounting duplicate card input fields during page navigation or modal reopens.
- Refactored Stripe card initialization to keep a single
Fixed
- Order Status Decrement Calculation (
app/Repositories/OrderRepository.php)- Updated
setOrderStatus()to verify if a main invoice is already paid ($isPaidMainInvoice). This ensures that status decrement flags and thecreated_attimestamp are not overwritten for already-paid orders.
- Updated
- Inventory Stock Decrement Logic (
app/Repositories/PricingRepository.php)- Fixed
decrementPricingDateStock()to deduct stock by$detail->quantityinstead of a hardcoded value of 1. - Refined lookups to filter by both
waste_type_idandcategoryfields, and implemented proper fallbacks to initializePricingDateentries based on VIP, business, or vendor classification.
- Fixed
- Order Skip Bin Detail Loading (
app/Http/Controllers/Admin/OrderSkipBinController.php)- Added a conditional query load check to only apply the
order_detail_idnull filter if the skip bin order is marked as a rental, preventing SQL issues on regular skip bin orders.
- Added a conditional query load check to only apply the
- Extra Service Line-Item Pricing Glitch (
resources/js/components/order-management/)- Introduced
unit_pricewithin themore_extrasservice row arrays insideOrderManagement.vueandOrderSiteDetails.vue. - Separated unit pricing inputs from total cost computations, preventing quantity changes from corrupting the display value.
- Introduced
Removed
- None.