|
|
@@ -240,8 +240,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
- a++;
|
|
|
+ if(a<9)
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
+ else
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
if(a>24){
|
|
|
a=a-24;
|
|
|
}
|
|
|
@@ -254,7 +256,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
+ if(a<9)
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
+ else
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
a++;
|
|
|
if(a>24){
|
|
|
a=a-24;
|
|
|
@@ -265,7 +270,10 @@ Ext.define('erp.controller.pm.make.MakePlan!Add', {
|
|
|
detailgrid.store.data.items[j].set('mpd_datenum','H'+a);
|
|
|
detailgrid.store.data.items[j].set('mpd_planqty',c);
|
|
|
detailgrid.store.data.items[j].set('mpd_linecode',linecode);
|
|
|
- detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
+ if(a<9)
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',Number(mp_period)+1);
|
|
|
+ else
|
|
|
+ detailgrid.store.data.items[j].set('mpd_workdate',mp_period);
|
|
|
length++;
|
|
|
a++;
|
|
|
if(a>24){
|