1
0
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:
Hillel Coren 2015-12-31 16:14:30 +02:00
parent fa3f812194
commit 2144870b96
7 changed files with 7 additions and 7 deletions

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}

View File

@ -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,
];
});
}