Senin, 29 Mei 2023

Cancel and Correct Packingslip

Class yang mengontrol tombol Cancel dan Correct PackingSlip bisa dilihat di sini :

VendPackingSlipJourFormHelper.canPackingSlipBeCanceledOrCorrected()

public static server container canPackingSlipBeCanceledOrCorrected(VendPackingSlipJour _vendPackingSlipJour)
{
    boolean     canBeCorrected;
    boolean     canBeCanceled;
    boolean     isIntercompanyDirectDelivery;
    PurchTable  purchTable = _vendPackingSlipJour.purchTable();

    isIntercompanyDirectDelivery = purchTable.InterCompanyDirectDelivery && purchTable.isInterCompanyOrder();
    /* Remark by Husna untuk form Berita Acara GRN 20220214
    canBeCorrected = !isIntercompanyDirectDelivery && !_vendPackingSlipJour.isCanceled() && !_vendPackingSlipJour.isFullyInvoiced();
    canBeCanceled  = canBeCorrected && !_vendPackingSlipJour.isInvoiceMatched();
    */

    canBeCorrected = !isIntercompanyDirectDelivery && !_vendPackingSlipJour.isCanceled() && !_vendPackingSlipJour.isFullyInvoiced() && _vendPackingSlipJour.PSMAllowrevisi(); //add by Husna untuk form berita acara GRN 20220214
    canBeCanceled  = canBeCorrected && !_vendPackingSlipJour.isInvoiceMatched() && _vendPackingSlipJour.PSMAllowrevisi(); //add by Husna untuk form berita acara GRN 20220214

    return [canBeCanceled, canBeCorrected];
}

Tidak ada komentar:

Posting Komentar

Erorr CS1963 - An expression tree may not contain a dynamic operation.

Kali ini saya mendapatkan erorr dengan code CS1963, padahal sebelumnya saya sudah mendefinisikan 'var item in Model' di @foreach(var...