Fix inline edit not updating pricing breakdown on Job Details
Jobs/PatchItem now returns the full breakdown (itemsSubtotal, subtotalBeforeDiscount, subtotalAfterDiscount, taxAmount) so all rows in the pricing card update live without a page refresh. Added data-pb attributes to the matching spans in the pricing panel. Updated window.inlineItemEdit.totals config for jobs to map each response key to its DOM selector. updateTotals in inline-item-edit.js is now fully generic — cfg.totals keys must match server response property names directly, eliminating the old hardcoded tax/taxAmount and balance/balanceDue mismatches. Updated Quote and Invoice configs accordingly (tax→taxAmount, balance→balanceDue). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1458,9 +1458,9 @@
|
||||
canEdit: @Json.Serialize(canEdit),
|
||||
totals: {
|
||||
subtotal: '#inv-subtotal',
|
||||
tax: '#inv-tax',
|
||||
taxAmount: '#inv-tax',
|
||||
total: '#inv-total',
|
||||
balance: '#inv-balance'
|
||||
balanceDue: '#inv-balance'
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user