Fix bug where check_number doesn't show up in EditPaymentPane or CreateOffsitePaymentPane

This commit is contained in:
Eric Schultz 2018-11-09 12:41:17 -06:00
parent 3176e7f673
commit e4818800c5
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,6 @@ class CreateNewOffsitePaymentPane extends React.Component<CreateOffsitePaymentPa
params.date.validators = [Validations.isDate('MM/DD/YYYY')]
params.gross_amount.validators = [Validations.isGreaterThanOrEqualTo(0.01)];
// params.fee_total.validators = [Validations.optional(Validations.isLessThanOrEqualTo(0))];
@ -205,6 +204,7 @@ class CreateNewOffsitePaymentPane extends React.Component<CreateOffsitePaymentPa
{/* <CurrencyField field={this.form.$('fee_total')} label={"Processing Fees"} mustBeNegative={true}/> */}
<BasicField field={this.form.$('date')} label={"Date"} />
<BasicField field={this.form.$('check_number')} label={"Check or Payment Number/ID"}/>
<SelectField field={this.form.$('campaign')}
label={"Campaign"}
options={this.props.campaigns}/>

View file

@ -371,7 +371,7 @@ class EditPaymentPane extends React.Component<EditPaymentPaneProps & InjectedInt
</table>;
let checkNumber = this.props.data.offsite_payment && this.props.data.offsite_payment.check_number ?
let checkNumber = this.props.data.offsite_payment ?
<BasicField field={this.form.$('check_number')} label={"Check or Payment Number/ID"}/> : false;
let offsitePayment = this.props.data.kind === "OffsitePayment" ? (<div>