fix xhr and javascript problems for group orderinvoice modal
This commit is contained in:
parent
bdeee02873
commit
24c25b5278
10 changed files with 151 additions and 143 deletions
|
|
@ -52,7 +52,7 @@ class GroupOrderInvoice < ApplicationRecord
|
|||
invoice_data = {}
|
||||
order = group_order.order
|
||||
invoice_data[:pickup] = order.pickup
|
||||
invoice_data[:supplier] = order.supplier.name
|
||||
invoice_data[:supplier] = order.supplier&.name
|
||||
invoice_data[:ordergroup] = group_order.ordergroup
|
||||
invoice_data[:group_order] = group_order
|
||||
invoice_data[:invoice_number] = invoice_number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue