diff --git a/app/Models/Party.php b/app/Models/Party.php index 1aff580e..ec7743eb 100644 --- a/app/Models/Party.php +++ b/app/Models/Party.php @@ -98,6 +98,14 @@ public function dueCollect() 'credit_limit' => 'double', 'loyalty_points' => 'double', 'opening_balance' => 'double', + 'total_sale_amount' => 'double', + 'total_sale_paid' => 'double', + 'total_sale_profit' => 'double', + 'total_sale_loss' => 'double', + 'total_purchase_amount' => 'double', + 'total_purchase_paid' => 'double', + 'sales_count' => 'integer', + 'purchases_count' => 'integer', 'billing_address' => 'json', 'shipping_address' => 'json', ]; diff --git a/app/Models/Product.php b/app/Models/Product.php index 0e1f1f7a..67c469c8 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -146,6 +146,8 @@ public function batch() 'profit_percent' => 'double', 'alert_qty' => 'double', 'stocks_sum_product_stock' => 'double', + 'sale_details_sum_quantities' => 'double', + 'purchase_details_sum_quantities' => 'double', 'meta' => 'json', 'variation_ids' => 'json', 'warranty_guarantee_info' => 'json',