General ledger:

Posting comments (order example):

(I)
Sales

(E)
Cost Goods Sold

(A)
A/R

(A)
Inventory

    DB   CR

    DB   CR

    DB   CR

    DB   CR

         | 100

     60 |

    100 |

         |  60

       

(A)
Cash

(A)
A/R

    DB   CR

    DB   CR

    100 |

         | 100

Transactions to General Ledger if for example you bought $500 worth of merchandise

Invoiced by vendor:

(L)
A/P

(A)
Inventory

    DB   CR

    DB   CR

         | 500

    500 |

Pay invoice:

(L)
A/P

(A)
Inventory

    DB   CR

    DB   CR

    500 |

         | 500