Fix Operation Cost & Customer Order Fresh
修复了OperationCost中的ID拼接方式,并修复了更改抽数方法后刷新订单数据的错误
| | |
| | | if( count - [Number](count/1000) * 1000 = 0 or count = totalcount ){ |
| | | info( "Now is dealing with the " + count.AsQUILL() + "OperationCost " + "( " + count.AsQUILL() + "/" + totalcount.AsQUILL() + " ) " + (count/totalcount*100).Round( 1 ).AsQUILL() + "%" ); |
| | | } |
| | | id := item.OrganCode() + "_" + item.ProductID() + "_" + item.ProcessSection() + "_" + item.Line(); |
| | | id := item.OrganCode() + "_" + item.ProductID() + "_" + item.ProcessSection(); |
| | | if( guard( item.Line(), "" ).Length() > 0 ) { |
| | | id := id + "_" + item.Line(); |
| | | } |
| | | operation := Operation::FindOperationTypeIndex( id ); |
| | | account := Account_MP::FindByName( this, "Operation cost" ); |
| | | isfromdb := false; |
| | |
| | | |
| | | // todo å¶é ææ¬-16 |
| | | info( "InventoryCost Finished, Start OperationCost Mapping" ); |
| | | //macroPlan.MappingOperationCostData( businessTypes ); |
| | | macroPlan.MappingOperationCostData( businessTypes ); |
| | | |
| | | // 订å颿µ-17 |
| | | Forecast::DoSync( macroPlan, businessTypes ,globalOTDTable); |
| | | |
| | | // 订åéæ±-18 |
| | | CustomerOrder::DoSync( macroPlan, businessTypes,globalOTDTable); |
| | | CustomerOrder::DoSync( macroPlan, businessTypes, globalOTDTable); |
| | | |
| | | //å é¤å¤ä½æ¥éæ°æ®-19 |
| | | macroPlan.DeleteSnaityCheck(); |
| | |
| | | Body: |
| | | [* |
| | | macroplan := MacroPlan; |
| | | global := GlobalOTDTable; |
| | | businesstypes := DataHolderOrderLockGlobal.Data().BusinessType().Tokenize( ',' ); |
| | | CustomerOrder::DoSync( macroplan, businesstypes ); |
| | | CustomerOrder::DoSync( macroplan, businesstypes, global ); |
| | | *] |
| | | } |
| | | } |
ÎļþÃû´Ó _Main/UI/MacroPlannerWebApp/Component_Frm_TEST/Response_Button687_OnClick.def ÐÞ¸Ä |
| | |
| | | Quintiq file version 2.0 |
| | | #parent: Button687 |
| | | Response OnClick () id:Response_Frm_TEST_Button687_OnClick |
| | | #parent: ButtonERP订å |
| | | Response OnClick () id:Response_Frm_TEST_ButtonERP订å_OnClick |
| | | { |
| | | #keys: '[414724.0.164341791]' |
| | | CanBindMultiple: false |
| | |
| | | Taborder: 0 |
| | | ] |
| | | } |
| | | Component Button687 |
| | | Component ButtonERP订å |
| | | { |
| | | #keys: '[414724.0.164341716]' |
| | | BaseType: 'WebButton' |
| | | Properties: |
| | | [ |
| | | Label: 'ERP订å' |
| | | Taborder: 3 |
| | | ] |
| | | } |