|Sale newModelQuery() * @method static \Illuminate\Database\Eloquent\Builder|Sale newQuery() * @method static \Illuminate\Database\Eloquent\Builder|Sale query() * @method static \Illuminate\Database\Eloquent\Builder|Sale whereBarcode($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereBrand($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereCategory($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereCountryName($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereCreatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereDate($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereDiscountPercent($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereFinishedPrice($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereForPay($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereGNumber($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereId($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereIncomeId($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereIsRealization($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereIsStorno($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereIsSupply($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereLastChangeDate($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereNmId($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereOblastOkrugName($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereOdid($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale wherePriceWithDisc($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale wherePromoCodeDiscount($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereRegionName($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereSaleId($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereSpp($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereSubject($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereSupplierArticle($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereTechSize($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereTotalPrice($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereUpdatedAt($value) * @method static \Illuminate\Database\Eloquent\Builder|Sale whereWarehouseName($value) * @mixin \Eloquent */ class Sale extends Model { protected $table = 'sales'; protected $fillable = [ 'g_number', 'date', 'last_change_date', 'supplier_article', 'tech_size', 'barcode', 'total_price', 'discount_percent', 'is_supply', 'is_realization', 'promo_code_discount', 'warehouse_name', 'country_name', 'oblast_okrug_name', 'region_name', 'income_id', 'sale_id', 'odid', 'spp', 'for_pay', 'finished_price', 'price_with_disc', 'nm_id', 'subject', 'category', 'brand', 'is_storno', ]; protected function casts(): array { return [ 'date' => 'date', 'last_change_date' => 'date', 'is_supply' => 'boolean', 'is_realization' => 'boolean', 'is_storno' => 'boolean', ]; } }