srvAccEntry.makeEntries(pAddParam, pEntity); //it will update this doc
this.srvAccEntry.makeEntries(pAddParam, pEntity);
/** * <p>Make other entries include reversing if it's need when save.</p> * @param pAddParam additional param * @param pEntity entity * @param pIsNew if entity was new * @throws Exception - an exception **/ @Override public final void makeOtherEntries(final Map<String, Object> pAddParam, final Manufacture pEntity, final boolean pIsNew) throws Exception { //always new ManufactureForDraw manufactureForDraw = new ManufactureForDraw(pEntity); if (pEntity.getReversedId() != null) { //reverse draw product in process from warehouse getSrvWarehouseEntry().reverseDraw(pAddParam, manufactureForDraw); //reverse draw product in process from manufacturing process useMaterialReverse(pEntity); //reverse acc.entries already done } else { //draw product in process from warehouse getSrvWarehouseEntry().withdrawal(pAddParam, manufactureForDraw, pEntity.getWarehouseSiteFo()); //draw product in process from manufacturing process useMaterial(pEntity); //it will update this doc: getSrvAccEntry().makeEntries(pAddParam, pEntity); } //load(put) or reverse product or created material on warehouse getSrvWarehouseEntry().load(pAddParam, pEntity, pEntity.getWarehouseSite()); }
prep.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef)); getSrvOrm().insertEntity(pReqVars, prep); this.srvAccEntry.makeEntries(pReqVars, prep); resultRecordId = prep.getItsId(); resultDescription = makeBslResDescr(resultAction, pDateFormat, prep, prep.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef)); getSrvOrm().insertEntity(pReqVars, prep); this.srvAccEntry.makeEntries(pReqVars, prep); resultRecordId = prep.getItsId(); resultDescription = makeBslResDescr(resultAction, pDateFormat, prep,
getSrvAccEntry().makeEntries(pAddParam, pEntity);
pay.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef)); getSrvOrm().insertEntity(pReqVars, pay); this.srvAccEntry.makeEntries(pReqVars, pay); this.prcSalesInvoiceSave.calculateTotalPayment(pReqVars, pay .getSalesInvoice()); pay.setDescription(makeDescrForCreated(pBsl, pDateFormat, pLangDef)); getSrvOrm().insertEntity(pReqVars, pay); this.srvAccEntry.makeEntries(pReqVars, pay); this.prcPurchaseInvoiceSave.calculateTotalPayment(pReqVars, pay.getPurchaseInvoice());