|
@@ -57,23 +57,17 @@
|
|
|
a.id syShippingDetailsId,
|
|
|
b.id syShippingDetailsItemId,
|
|
|
(select declaration_Name from sy_declaration_elements where id=b.elements_Id) as declaration_Name,
|
|
|
- /*IF(INSTR(c.OMPO_id,'-')>0,LEFT(c.OMPO_id,INSTR(c.OMPO_id,'-')-1),c.OMPO_id) PlanLotNumber,*/
|
|
|
IF(INSTR(b.pur_or_sub_order,'-')>0,LEFT(b.pur_or_sub_order,INSTR(b.pur_or_sub_order,'-')-1),b.pur_or_sub_order) PlanLotNumber,
|
|
|
- /*a.declaration_Name,报关品名*/
|
|
|
c.master_Metering,/*主计量*/
|
|
|
b.salesman,/*业务员*/
|
|
|
b.item_Number,/*款号*/
|
|
|
b.colour,/*颜色*/
|
|
|
-
|
|
|
- /*b.elements_Id,申报要素*/
|
|
|
b.u8_Remarks memo,/*备注*/
|
|
|
b.inventory_Code,/*物料编码*/
|
|
|
b.inventory_Name,/*物料名称*/
|
|
|
b.material_Composition AS Composition,/*成分/Composition*/
|
|
|
- b.guangpei_Gate_Width AS Width,/*门幅/Width*/
|
|
|
- c.Weight as gramWeight,/*克重*/
|
|
|
- /*'120cm' AS Width,门幅/Width
|
|
|
- '280克' as gramWeight,克重*/
|
|
|
+ if(INSTR(c.Weight,'克')>0,left(c.Weight,char_length(c.Weight)-1),0) gramWeight,
|
|
|
+ (if(ifnull(b.guangpei_Gate_Width,'x') REGEXP '[^0-9.]'>0,'0',b.guangpei_Gate_Width)) as Width,
|
|
|
b.sales_Unit_Price AS price,/*价格*/
|
|
|
b.treatment_Method,/*处理方式*/
|
|
|
b.manual_Yarn_Flag,/*是否手册纱*/
|