zoukankan      html  css  js  c++  java
  • AX 2012 PurchPrepayTable作成

        PurchPrepayTable PurchPrepayTable;
        PurchTable purchTable = purchTable::find(Z_PurchId);
        PurchFormLetter purchFormLetter;
        ;
        ttsBegin;
        delete_from purchPrepayTable where purchPrepayTable.PurchTable == purchTable.PurchId;

        PurchPrepayTable.Description = "";
        PurchPrepayTable.Type = PurchPrepayType::Percent;
        purchPrepayTable.Value = 100.00;
        PurchPrepayTable.Currency = purchTable.CurrencyCode;
        PurchPrepayTable.PrepayCategoryId= Z_PurchPrepayCategoryId;
        PurchPrepayTable.PurchTable = purchTable.PurchId;
        purchPrepayTable.recalculatePrepayLimit();
        purchPrepayTable.recalculateAmounts(false);
        purchPrepayTable.insert();

        //Posting PO Confirmation
        purchFormLetter = PurchFormLetter::construct(DocumentStatus::PurchaseOrder);
        purchFormLetter.update(purchTable, Z_HachuId);
        //Posting PO Invoice
        purchFormLetter = PurchFormLetter::construct(DocumentStatus::Invoice);
       
        PurchFormLetter.parmInvoiceType(PurchInvoiceType::VendorAdvance);
        purchFormLetter.update(purchTable, Z_HachuId);
        ttsCommit;

  • 相关阅读:
    Java线程的5个使用技巧
    每个Java程序员需要了解的8个Java开发工具
    爱上Java和JVM的10大理由
    Git入门
    建网站的流程
    idea快捷键
    idea中ctrl+alt+方向键问题
    oracle数据库-备份
    rabbitmq路由模式、订阅、主题
    rabbitmq 工作模式、简单模式
  • 原文地址:https://www.cnblogs.com/fogfog/p/6144452.html
Copyright © 2011-2022 走看看