S++Business systems language
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}