mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-31 18:34:10 +00:00
large commit
This commit is contained in:
@@ -16,16 +16,11 @@ class TransactionDetailResource extends JsonResource
|
||||
{
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'trans_type1' => $this->trans_type1,
|
||||
'trans_type2' => $this->trans_type2,
|
||||
'transaction_id' => (int) $this->transaction_id,
|
||||
'product_code' => $this->product_code,
|
||||
'product_name' => $this->product_name,
|
||||
'qty' => (int) $this->qty,
|
||||
'price' => (double) $this->price,
|
||||
'amount' => (double) $this->amount
|
||||
|
||||
'stockCode' => $this->product_code,
|
||||
'description' => $this->product_name,
|
||||
'quantity' => $this->quantity,
|
||||
'unit_price' => (double) $this->price,
|
||||
'total' => (double) $this->amount
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user