Vendor Credits
List Vendor Credits
Returns a paginated list of vendor credits. Supports Spatie QueryBuilder filters, sorting, and search. Each row is transformed via VendorCreditResource.
Create Vendor Credit
Create a new vendor credit.
Get Vendor Credit
Show a single vendor credit with all eager-loaded relations: supplier, purchase order, purchase invoice, warehouse, store, currency, tax rate, vendor credit lines (with product, PO line, nominal code, tax rate), allocations (with purchase invoice and allocator), payments, tags, and the linked accounting transaction.
Update Vendor Credit
Update an existing vendor credit. Accepts the same fields as Create. Line replacement semantics: supplying `lines` replaces the existing line set (use with care). Closed or voided credits may be blocked from editing — check the manager.
Delete Vendor Credit
Delete a vendor credit and cascade-delete its related lines, allocations, accounting transaction, and any inventory movements restored by the manager. Will fail for credits that are referenced by posted / synced accounting data if business rules prevent deletion.