Fix Product initializer: add all extended fields
This commit is contained in:
parent
e4524d0584
commit
fa9a1f33fa
1 changed files with 45 additions and 0 deletions
|
|
@ -378,6 +378,51 @@ pub async fn create_product(
|
||||||
barcode: req.barcode,
|
barcode: req.barcode,
|
||||||
created_at: now,
|
created_at: now,
|
||||||
updated_at: now,
|
updated_at: now,
|
||||||
|
tax_code: None,
|
||||||
|
tax_class: None,
|
||||||
|
fiscal_code: None,
|
||||||
|
origin_code: None,
|
||||||
|
global_trade_number: None,
|
||||||
|
tax_unit_code: None,
|
||||||
|
net_weight: None,
|
||||||
|
gross_weight: None,
|
||||||
|
width: None,
|
||||||
|
height: None,
|
||||||
|
length: None,
|
||||||
|
package_count: None,
|
||||||
|
sales_tax_code: None,
|
||||||
|
sales_tax_rate: None,
|
||||||
|
excise_tax_code: None,
|
||||||
|
excise_tax_rate: None,
|
||||||
|
vat_code: None,
|
||||||
|
vat_rate: None,
|
||||||
|
service_tax_code: None,
|
||||||
|
service_tax_rate: None,
|
||||||
|
brand: None,
|
||||||
|
model: None,
|
||||||
|
color: None,
|
||||||
|
size: None,
|
||||||
|
material: None,
|
||||||
|
gender: None,
|
||||||
|
warehouse_location: None,
|
||||||
|
batch_number: None,
|
||||||
|
expiration_date: None,
|
||||||
|
manufacture_date: None,
|
||||||
|
min_stock: None,
|
||||||
|
max_stock: None,
|
||||||
|
reorder_point: None,
|
||||||
|
sale_price: None,
|
||||||
|
sale_start: None,
|
||||||
|
sale_end: None,
|
||||||
|
shipping_cost: None,
|
||||||
|
profit_margin: None,
|
||||||
|
external_id: None,
|
||||||
|
external_category_id: None,
|
||||||
|
external_metadata: None,
|
||||||
|
slug: None,
|
||||||
|
meta_title: None,
|
||||||
|
meta_description: None,
|
||||||
|
tags: None,
|
||||||
};
|
};
|
||||||
|
|
||||||
diesel::insert_into(products::table)
|
diesel::insert_into(products::table)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue