|
@@ -1206,14 +1206,11 @@
|
|
|
tmc.cus_code AS "cusCode",
|
|
tmc.cus_code AS "cusCode",
|
|
|
T.cus_name AS "cusName",
|
|
T.cus_name AS "cusName",
|
|
|
T.cus_phone AS "cusPhone",
|
|
T.cus_phone AS "cusPhone",
|
|
|
- T.address_area AS "addressArea",
|
|
|
|
|
T.address_name AS "addressName",
|
|
T.address_name AS "addressName",
|
|
|
- T.address_no AS "addressNo",
|
|
|
|
|
T.address_full AS "addressFull",
|
|
T.address_full AS "addressFull",
|
|
|
T.sales_channel AS "salesChannel",
|
|
T.sales_channel AS "salesChannel",
|
|
|
tmsc.channel_name AS "channelName",
|
|
tmsc.channel_name AS "channelName",
|
|
|
T.delivery_date AS "deliveryDate",
|
|
T.delivery_date AS "deliveryDate",
|
|
|
- T.sale_discount AS "saleDiscount",
|
|
|
|
|
T.order_status AS "orderStatus",
|
|
T.order_status AS "orderStatus",
|
|
|
sys.f_get_name_i18n ( tdk2.kind_name_i18n, #{ i18n } ) AS "orderStatusName",
|
|
sys.f_get_name_i18n ( tdk2.kind_name_i18n, #{ i18n } ) AS "orderStatusName",
|
|
|
T.out_status AS "outStatus",
|
|
T.out_status AS "outStatus",
|
|
@@ -1223,23 +1220,16 @@
|
|
|
toi.item_id AS "itemId",
|
|
toi.item_id AS "itemId",
|
|
|
T.order_id AS "orderId",
|
|
T.order_id AS "orderId",
|
|
|
T.order_no AS "orderNo",
|
|
T.order_no AS "orderNo",
|
|
|
- toi.item_index AS "itemIndex",
|
|
|
|
|
toi.sku_id AS "skuId",
|
|
toi.sku_id AS "skuId",
|
|
|
toi.item_qty AS "itemQty",
|
|
toi.item_qty AS "itemQty",
|
|
|
- toi.price_std AS "priceStd",
|
|
|
|
|
- toi.amt_std AS "amtStd",
|
|
|
|
|
- toi.price_sale AS "priceSale",
|
|
|
|
|
- toi.item_amt AS "itemAmt",
|
|
|
|
|
- toi.price_discount AS "priceDiscount",
|
|
|
|
|
toi.non_std_code AS "nonStdCode",
|
|
toi.non_std_code AS "nonStdCode",
|
|
|
|
|
+ toi.purchase_qty AS "purchaseQty",
|
|
|
toi.item_qty - toi.purchase_qty AS "transferableQuantity",
|
|
toi.item_qty - toi.purchase_qty AS "transferableQuantity",
|
|
|
- toi.remarks AS "remarks",
|
|
|
|
|
toi.cp_id AS "cpId",
|
|
toi.cp_id AS "cpId",
|
|
|
tmgs.sku_code AS "skuCode",
|
|
tmgs.sku_code AS "skuCode",
|
|
|
tmgs.sku_model AS "skuModel",
|
|
tmgs.sku_model AS "skuModel",
|
|
|
tmgs.sku_name AS "skuName",
|
|
tmgs.sku_name AS "skuName",
|
|
|
tmgb.brand_name AS "brandName",
|
|
tmgb.brand_name AS "brandName",
|
|
|
- tmgb.short_name AS "shortName",
|
|
|
|
|
tmgs.price_purchase AS "pricePurchase",
|
|
tmgs.price_purchase AS "pricePurchase",
|
|
|
tmgs.price_standard AS "priceStandard",
|
|
tmgs.price_standard AS "priceStandard",
|
|
|
toi.unit_id AS "unitId",
|
|
toi.unit_id AS "unitId",
|