diff --git a/src/org/openbravo/costing/CostingServer.java b/src/org/openbravo/costing/CostingServer.java
--- a/src/org/openbravo/costing/CostingServer.java
+++ b/src/org/openbravo/costing/CostingServer.java
@@ -39,6 +39,7 @@
 import org.openbravo.model.materialmgmt.transaction.InventoryCount;
 import org.openbravo.model.materialmgmt.transaction.MaterialTransaction;
 import org.openbravo.model.materialmgmt.transaction.ProductionTransaction;
+import org.openbravo.model.procurement.ReceiptInvoiceMatch;
 
 /**
  * @author gorkaion
@@ -124,6 +125,16 @@
         inout.setPosted("N");
         OBDal.getInstance().save(inout);
       }
+      List<ReceiptInvoiceMatch> invoiceMatchList = transaction.getGoodsShipmentLine().getProcurementReceiptInvoiceMatchList();
+      if(invoiceMatchList != null && !invoiceMatchList.isEmpty()) {
+        for(ReceiptInvoiceMatch invoiceMatch :invoiceMatchList) {
+          if (!"N".equals(invoiceMatch.getPosted()) || !"Y".equals(invoiceMatch.getPosted())) {
+            invoiceMatch.setPosted("N");
+            OBDal.getInstance().save(invoiceMatch);
+          }
+        }
+      }
+
       break;
     }
     case InventoryDecrease:
