'decimal:2', 'SELLINGPRICE' => 'decimal:2', 'COSTPRICE' => 'decimal:2', ]; public function invoice() { return $this->belongsTo(CustomerInvoice::class, 'REFNO', 'REFNO'); } public function product() { return $this->belongsTo(Product::class, 'STOCKCODE', 'STOCKCODE'); } }