mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Removed getInvoiceId from non-Wave transformers
This commit is contained in:
parent
fa3f812194
commit
2144870b96
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => $data->paid,
|
||||
'payment_date_sql' => isset($data->invoice_date) ? $data->invoice_date : null,
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => $data->paid,
|
||||
'payment_date_sql' => $data->create_date,
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => $data->paid_amount,
|
||||
'payment_date_sql' => $this->getDate($data->last_payment_date, 'm/d/Y'),
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => $data->paid_total,
|
||||
'payment_date_sql' => $this->getDate($data->last_paid_on),
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => $data->paid,
|
||||
'payment_date_sql' => $data->date_paid,
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => (float) $data->paid_to_date,
|
||||
'payment_date_sql' => $this->getDate($data->date),
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ class PaymentTransformer extends BaseTransformer
|
||||
'amount' => (float) $data->total - (float) $data->balance,
|
||||
'payment_date_sql' => $data->date_paid,
|
||||
'client_id' => $data->client_id,
|
||||
'invoice_id' => $this->getInvoiceId($data->invoice_id),
|
||||
'invoice_id' => $data->invoice_id,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user