|
|
@@ -1080,7 +1080,8 @@ public class stockbill extends Controller {
|
|
|
insertSQL.setValue("sourceobject", "st_stockbill");
|
|
|
insertSQL.setValue("sourceid", rows.get(0).getLong("st_stockbillid"));
|
|
|
|
|
|
- insertSQL.setValue("period", rows.get(0).getString("period"));
|
|
|
+ //会计期间取单据日期所在月,不沿用原单据期间
|
|
|
+ insertSQL.setValue("period", getPeriod(false, new Date()));
|
|
|
|
|
|
insertSQL.setValue("createby", username);
|
|
|
insertSQL.setDateValue("createdate");
|