|
|
@@ -237,10 +237,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
if(i==0){
|
|
|
for(j=0;j<dataLength+1;j++){
|
|
|
if(detailgrid.store.data.items[j].data.mpd_planqty ==''||detailgrid.store.data.items[j].data.mpd_planqty ==null){
|
|
|
- detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
+ detailgrid.store.data.items[j].set('mpd_datenum','H'+(a+1));
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- if(a<9)
|
|
|
+ if(a<8)
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
else
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
@@ -253,10 +253,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
}
|
|
|
}
|
|
|
if(m==1){
|
|
|
- detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
+ detailgrid.store.data.items[j].set('mpd_datenum','H'+(a+1));
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- if(a<9)
|
|
|
+ if(a<8)
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
else
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
@@ -267,10 +267,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
j++;
|
|
|
}
|
|
|
if(m==0){
|
|
|
- detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
+ detailgrid.store.data.items[j].set('mpd_datenum','H'+(a+1));
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- if(a<9)
|
|
|
+ if(a<8)
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
else
|
|
|
detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|