예제 #1
0
 protected override void doRevise(Event events, Period p)
 {
     foreach (GoodReceiveNoteItem item in events.EVENT_ITEMS)
     {
         assertUsedGRNItemByPRItem(item);
         assertInvoiceAlreadyGenerated(item);
         PurchaseOrder po = (PurchaseOrder)item.PO_ITEM.EVENT;
         SetStockCard(item, p);
         item.PO_ITEM.UnSetOSAgainstGRNItem(item);
         PurchaseOrderRepository.UpdateAgainstStatus(m_command, po, item.PO_ITEM);
     }
 }
예제 #2
0
 protected override void doConfirm(Event events, Period p)
 {
     foreach (GoodReceiveNoteItem item in events.EVENT_ITEMS)
     {
         PurchaseOrder po = (PurchaseOrder)item.PO_ITEM.EVENT;
         assertConfirmedPO(po);
         assertValidDate(po, item.EVENT);
         SetStockCard(item, p);
         item.PO_ITEM.SetOSAgainstGRNItem(item);
         PurchaseOrderRepository.UpdateAgainstStatus(m_command, po, item.PO_ITEM);
     }
 }