Programmer:Cancel Purchase Order v2

Revision as of 06:43, 23 May 2018 by DanielY (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Partial Transfer

public void NewCancelPO(AutoCount.Authentication.UserSession userSession)
    AutoCount.Invoicing.Purchase.CancelPO.CancelPOCommand cmd =
        AutoCount.Invoicing.Purchase.CancelPO.CancelPOCommand.Create(userSession, userSession.DBSetting);
    AutoCount.Invoicing.Purchase.CancelPO.CancelPO doc = cmd.AddNew();

    //Transfer one line of item from PO, if more than one line, write a loop
    string poDocNo = "PO-00001";
    string itemCode = "ItemA";
    string uom = "UNIT";
    decimal qtyToTransfer = 1;
    decimal focQtyToTrasnfer = 0;

    //Using Partial Transfer
        poDocNo, itemCode, uom, qtyToTransfer, focQtyToTrasnfer);

        //log save successful
    catch (AutoCount.AppException ex)
        //log exception

Go to menu

  Go to top
  Resources For AutoCount Software Developers