all the refactor
This commit is contained in:
@@ -201,6 +201,9 @@ func ToItemAddMessage(item *ProductItem, parent *ProductItem, storeId *string, q
|
||||
Name: item.Title,
|
||||
Image: item.Img,
|
||||
Stock: stock,
|
||||
// item.Vat is the product's VAT as a raw integer percent (e.g. 25);
|
||||
// ×100 converts to the platform basis-point scale (2500). This is the
|
||||
// single conversion boundary — everything downstream is basis points.
|
||||
Tax: int32(item.Vat * 100),
|
||||
SellerId: strconv.Itoa(item.SupplierId),
|
||||
SellerName: item.SupplierName,
|
||||
|
||||
Reference in New Issue
Block a user