Fix getting quote’s terms and conditions from form and database
This commit is contained in:
parent
9931796744
commit
ba6f51ac5d
|
@ -620,6 +620,7 @@ func (form *quoteForm) Parse(r *http.Request) error {
|
|||
form.QuoteStatus.FillValue(r)
|
||||
form.Customer.FillValue(r)
|
||||
form.Date.FillValue(r)
|
||||
form.TermsAndConditions.FillValue(r)
|
||||
form.Notes.FillValue(r)
|
||||
form.Tags.FillValue(r)
|
||||
form.PaymentMethod.FillValue(r)
|
||||
|
@ -745,6 +746,7 @@ func (form *quoteForm) MustFillFromDatabase(ctx context.Context, conn *Conn, slu
|
|||
, contact_id
|
||||
, quote_number
|
||||
, quote_date
|
||||
, terms_and_conditions
|
||||
, notes
|
||||
, payment_method_id
|
||||
, tags
|
||||
|
@ -752,7 +754,7 @@ func (form *quoteForm) MustFillFromDatabase(ctx context.Context, conn *Conn, slu
|
|||
left join quote_contact using (quote_id)
|
||||
left join quote_payment_method using (quote_id)
|
||||
where slug = $1
|
||||
`, slug).Scan("eId, form.QuoteStatus, form.Customer, &form.Number, form.Date, form.Notes, form.PaymentMethod, form.Tags)) {
|
||||
`, slug).Scan("eId, form.QuoteStatus, form.Customer, &form.Number, form.Date, form.TermsAndConditions, form.Notes, form.PaymentMethod, form.Tags)) {
|
||||
form.PaymentMethod.Selected = selectedPaymentMethod
|
||||
form.QuoteStatus.Selected = selectedQuoteStatus
|
||||
return false
|
||||
|
|
Loading…
Reference in New Issue