芝麻web文件管理V1.00
编辑当前文件:/home/digitalh/erp.digitalhubbd.com/app/Models/Purchase.php
'integer', 'provider_id' => 'integer', 'warehouse_id' => 'integer', 'GrandTotal' => 'double', 'discount' => 'double', 'shipping' => 'double', 'TaxNet' => 'double', 'tax_rate' => 'double', 'paid_amount' => 'double', ]; public function details() { return $this->hasMany('App\Models\PurchaseDetail'); } public function provider() { return $this->belongsTo('App\Models\Provider'); } public function facture() { return $this->hasMany('App\Models\PaymentPurchase'); } public function warehouse() { return $this->belongsTo('App\Models\Warehouse'); } public function user() { return $this->belongsTo('App\Models\User'); } }