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