S++Core systems, human-reviewable
DEMO SOURCE · SPP / APP / PHYRead the book

petshop-20-calculations.spp

petshop/payment/petshop-20-calculations.spp

Download original file · Petstore source contents

1domain petshop;23atomic calculate preparePayment(ShopOrder, PaymentAgreement) {4    paymentAgreement.paymentAmount = shopOrder.total;5    shopOrder.status = OrderStatus.PAID;6}