lazhen
2024-11-17 00d1696d6aa6aa2077a9951d697feb473d573197
发运接口数据报错
已修改3个文件
6 ■■■■ 文件已修改
_Main/BL/Type_FinancialProductionReport/Method_GenerateShow.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ShippingActualData/StaticMethod_GenerateData.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_ShippingActualData/StaticMethod_Synchronize.qbl 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_FinancialProductionReport/Method_GenerateShow.qbl
@@ -24,7 +24,7 @@
        showrow               := selectobject( this, FinancialProductionRow, fprow, fprow.Name() = factory.Format( 'S(Len(10))' ).Concat( row.Name() ) and fprow.Unit() = factory and factory = factory );
        if( isnull( showrow ) ){
          showrow             := this.FinancialProductionRow( relnew, Name := factory.Format( 'S(Len(10))' ).Concat( row.Name() ), Unit := factory, Factory := factory );
          row.Product_MP().FinancialProductionRow( relinsert, showrow );
    //      row.Product_MP().FinancialProductionRow( relinsert, showrow );
        }
        yearcell              := selectobject( yearcolumn, FinancialProductionCell, fpcell, fpcell.FinancialProductionRow() = showrow );
        if( isnull( yearcell ) ){
_Main/BL/Type_ShippingActualData/StaticMethod_GenerateData.qbl
@@ -13,7 +13,7 @@
    createtime       := guard( item.Get( "create_time").GetString(),"");
    dday             := guard( item.Get( "dday").GetString(),"");
    fourcode         := guard( item.Get( "four_code").GetString(),"");
    quantity         := guard( item.Get( "qty").GetReal(), 0);
    quantity         := [Real]guard( item.Get( "qty").GetString(), "");
    fac              := guard( item.Get( "fac").GetString(),"");
    id               := guard( item.Get( "id").GetNumber(),0);
    
_Main/BL/Type_ShippingActualData/StaticMethod_Synchronize.qbl
@@ -55,7 +55,7 @@
      traverse( sadatalist, Elements, e ){
        row := selectobject( owner, ShippingActualRow, row, row.Name() = e.FourCode() );
        if( isnull( row ) ){
          owner.ShippingActualRow( relnew, Name := e.FourCode() );
          row := owner.ShippingActualRow( relnew, Name := e.FourCode() );
        }
        
        cell := row.ShippingActualCell( relnew, Quantity := e.Quantity() );